]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
AVX-512. Add patterns for compress, expand.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
b559c810
MLI
12014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2
3 * c.opt: Add CppReason to various flags.
4 (Wdate-time): Re-sort.
5 * c-common.c: Include c-common.h earlier.
6 (struct reason_option_codes_t): Delete.
7 (c_option_controlling_cpp_error): Prefix global type and struct
8 with cpp_.
9
1ef33fd4
MLI
102014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11
12 * c.opt (Wnormalized): New.
13 (Wnormalized=): Use Enum and Reject Negative.
14 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
15
66bb34c0
JM
162014-09-08 Joseph Myers <joseph@codesourcery.com>
17
18 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
19 digits of floating-point modes if -fbuilding-libgcc.
20
53d68b9f
JM
212014-09-05 Joseph Myers <joseph@codesourcery.com>
22
23 * c-cppbuiltin.c (c_cpp_builtins): Also define
24 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
25 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
26 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
27 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
28 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
29 __LIBGCC_STACK_GROWS_DOWNWARD__,
30 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
31 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
32 __LIBGCC_DWARF_FRAME_REGISTERS__,
33 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
34 __LIBGCC_STACK_POINTER_REGNUM__ and
35 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
36 (builtin_define_with_value): Handle backslash-escaping in string
37 macro values.
38
f65586dc
RB
392014-09-05 Richard Biener <rguenther@suse.de>
40
41 PR middle-end/63148
42 * c-format.c (check_format_arg): Properly handle
43 effectively signed POINTER_PLUS_EXPR offset.
44
2b71f4a4
MLI
452014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
46
47 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
48 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
49 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
50 and Init.
51 * c-opts.c (c_common_handle_option): Do not handle here.
52 (sanitize_cpp_opts): Likewise.
53 * c-common.c (struct reason_option_codes_t): Handle
54 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
55
d2e4feca
MP
562014-09-03 Marek Polacek <polacek@redhat.com>
57
58 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
59
9a771876
JJ
602014-09-02 Jakub Jelinek <jakub@redhat.com>
61 Balaji V. Iyer <balaji.v.iyer@intel.com>
62 Igor Zamyatin <igor.zamyatin@intel.com>
63
64 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
65 * c-common.c (c_common_reswords): Added _Cilk_for.
66 * c-common.h (enum rid): Added RID_CILK_FOR.
67 (cilk_for_number_of_iterations): Add declaration.
68 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
69 CILK_FOR.
70 * c-pragma.c (init_pragma): Register "grainsize" pragma.
71 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
72
81b5d104
MLI
732014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
74
75 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
76 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
77 Wundef): Use CPP, Var and Init.
78 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
79
b753b37b
MLI
802014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
81
82 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
83 * c-opts.c (c_common_handle_option): Do not handle here.
84
028aee17
JM
852014-08-25 Jason Merrill <jason@redhat.com>
86
87 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
88 -std=c++14 and -std=gnu++14, rather than the reverse.
89 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
90 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
91 * c-common.h (cxx_dialect): Remove cxx1y.
92
e4276ba5
ESR
932014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
94
95 * c-common.h (enum cxx_dialect): Add cxx14.
96 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
97 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
98 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
99
a545cacd
JM
1002014-08-22 Jason Merrill <jason@redhat.com>
101
102 * c.opt (std=gnu++17): Fix alias.
103
59ea0364
MP
1042014-08-22 Marek Polacek <polacek@redhat.com>
105
106 PR c++/62199
107 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
108 check for vector types. Drop LHS argument.
109 * c-common.h (warn_logical_not_parentheses): Adjust.
110
596e808c
MLI
1112014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
112
113 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
114 (Wmultichar): Likewise.
115 (Wdate-time): Use C-family languages instead of Common. Use CPP
116 and Var.
117 * c-opts.c (c_common_handle_option): Do not handle the above
118 options here.
119 (sanitize_cpp_opts): Likewise.
120
18767f65
MLI
1212014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
122
123 PR fortran/44054
124 * c-opts.c: Include tree-diagnostics.h.
125 (c_diagnostic_finalizer): New.
126 (c_common_initialize_diagnostics): Use it.
127
b4413594
MLI
1282014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
129
130 PR preprocessor/51303
131 * c-common.c (struct reason_option_codes_t option_codes):
132 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
133
43f9a13c
MLI
1342014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
135
136 PR c/60975
137 PR c/53063
138 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
139 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
140 (c_common_post_options): Call init_global_opts_from_cpp.
141 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
142
04159acf
MP
1432014-08-19 Marek Polacek <polacek@redhat.com>
144
145 PR c++/62153
146 * c-common.c (maybe_warn_bool_compare): New function.
147 * c-common.h (maybe_warn_bool_compare): Declare.
148 * c.opt (Wbool-compare): New option.
149
35aff4fb
MP
1502014-08-19 Marek Polacek <polacek@redhat.com>
151
152 * c.opt (Wc99-c11-compat): New option.
153
177cce46
MP
1542014-08-19 Marek Polacek <polacek@redhat.com>
155
156 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
157 to warn_c90_c99_compat.
158 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
159 to -1.
160
6ae9194f
MLI
1612014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
162 Steven Bosscher <steven@gcc.gnu.org>
163
164 PR c/52952
165 * c-format.c: Add extra_arg_loc and format_string_loc to struct
166 format_check_results.
167 (check_function_format): Use true and add comment for boolean
168 argument.
169 (finish_dollar_format_checking): Use explicit location when warning.
170 (check_format_info): Likewise.
171 (check_format_arg): Set extra_arg_loc and format_string_loc.
172 (check_format_info_main): Use explicit location when warning.
173 (check_format_types): Pass explicit location.
174 (format_type_warning): Likewise.
175
8e54f6d3
MLI
1762014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
177
178 PR fortran/44054
179 * c-format.c: Handle Fortran flags.
180
cd4e76fc
IZ
1812014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
182
183 PR other/61962
184 * array-notation-common.c (find_rank): Added handling for other
185 types of references.
186
f3bede71
MP
1872014-08-10 Marek Polacek <polacek@redhat.com>
188
189 PR c/51849
190 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
191 * c.opt (Wc90-c99-compat): Add option.
192
9f25a338
TS
1932014-08-07 Trevor Saunders <tsaunders@mozilla.com>
194
195 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
196
62e4eb35
MP
1972014-08-03 Marek Polacek <polacek@redhat.com>
198
199 * c-common.c (check_case_value): Add location_t parameter. Use it.
200 (c_add_case_label): Pass loc to check_case_value.
201
b787e7a2
TS
2022014-08-02 Trevor Saunders <tsaunders@mozilla.com>
203
204 * cilk.c: Use hash_map instead of pointer_map.
205
6e2830c3
TS
2062014-08-02 Trevor Saunders <tsaunders@mozilla.com>
207
208 * c-gimplify.c: Use hash_set instead of pointer_set.
209
a7ee52fb
IZ
2102014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
211
212 PR middle-end/61455
213 * array-notation-common.c (extract_array_notation_exprs): Handling
214 of DECL_EXPR added.
215
944fa280
JJ
2162014-08-01 Jakub Jelinek <jakub@redhat.com>
217
218 * c-common.h (min_align_of_type): Removed prototype.
219 * c-common.c (min_align_of_type): Removed.
220 * c-ubsan.h (ubsan_maybe_instrument_reference,
221 ubsan_maybe_instrument_member_call): New prototypes.
222 * c-ubsan.c: Include stor-layout.h and builtins.h.
223 (ubsan_maybe_instrument_reference_or_call,
224 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
225 functions.
226
b4dfdc11
MG
2272014-07-31 Marc Glisse <marc.glisse@inria.fr>
228
229 PR c++/60517
230 * c.opt (-Wreturn-local-addr): Move to common.opt.
231
a41844e5
JM
2322014-07-30 Jason Merrill <jason@redhat.com>
233
234 PR c++/61659
235 PR c++/61687
236 Revert:
237 * c.opt (-fuse-all-virtuals): New.
238
976d5a22
TT
2392014-07-30 Tom Tromey <tromey@redhat.com>
240
241 PR c/59855
242 * c.opt (Wdesignated-init): New option.
243 * c-common.c (c_common_attribute_table): Add "designated_init".
244 (handle_designated_init): New function.
245
cdc94aca
MP
2462014-07-24 Marek Polacek <polacek@redhat.com>
247
248 PR c/57653
249 * c-opts.c (c_finish_options): If -imacros is in effect, return.
250
f41373b6
DS
2512014-07-16 Dodji Seketeli <dodji@redhat.com>
252
253 PR preprocessor/60723 - missing system-ness marks for macro tokens
254 * c-ppoutput.c (struct print::prev_was_system_token): New data
255 member.
256 (init_pp_output): Initialize it.
257 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
258 (do_line_change): Return a flag saying if a line marker was
259 emitted or not.
260 (scan_translation_unit): Detect if the system-ness of the token we
261 are about to emit is different from the one of the previously
262 emitted token. If so, emit a line marker. Avoid emitting useless
263 adjacent line markers. Avoid emitting line markers for tokens
264 originating from the expansion of built-in macros.
265 (scan_translation_unit_directives_only): Adjust.
266
4d661eaa
MP
2672014-07-15 Marek Polacek <polacek@redhat.com>
268
269 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
270 TYPE_MAX_VALUE is NULL.
271
b108f48f
JJ
2722014-07-14 Jakub Jelinek <jakub@redhat.com>
273
274 PR middle-end/61294
275 * c.opt (Wmemset-transposed-args): New warning.
276
c0221884
JM
2772014-07-10 Jason Merrill <jason@redhat.com>
278
279 PR c++/61659
280 PR c++/61687
281 * c.opt (-fuse-all-virtuals): New.
282
63dfbb95
RB
2832014-07-09 Richard Biener <rguenther@suse.de>
284
285 PR c-family/61741
286 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
287 using unsigned arithmetic if overflow does not wrap instead of
288 if overflow is undefined.
289
773ec47f
MP
2902014-07-06 Marek Polacek <polacek@redhat.com>
291
292 PR c/6940
293 * c.opt (Wsizeof-array-argument): New option.
294
00a7ba58
JJ
2952014-07-03 Jakub Jelinek <jakub@redhat.com>
296
297 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
298 comments->count <= 1, as comments->entries might be NULL.
299
52ec0ea3
MP
3002014-07-01 Marek Polacek <polacek@redhat.com>
301
302 * c.opt (Wint-conversion): New option.
303
d5c3d343
MP
3042014-07-01 Marek Polacek <polacek@redhat.com>
305
306 PR c/58286
307 * c.opt (Wincompatible-pointer-types): New option.
308
6e7ceb17
PC
3092014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
310
311 PR c++/51400
312 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
313 Do not discard TYPE_QUALS of type.
314
da73100b
JM
3152014-06-26 Jason Merrill <jason@redhat.com>
316
317 * c-common.h (enum cxx_dialect): Add cxx1z.
318 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
319 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
320
08eedf75
TJ
3212014-06-26 Teresa Johnson <tejohnson@google.com>
322
323 * c-common.h (get_dump_info): Declare.
324 * c-gimplify.c (c_genericize): Use saved dump files.
325 * c-opts.c (c_common_parse_file): Begin and end dumps
326 once around parsing invocation.
327 (get_dump_info): New function.
328
7b56b2f8
MP
3292014-06-23 Marek Polacek <polacek@redhat.com>
330 Andrew MacLeod <amacleod@redhat.com>
331
332 PR c/61553
333 * c-common.c (get_atomic_generic_size): Don't segfault if the
334 type doesn't have a size.
335
0e37a2f3
MP
3362014-06-20 Marek Polacek <polacek@redhat.com>
337
338 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
339 (ubsan_walk_array_refs_r): New function.
340 (c_genericize): Instrument array bounds.
341 * c-ubsan.c: Include "internal-fn.h".
342 (ubsan_instrument_division): Mark instrumented arrays as having
343 side effects. Adjust ubsan_type_descriptor call.
344 (ubsan_instrument_shift): Likewise.
345 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
346 (ubsan_instrument_bounds): New function.
347 (ubsan_array_ref_instrumented_p): New function.
348 (ubsan_maybe_instrument_array_ref): New function.
349 * c-ubsan.h (ubsan_instrument_bounds): Declare.
350 (ubsan_array_ref_instrumented_p): Declare.
351 (ubsan_maybe_instrument_array_ref): Declare.
352
3532014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
354
355 PR lto/61123
356 * c.opt (fshort-enums): Add to LTO.
357 * c.opt (fshort-wchar): Likewise.
358
5c3d09f7
MP
3592014-06-16 Marek Polacek <polacek@redhat.com>
360
361 PR c/60439
362 * c.opt (Wswitch-bool): Add Var.
363
9cf32741
JJ
3642014-06-12 Jakub Jelinek <jakub@redhat.com>
365
366 PR middle-end/61486
367 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
368 #pragma omp target teams or
369 #pragma omp {,target }teams distribute simd.
370
62984918
JM
3712014-06-12 Jason Merrill <jason@redhat.com>
372
373 * c.opt (Wabi=, fabi-compat-version): New.
374 * c-opts.c (c_common_handle_option): Handle -Wabi=.
375 (c_common_post_options): Handle flag_abi_compat_version default.
376 Disallow -fabi-compat-version=1.
377 * c-common.h (abi_version_crosses): New.
378
f961457f
JH
3792014-06-11 Jan Hubicka <hubicka@ucw.cz>
380
381 * c-family/c-common.c (handle_section_attribute): Update handling for
382 section names that are no longer trees.
383
92d28cbb
JJ
3842014-06-10 Jakub Jelinek <jakub@redhat.com>
385
386 PR fortran/60928
387 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
388 (omp_pragmas): ... back here.
389
742938c9
MP
3902014-06-05 Marek Polacek <polacek@redhat.com>
391
392 PR c/49706
393 * c-common.c (warn_logical_not_parentheses): New function.
394 * c-common.h (warn_logical_not_parentheses): Declare.
395 * c.opt (Wlogical-not-parentheses): New option.
396
9d548dfb
MP
3972014-06-04 Marek Polacek <polacek@redhat.com>
398
399 PR c/30020
400 * c-common.c (check_case_bounds): Add location parameter.
401 Use it.
402 (c_add_case_label): Pass loc to check_case_bounds.
403
fedfecef
MP
4042014-06-03 Marek Polacek <polacek@redhat.com>
405
406 PR c/60439
407 * c.opt (Wswitch-bool): New option.
408
f6a7cffc
TS
4092014-05-22 Thomas Schwinge <thomas@codesourcery.com>
410
040d18b6
TS
411 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
412 Remove prototypes.
413 (record_types_used_by_current_var_decl): Move prototype to where
414 it belongs.
415
f6a7cffc
TS
416 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
417 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
418 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
419
632f2871
RS
4202014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
421
422 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
423 * c-common.c (c_common_nodes_and_builtins): Don't initialize
424 void_zero_node.
425 * c-pretty-print.c (pp_c_void_constant): New function.
426 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
427 (c_pretty_printer::expression): Handle VOID_CST.
428 * cilk.c (extract_free_variables): Likewise.
429 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
430 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
431
766090c2
TS
4322014-05-17 Trevor Saunders <tsaunders@mozilla.com>
433
434 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
435 * c-pragma.c (push_alignment): Adjust.
436 (handle_pragma_push_options): Likewise.
437
661a0813
MP
4382014-05-09 Marek Polacek <polacek@redhat.com>
439
440 PR c/50459
441 * c-common.c (check_user_alignment): Return -1 if alignment is error
442 node.
443 (handle_aligned_attribute): Don't call default_conversion on
444 FUNCTION_DECLs.
445 (handle_vector_size_attribute): Likewise.
446 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
447 (handle_sentinel_attribute): Call default_conversion and allow even
448 integral types as an argument.
449
2793eeab
MP
4502014-05-08 Marek Polacek <polacek@redhat.com>
451
452 PR c/61053
453 * c-common.c (min_align_of_type): New function factored out from...
454 (c_sizeof_or_alignof_type): ...here.
455 * c-common.h (min_align_of_type): Declare.
456
f827930a
MP
4572014-05-08 Marek Polacek <polacek@redhat.com>
458
459 PR c/61077
460 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
461 parameter type of main.
462
ca49b74e
DD
4632014-05-07 DJ Delorie <dj@redhat.com>
464
465 * c-cppbuiltin.c (print_bits_of_hex): New.
466 (builtin_define_type_minmax): Print values using hex so as not to
467 require a pre-computed list of string values.
468
1d60af08
KZ
4692014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
470 Mike Stump <mikestump@comcast.net>
471 Richard Sandiford <rdsandiford@googlemail.com>
472
473 * c-ada-spec.c: Include wide-int.h.
474 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
475 (dump_generic_ada_node): Use wide-int interfaces.
476 * c-common.c: Include wide-int-print.h.
477 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
478 (pointer_int_sum): Use wide-int interfaces.
479 (c_common_nodes_and_builtins): Use make_int_cst.
480 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
481 (handle_alloc_size_attribute): Use wide-int interfaces.
482 (get_nonnull_operand): Likewise.
483 * c-format.c (get_constant): Use tree_fits_uhwi_p.
484 * c-lex.c: Include wide-int.h.
485 (narrowest_unsigned_type): Take a widest_int rather than two
486 HOST_WIDE_INTs.
487 (narrowest_signed_type): Likewise.
488 (interpret_integer): Update accordingly. Use wide-int interfaces.
489 (lex_charconst): Use wide-int interfaces.
490 * c-pretty-print.c: Include wide-int.h.
491 (pp_c_integer_constant): Use wide-int interfaces.
492 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
493 INT_CST_LT_UNSIGNED.
494
b15458be
RB
4952014-05-06 Richard Biener <rguenther@suse.de>
496
497 * c-opts.c (c_common_post_options): For -freestanding,
498 -fno-hosted and -fno-builtin disable pattern recognition
499 if not enabled explicitely.
500
6577374e
MP
5012014-05-02 Marek Polacek <polacek@redhat.com>
502
503 * c.opt (Wsizeof-pointer-memaccess): Describe option.
504
d00887e8
MP
5052014-05-01 Marek Polacek <polacek@redhat.com>
506
507 PR c/43245
508 * c.opt (Wdiscarded-qualifiers): Add.
509
f8ed5150
MP
5102014-04-30 Marek Polacek <polacek@redhat.com>
511
512 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
513 INT_MIN / -1 sanitization only for integer types.
514
45484dcf
MP
5152014-04-25 Marek Polacek <polacek@redhat.com>
516
517 PR c/18079
518 * c-common.c (handle_noinline_attribute): Warn if the attribute
519 conflicts with always_inline attribute.
520 (handle_always_inline_attribute): Warn if the attribute conflicts
521 with noinline attribute.
522
38e514c0
MP
5232014-04-25 Marek Polacek <polacek@redhat.com>
524
525 PR c/60156
526 * c-common.c (check_main_parameter_types): Warn about variadic main.
527
44875f92
MS
5282014-04-24 Mike Stump <mikestump@comcast.net>
529
530 * c.opt (Wshadow-ivar): Default to on.
531
dcaaa5a0
DP
5322014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
533
534 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
535
c07d7c02
MP
5362014-04-23 Marek Polacek <polacek@redhat.com>
537
538 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
539
1c33c9b7
JJ
5402014-04-22 Jakub Jelinek <jakub@redhat.com>
541
542 PR sanitizer/60275
543 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
544 if flag_sanitize_undefined_trap_on_error.
545 (ubsan_instrument_division, ubsan_instrument_shift,
546 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
547 if !flag_sanitize_recover.
548
793c625f
MG
5492014-04-22 Marc Glisse <marc.glisse@inria.fr>
550
551 PR libstdc++/43622
552 * c-common.c (registered_builtin_types): Make non-static.
553 * c-common.h (registered_builtin_types): Declare.
554
b0f1bf36
RB
5552014-04-14 Richard Biener <rguenther@suse.de>
556 Marc Glisse <marc.glisse@inria.fr>
557
558 PR c/60819
559 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
560 apply may-alias the scalar pointer type when applicable.
561
3b07fa4a
IZ
5622014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
563
564 PR middle-end/60467
565 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
566 as possible argument for Cilk_spawn.
567
cbbd2b1c
TB
5682014-04-11 Tobias Burnus <burnus@net-b.de>
569
570 PR c/60194
571 * c.opt (Wformat-signedness): Add
572 * c-format.c(check_format_types): Use it.
573
6415bd5d
JM
5742014-04-11 Jason Merrill <jason@redhat.com>
575
576 PR c++/57926
577 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
578 default_conversion for an array argument.
579
6525783a
MP
5802014-04-08 Marek Polacek <polacek@redhat.com>
581
582 PR sanitizer/60745
583 * c-ubsan.c: Include asan.h.
584 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
585
880a467b
NS
5862014-04-03 Nathan Sidwell <nathan@codesourcery.com>
587
588 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
589
7b59ff2d
MP
5902014-04-02 Marek Polacek <polacek@redhat.com>
591
592 * c-common.h (c_expand_expr): Remove declaration.
593
8edbfaa6
JJ
5942014-03-28 Jakub Jelinek <jakub@redhat.com>
595
596 PR c++/60689
597 * c-common.c (add_atomic_size_parameter): When creating new
598 params vector, push the size argument first.
599
07d72e1d
JJ
6002014-03-26 Jakub Jelinek <jakub@redhat.com>
601
602 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
603 ubsan_instrument_vla, ubsan_instrument_return): Adjust
604 ubsan_create_data callers.
605
b35e0fa0
JJ
6062014-03-22 Jakub Jelinek <jakub@redhat.com>
607
608 PR debug/60603
609 * c-opts.c (c_finish_options): Restore cb_file_change call to
610 <built-in>.
611
39a1ebb3
JJ
6122014-03-13 Jakub Jelinek <jakub@redhat.com>
613
614 PR middle-end/36282
615 * c-pragma.c (apply_pragma_weak): Only look at
616 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
617 DECL_ASSEMBLER_NAME_SET_P (decl).
618 (maybe_apply_pending_pragma_weaks): Exit early if
619 vec_safe_is_empty (pending_weaks) rather than only when
620 !pending_weaks.
621 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
622 set assembler name back to NULL afterwards.
623
a07f6ed2
JM
6242014-03-11 Jason Merrill <jason@redhat.com>
625
626 * c.opt: Add -std=gnu++14.
627
75b107f5
IB
6282014-03-11 Ian Bolton <ian.bolton@arm.com>
629
630 * c-opts.c (c_common_post_options): Don't override
631 -ffp-contract=fast if unsafe-math-optimizations is on.
632
f42c637e
PM
6332014-03-08 Paulo Matos <paulo@matos-sorge.com>
634
635 * c.opt: Enable LTO FE for fshort-double.
636
70e24808
JM
6372014-03-07 Jason Merrill <jason@redhat.com>
638
639 * c.opt: Add -std=c++14.
640
3af9c5e9
MP
6412014-03-06 Marek Polacek <polacek@redhat.com>
642
643 PR c/60197
644 * cilk.c (contains_cilk_spawn_stmt): New function.
645 (contains_cilk_spawn_stmt_walker): Likewise.
646 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
647 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
648
b3bdf019
JJ
6492014-03-03 Jakub Jelinek <jakub@redhat.com>
650
651 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
652 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
653 even when flag_preprocess_only.
654
ca7e759d
JM
6552014-02-26 Jason Merrill <jason@redhat.com>
656
657 PR c++/59231
658 PR c++/11586
659 * c-common.c (shorten_compare): Don't check
660 c_inhibit_evaluation_warnings.
661
28e41874
JJ
6622014-02-19 Jakub Jelinek <jakub@redhat.com>
663
cca615af
JJ
664 PR c/37743
665 * c-common.c (c_common_nodes_and_builtins): When initializing
666 c_uint{16,32,64}_type_node, also set corresponding
667 uint{16,32,64}_type_node to the same value.
668
28e41874
JJ
669 PR c++/60267
670 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
671 for PRAGMA_IVDEP if flag_preprocess_only.
672
c2bf53a1
JJ
6732014-02-12 Jakub Jelinek <jakub@redhat.com>
674
675 PR c/60101
676 * c-common.c (merge_tlist): If copy is true, call new_tlist,
677 if false, add ADD itself, rather than vice versa.
678 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
679 copy. For SAVE_EXPR, only call merge_tlist once.
680
8fcbce72
JJ
6812014-02-08 Jakub Jelinek <jakub@redhat.com>
682
683 PR middle-end/60092
684 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
685 and tree_to_uhwi.
686 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
687 functions.
688 (c_common_attribute_table): Add alloc_align and assume_aligned
689 attributes.
690
0a756a3f
MP
6912014-02-06 Marek Polacek <polacek@redhat.com>
692
693 PR c/60087
694 * c-common.c (warn_for_sign_compare): Call warning_at with location
695 instead of warning.
696
7ec4847a
MP
6972014-02-05 Marek Polacek <polacek@redhat.com>
698
699 PR c/53123
700 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
701 statement.
702
66f20604
MP
7032014-02-04 Marek Polacek <polacek@redhat.com>
704
705 PR c/60036
706 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
707 SAVE_EXPR.
708
5d77fb19
MG
7092014-02-03 Marc Glisse <marc.glisse@inria.fr>
710
711 PR c++/53017
712 PR c++/59211
713 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
714 handle_vector_size_attribute, handle_nonnull_attribute): Call
715 default_conversion on the attribute argument.
716 (handle_nonnull_attribute): Increment the argument number.
717
81e5eca8
MP
7182014-01-31 Marek Polacek <polacek@redhat.com>
719
720 PR c/59963
721 * c-common.c (add_atomic_size_parameter): Pass vNULL to
722 build_function_call_vec.
723 (resolve_overloaded_builtin): Likewise.
724 * c-common.h (build_function_call_vec): Adjust declaration.
725
68fca595
MP
7262014-01-30 Marek Polacek <polacek@redhat.com>
727
728 PR c/59940
729 * c-common.h (unsafe_conversion_p): Adjust declaration.
730 (warnings_for_convert_and_check): Likewise.
731 (convert_and_check): Likewise.
732 * c-common.c (unsafe_conversion_p): Add location parameter. Call
733 expansion_point_location_if_in_system_header on it.
734 (warnings_for_convert_and_check): Add location parameter. Call
735 expansion_point_location_if_in_system_header on it. Use it.
736 (convert_and_check): Add location parameter. Use it.
737 (conversion_warning): Likewise.
738 (c_add_case_label): Adjust convert_and_check calls.
739 (scalar_to_vector): Adjust unsafe_conversion_p calls.
740
b72271b9
BI
7412014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
742
743 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
744 flag_cilkplus.
745 * c-pragma.c (init_pragma): Likewise.
746 * c.opt: Likewise.
747
393e8e8b
MP
7482014-01-23 Marek Polacek <polacek@redhat.com>
749
750 PR c/59846
751 * c-common.c (shorten_compare): Add location_t parameter.
752 * c-common.h (shorten_binary_op): Adjust declaration.
753
f04dda30
MP
7542014-01-23 Marek Polacek <polacek@redhat.com>
755
756 PR c/58346
757 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
758 * c-common.h: Declare it.
759
621955cb
EB
7602014-01-20 Eric Botcazou <ebotcazou@adacore.com>
761
762 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
763 * c-ada-spec.c (dump_ads): Likewise.
764 (cpp_check): Likewise.
765 (dump_ada_specs): Likewise.
766
7672014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
768
769 PR c++/49718
770 * c-common.c (handle_no_instrument_function_attribute): Allow
771 no_instrument_function attribute in class member
772 definition/declaration.
773
241f845a
JJ
7742014-01-15 Jakub Jelinek <jakub@redhat.com>
775
776 PR c/58943
777 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
778 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
779 being COMPOUND_EXPR.
780 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
781 operand a SAVE_EXPR and second MODIFY_EXPR.
782
e83b8e2e
JJ
7832014-01-09 Jakub Jelinek <jakub@redhat.com>
784
785 PR target/58115
786 * c-pch.c (c_common_write_pch): Call
787 prepare_target_option_nodes_for_pch.
788
23a5b65a
RS
7892014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
790
791 Update copyright years
792
f9030485
RS
7932014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
794
795 * array-notation-common.c, c-cilkplus.c: Use the standard form for
796 the copyright notice.
797
f2aa696b
EB
7982013-12-28 Eric Botcazou <ebotcazou@adacore.com>
799
800 * c-ada-spec.c (print_constructor): New function.
801 (print_destructor): Retrieve the origin of the destructor.
802 (print_ada_declaration): Revamp handling of constructors/destructors.
803
1f26ac87
JM
8042013-12-23 Stuart Hastings <stuart@apple.com>
805 Bill Maddox <maddox@google.com>
806 Jason Merrill <jason@redhat.com>
807
808 * c.opt: Add -fdeclone-ctor-dtor.
809 * c-opts.c (c_common_post_options): Default to on iff -Os.
810
41958c28
BI
8112013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
812
813 * c-common.c (c_common_attribute_table): Added "cilk simd function"
814 attribute.
815 * c-pragma.h (enum pragma_cilk_clause): Remove.
816 (enum pragma_omp_clause): Added the following fields:
817 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
818 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
819 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
820 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
821 PRAGMA_CILK_CLAUSE_UNIFORM.
822
823
12893402
BI
8242013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
825
826 * cilk.c (cilk_outline): Made this function non-static.
827 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
828 (create_cilk_wrapper): Added a new parameter: a function pointer.
829 (c_install_body_w_frame_cleanup): Remove
830 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
831 * c-common.h (cilk_outline): New prototype.
832 (gimplify_cilk_spawn): Removed two parameters.
833 (cilk_install_body_with_frame_cleanup): New prototype.
834 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
835 CILK_SPAWN_STMT case.
836
085b42ed
BS
8372013-12-11 Bernd Schmidt <bernds@codesourcery.com>
838
2ce064c3
BS
839 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
840
085b42ed
BS
841 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
842 (int_array_type_node): Remove.
843 * c-common.c (c_common_nodes_and_builtins): Don't build it.
844
9e36c9ed
MP
8452013-12-05 Marek Polacek <polacek@redhat.com>
846
847 PR c/52023
848 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
849 [ADJUST_FIELD_ALIGN].
850
296674db
JM
8512013-12-04 Joseph Myers <joseph@codesourcery.com>
852
853 PR c/52023
854 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
855 and check field alignment if set.
856 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
857 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
858
31e071ae
MP
8592013-12-04 Jakub Jelinek <jakub@redhat.com>
860 Marek Polacek <polacek@redhat.com>
861
862 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
863 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
864
d7947e19
L
8652013-11-29 H.J. Lu <hongjiu.lu@intel.com>
866
867 PR c/59309
868 * cilk.c (gimplify_cilk_spawn): Properly handle function without
869 arguments.
870
fad7652e
JJ
8712013-11-29 Jakub Jelinek <jakub@redhat.com>
872
873 PR c/59280
874 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
875 goto invalid. If it is error_mark_node, don't issue further
876 diagnostics.
877
8b5e1202
SO
8782013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
879
880 * c.opt (Wopenmp-simd): New.
881
0a508bb6
JJ
8822013-11-22 Jakub Jelinek <jakub@redhat.com>
883
884 * c-ubsan.h (ubsan_instrument_return): New prototype.
885 * c-ubsan.c (ubsan_instrument_return): New function.
886
2fb9a547
AM
8872013-11-22 Andrew MacLeod <amacleod@redhat.com>
888
889 * c-common.c: Add required include files from gimple.h.
890 * c-gimplify.c: Likewise
891 * cilk.c: Likewise
892
8400e75e
DM
8932013-11-22 David Malcolm <dmalcolm@redhat.com>
894
895 * c-common.c (unsafe_conversion_p): Remove use of
896 EXPR_LOC_OR_HERE macro.
897 (conversion_warning): Likewise.
898 (warnings_for_convert_and_check): Likewise.
899 (warn_for_collisions_1): Likewise.
900 (shorten_compare): Likewise, and remove use of in_system_header
901 macro, using the location from the former.
902 * c-lex.c (dump_one_header): Remove use of input_filename macro.
903 (cb_def_pragma): Remove use of in_system_header macro.
904 (lex_string): Likewise.
905 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
906
eb1ce453
KZ
9072013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
908 Mike Stump <mikestump@comcast.net>
909 Richard Sandiford <rdsandiford@googlemail.com>
910
911 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
912 instead of TREE_INT_CST_LOW, in cases where there is a protecting
913 tree_fits_shwi_p or tree_fits_uhwi_p.
914 (dump_generic_ada_node): Likewise.
915 * c-format.c (check_format_arg): Likewise.
916 * c-pretty-print.c (pp_c_integer_constant): Likewise.
917
6b3b8c27
KZ
9182013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
919
920 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
921
49b0aa18
JC
9222013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
923
924 PR c/53001
925 * c-common.c (unsafe_conversion_p): Make this function
926 return an enumeration with more detail.
927 (conversion_warning): Use the new return type of
928 unsafe_conversion_p to separately warn either about conversions
929 that lower floating point number precision or about the other
930 kinds of conversions.
931 * c-common.h (enum conversion_safety): New enumeration.
932 (unsafe_conversion_p): switching return type to
933 conversion_safety enumeration.
934 * c.opt: Adding new warning -Wfloat-conversion and
935 enabling it with -Wconversion.
936
b826515a
BS
9372013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
938
939 * c-opts.c: Include plugin.h.
940 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
941
b9a55b13
MP
9422013-11-19 Marek Polacek <polacek@redhat.com>
943
944 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
945 call.
946 (ubsan_instrument_shift): Likewise.
947 (ubsan_instrument_vla): Likewise.
948
7d362f6c
RS
9492013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
950
951 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
952 cast to unsigned type.
953
386b1f1f
RS
9542013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
955
956 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
957 tree_low_cst.
958 (complete_array_type): Update comment to refer to tree_to_[su]hwi
959 rather than tree_low_cst.
960
ae7e9ddd
RS
9612013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
962
963 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
964 tree_to_uhwi throughout.
965
9439e9a1
RS
9662013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
967
968 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
969 tree_low_cst (..., 0) with tree_to_shwi throughout.
970
cc269bb6
RS
9712013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
972
973 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
974 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
975
9541ffee
RS
9762013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
977
978 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
979 host_integerp (..., 0) with tree_fits_shwi_p throughout.
980
c02065fc
AH
9812013-11-15 Aldy Hernandez <aldyh@redhat.com>
982
983 * c-cilkplus.c: New file.
984 * c-common.c (readonly_error): Add location argument.
985 * c-common.h (readonly_error): Same.
986 (c_finish_cilk_clauses): Protoize.
987 (c_check_cilk_loop): Same.
988 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
989 Do not fail on error_mark_node.
990 Abstract increment canonicalization to here...
991 (c_omp_for_incr_canonicalize_ptr): New.
992 c-pragma.c (init_pragma): Register "simd" pragma.
993 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
994 (enum pragma_cilk_clause): New.
995
9cc65f15
RS
9962013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
997
998 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
999 wchar_type and host_integerp checks.
1000
18f429e2
AM
10012013-11-14 Andrew MacLeod <amacleod@redhat.com>
1002
1003 * c-common.c: Likewise.
1004 * c-gimplify.c: Likewise.
1005 * cilk.c: Likewise.
1006
d8a2d370
DN
10072013-11-14 Diego Novillo <dnovillo@google.com>
1008
1009 * c-common.c: Include fold-const.h.
1010 Include stor-layout.h.
1011 Include calls.h.
1012 Include stringpool.h.
1013 Include attribs.h.
1014 Include varasm.h.
1015 Include trans-mem.h.
1016 * c-cppbuiltin.c: Include stor-layout.h.
1017 Include stringpool.h.
1018 * c-format.c: Include stringpool.h.
1019 * c-lex.c: Include stringpool.h.
1020 Include stor-layout.h.
1021 * c-pragma.c: Include stringpool.h.
1022 Include attribs.h.
1023 Include varasm.h.
1024 Include gcc-symtab.h.
1025 * c-pretty-print.c: Include stor-layout.h.
1026 Include attribs.h.
1027 * cilk.c: Include stringpool.h.
1028 Include calls.h.
1029
38b7bc7f
JM
10302013-11-13 Joseph Myers <joseph@codesourcery.com>
1031
1032 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1033 * c-common.c (c_common_reswords): Add __auto_type.
1034 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1035
45b0be94
AM
10362013-11-12 Andrew MacLeod <amacleod@redhat.com>
1037
18f429e2
AM
1038 * c-common.c: Include gimplify.h.
1039 * c-gimplify.c: Likewise.
1040 * cilk.c: Likewise.
1041 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1042 * c-ubsan.c: Don't include gimple.h.
45b0be94 1043
582d9b50
JM
10442013-11-12 Joseph Myers <joseph@codesourcery.com>
1045
1046 * c-common.c (c_common_reswords): Add _Thread_local.
1047
6b28e197
JM
10482013-11-09 Joseph Myers <joseph@codesourcery.com>
1049
1050 * c-common.c (atomic_size_supported_p): New function.
1051 (resolve_overloaded_atomic_exchange)
1052 (resolve_overloaded_atomic_compare_exchange)
1053 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1054 Use it instead of comparing size with a local list of sizes.
1055
267bac10
JM
10562013-11-07 Andrew MacLeod <amacleod@redhat.com>
1057 Joseph Myers <joseph@codesourcery.com>
1058
1059 * c-common.h (enum rid): Add RID_ATOMIC.
1060 * c-common.c (c_common_reswords): Add _Atomic.
1061 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1062 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1063 * c-format.c (check_format_types): Check for extra _Atomic
1064 qualifiers in format argument.
1065 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1066 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1067
5157b91e
TB
10682013-11-06 Tobias Burnus <burnus@net-b.de>
1069
1070 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1071
6dbe0958
JM
10722013-11-06 Joseph Myers <joseph@codesourcery.com>
1073
1074 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1075 standards modes.
1076 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1077 to mean lack of IEEE 754 support.
1078
e8ff5196
TB
10792013-11-05 Tobias Burnus <burnus@net-b.de>
1080
1081 * c.opt (-Wdate-time): New option
1082 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1083
254a0760
JM
10842013-11-05 Joseph Myers <joseph@codesourcery.com>
1085
1086 * c-cppbuiltin.c (cpp_iec_559_value): Test
1087 flag_excess_precision_cmdline not flag_excess_precision.
1088
6d7f7e0a
TB
10892013-11-05 Tobias Burnus <burnus@net-b.de>
1090
1091 * c.opt (fopenmp-simd): New option.
1092 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1093 (omp_pragmas): ... this new struct.
1094 (c_pp_lookup_pragma): Also walk omp_pragmas.
1095 (init_pragma): Init pragmas for -fopenmp-simd.
1096
55a7f02f
MP
10972013-11-04 Marek Polacek <polacek@redhat.com>
1098
1099 PR c++/58979
1100 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1101
9193fb05
JM
11022013-11-04 Joseph Myers <joseph@codesourcery.com>
1103
1104 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1105 New functions.
1106 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1107
94159ecf
EB
11082013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1109
1110 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1111 (dump_ada_specs): Adjust prototype of second callback.
1112 * c-ada-spec.c (cpp_check): New global variable.
1113 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1114 (print_generic_ada_decl): Likewise.
1115 (has_static_fields): Change return type to bool and add guard.
1116 (has_nontrivial_methods): New predicate.
1117 (is_tagged_type): Change return type to bool.
1118 (separate_class_package): Call has_nontrivial_methods.
1119 (pp_ada_tree_identifier): Minor tweaks.
1120 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1121 (dump_ada_array_domains): Likewise.
1122 (dump_ada_array_type): Likewise.
1123 (dump_template_types): Remove cpp_check parameter and do not pass it to
1124 dump_generic_ada_node.
1125 (dump_ada_template): Likewise.
1126 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1127 recursively.
1128 (print_ada_methods): Change return type to integer. Remove cpp_check
1129 parameter and do not pass it down.
1130 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1131 dump_generic_ada_node.
1132 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1133 accessing methods.
1134 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1135 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1136 value of print_ada_methods.
1137 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1138 Set cpp_check to it before invoking dump_ada_nodes.
1139 (dump_ada_specs): Likewise.
1140
b906f4ca
MP
11412013-11-03 Marek Polacek <polacek@redhat.com>
1142
1143 * c-ubsan.c: Don't include hash-table.h.
1144 (ubsan_instrument_vla): New function.
1145 * c-ubsan.h: Declare it.
1146
5e20cdc9
DM
11472013-10-31 David Malcolm <dmalcolm@redhat.com>
1148
1149 Automated part of renaming of symtab_node_base to symtab_node.
1150
1151 Patch autogenerated by rename_symtab.py from
1152 https://github.com/davidmalcolm/gcc-refactoring-scripts
1153 revision 58bb219cc090b2f4516a9297d868c245495ee622
1154
1155 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1156 symtab_node_base to symtab_node.
1157
7057e645
ESR
11582013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1159
1160 Implement C++14 digit separators.
1161 * c-lex.c (interpret_float): Remove digit separators from scratch string
1162 before building real literal.
1163
193ea7bc
JJ
11642013-10-30 Jakub Jelinek <jakub@redhat.com>
1165
1166 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1167
939b37da
BI
11682013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1169
1170 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1171 fields.
1172 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1173 enabled.
1174 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1175 (insert_cilk_frame): New prototype.
1176 (cilk_init_builtins): Likewise.
1177 (gimplify_cilk_spawn): Likewise.
1178 (c_cilk_install_body_w_frame_cleanup): Likewise.
1179 (cilk_detect_spawn_and_unwrap): Likewise.
1180 (cilk_set_spawn_marker): Likewise.
1181 (build_cilk_sync): Likewise.
1182 (build_cilk_spawn): Likewise.
1183 * cilk.c: New file.
1184
67348ccc
DM
11852013-10-29 David Malcolm <dmalcolm@redhat.com>
1186
1187 Patch autogenerated by refactor_symtab.py from
1188 https://github.com/davidmalcolm/gcc-refactoring-scripts
1189 revision 58bb219cc090b2f4516a9297d868c245495ee622
1190
1191 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1192 to a true class hierarchy.
1193 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1194
d570872d
RS
11952013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1196
1197 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1198
98906124
JL
11992013-10-26 Jeff Law <law@redhat.com>
1200
1201 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1202 * c-family/c.opt: Ignore and warn for mudflap options.
1203
d73749df 12042013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
1205
1206 PR other/33426
1207 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1208 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1209
3f04b1bb
JM
12102013-10-23 Jason Merrill <jason@redhat.com>
1211
1212 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1213
acf0174b
JJ
12142013-10-11 Jakub Jelinek <jakub@redhat.com>
1215
acd15a28
JJ
1216 * c-common.h (omp_clause_mask::operator !=): New method.
1217 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1218 instead of if (mask & something) tests everywhere.
1219
acf0174b
JJ
1220 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1221 201307 instead of 201107.
1222 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1223 (c_common_attribute_table): Add "omp declare target" and
1224 "omp declare simd" attributes.
1225 (handle_omp_declare_target_attribute,
1226 handle_omp_declare_simd_attribute): New functions.
1227 * c-omp.c: Include c-pragma.h.
1228 (c_finish_omp_taskgroup): New function.
1229 (c_finish_omp_atomic): Add swapped argument, if true,
1230 build the operation first with rhs, lhs arguments and use NOP_EXPR
1231 build_modify_expr.
1232 (c_finish_omp_for): Add code argument, pass it down to make_code.
1233 (c_omp_split_clauses): New function.
1234 (c_split_parallel_clauses): Removed.
1235 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1236 c_omp_declare_simd_clauses_to_decls): New functions.
1237 * c-common.h (omp_clause_mask): New type.
1238 (OMP_CLAUSE_MASK_1): Define.
1239 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1240 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1241 omp_clause_mask::operator |, omp_clause_mask::operator &,
1242 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1243 omp_clause_mask::operator ==): New methods.
1244 (enum c_omp_clause_split): New.
1245 (c_finish_omp_taskgroup): New prototype.
1246 (c_finish_omp_atomic): Add swapped argument.
1247 (c_finish_omp_for): Add code argument.
1248 (c_omp_split_clauses): New prototype.
1249 (c_split_parallel_clauses): Removed.
1250 (c_omp_declare_simd_clauses_to_numbers,
1251 c_omp_declare_simd_clauses_to_decls): New prototypes.
1252 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1253 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1254 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1255 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1256 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1257 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1258 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1259 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1260 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1261 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1262 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1263 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1264 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1265 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1266 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1267 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1268 PRAGMA_OMP_CLAUSE_UNIFORM.
1269
826cacfe
MG
12702013-10-09 Marc Glisse <marc.glisse@inria.fr>
1271
1272 PR tree-optimization/20318
1273 * c-common.c (handle_returns_nonnull_attribute): New function.
1274 (c_common_attribute_table): Add returns_nonnull.
1275
2284b034
MG
12762013-10-03 Marc Glisse <marc.glisse@inria.fr>
1277
1278 PR c++/19476
1279 * c.opt (fcheck-new): Move to common.opt.
1280
b56e9788
MP
12812013-09-25 Marek Polacek <polacek@redhat.com>
1282 Jakub Jelinek <jakub@redhat.com>
1283
1284 PR sanitizer/58413
1285 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1286 an expression if we can prove it is correct.
1287 (ubsan_instrument_division): Likewise. Remove unnecessary
1288 check.
1289
ce6923c5
MP
12902013-09-18 Marek Polacek <polacek@redhat.com>
1291
1292 PR sanitizer/58411
1293 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1294 Declare it.
1295 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1296
fb5610fb
IS
12972013-09-14 Iain Sandoe <iain@codesourcery.com>
1298
1299 PR target/48094
1300 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1301 fobjc-gc, freplace-objc-classes): Accept for LTO.
1302
88b0e79e
JC
13032013-09-13 Jacek Caban <jacek@codeweavers.com>
1304
1305 * c-target.def: New hook
1306
c9b0866a
PC
13072013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1308
1309 PR c++/43452
1310 * c.opt (Wdelete-incomplete): Add.
1311
0af94e6f
JR
13122013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1313
1314 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1315 (vector_types_compatible_elements_p): New function.
1316 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1317 declaration.
1318 (vector_types_compatible_elements_p): Declare.
1319
7c26172c
GDR
13202013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1321
1322 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1323 a virtual member function.
1324 (pp_simple_type_specifier): Remove.
1325 (pp_c_type_specifier): Likewise.
1326 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1327 Rename from pp_c_type_specifier. Adjust.
1328 (c_pretty_printer::c_pretty_printer): Do not assign to
1329 simple_type_specifier.
1330
20059c8b
GDR
13312013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1332
1333 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1334 member function.
1335 (c_pretty_printer::storage_class_specifier): Likewise.
1336 (c_pretty_printer::initializer): Likewise.
1337 (pp_declaration): Remove.
1338 (pp_declaration_specifiers): Likewise.
1339 (pp_abstract_declarator): Likewise.
1340 (pp_declarator): Likewise.
1341 (pp_type_id): Likewise.
1342 (pp_statement): Likewise.
1343 (pp_constant): Likewise.
1344 (pp_id_expression): Likewise.
1345 (pp_primary_expression): Likewise.
1346 (pp_unary_expression): Likewise.
1347 (pp_multiplicative_expression): Likewise.
1348 (pp_conditional_expression): Likewise.
1349 (pp_assignment_expression): Likewise.
1350 (pp_expression): Likewise.
1351 (pp_c_type_id): Likewise.
1352 (pp_c_storage_class_specifier): Likewise.
1353 * c-pretty-print.c (pp_c_type_cast): Tidy.
1354 (pp_c_pointer): Likewise.
1355 (pp_c_type_specifier): Likewise.
1356 (pp_c_parameter_type_list): Likewise.
1357 (pp_c_function_definition): Likewise.
1358 (pp_c_init_declarator): Likewise.
1359 (pp_c_initializer_list): Likewise.
1360 (pp_c_constructor_elts): Likewise.
1361 (c_pretty_printer::direct_abstract_declarator): Likewise.
1362 (c_pretty_printer::declaration_specifiers): Likewise.
1363 (c_pretty_printer::primary_expression): Likewise.
1364 (c_pretty_printer::postfix_expression): Likewise.
1365 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1366 (c_pretty_printer::storage_class_specifier): Rename from
1367 pp_c_storage_class_specifier.
1368 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1369 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1370 storage_class_specifier, initializer, offset_list, flags.
1371
de5a5fa1
MP
13722013-08-30 Marek Polacek <polacek@redhat.com>
1373
1374 * c-ubsan.c: New file.
1375 * c-ubsan.h: New file.
1376
8f0e4d72
GDR
13772013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1378
1379 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1380 member function.
1381 (c_pretty_printer::declaration_specifiers): Likewise.
1382 (c_pretty_printer::declarator): Likewise.
1383 (c_pretty_printer::abstract_declarator): Likewise.
1384 (c_pretty_printer::direct_abstract_declarator): Likewise.
1385 (c_pretty_printer::direct_declarator): Likewise.
1386 (c_pretty_printer::function_specifier): Likewise.
1387 (pp_declaration): Adjust.
1388 (pp_declaration_specifiers): Likewise.
1389 (pp_abstract_declarator): Likewise.
1390 (pp_direct_declarator): Likewise.
1391 (pp_function_specifier): Likewise.
1392 (pp_direct_abstract_declarator): Remove as unused.
1393 (pp_c_declaration): Remove.
1394 (pp_c_declaration_specifiers): Likewise.
1395 (pp_c_declarator): Likewise.
1396 (pp_c_direct_declarator): Likewise.
1397 (pp_c_function_specifier): Likewise.
1398 (pp_c_direct_abstract_declarator): Likewise.
1399 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1400 from pp_c_abstract_declarator. Adjust.
1401 (c_pretty_printer::direct_abstract_declarator): Rename from
1402 pp_c_direct_abstract_declarator. Adjust.
1403 (c_pretty_printer::function_specifier): Rename from
1404 pp_c_function_specifier. Adjust.
1405 (c_pretty_printer::declaration_specifiers): Rename from
1406 pp_c_declaration_specifiers. Adjust.
1407 (c_pretty_printer::direct_declarator): Rename from
1408 pp_c_direct_declarator. Adjust.
1409 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1410 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1411 (c_pretty_printer::c_pretty_printer): Do not assign to
1412 declaration, declaration_specifiers, declarator,
1413 direct_declarator, direct_abstract_declarator, function_specifier.
1414
00d34d3a
GDR
14152013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1416
1417 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1418 virtual member function.
1419 (c_pretty_printer::multiplicative_expression): Likewise.
1420 (c_pretty_printer::conditional_expression): Likewise.
1421 (c_pretty_printer::assignment_expression): Likewise.
1422 (c_pretty_printer::expression): Likewise.
1423 (pp_unary_expression): Adjust.
1424 (pp_multiplicative_expression): Likewise.
1425 (pp_assignment_expression): Likewise.
1426 (pp_conditional_expression): Likewise.
1427 (pp_expression): Likewise.
1428 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1429 from pp_c_unary_expression. Adjust.
1430 (c_pretty_printer::multiplicative_expression): Rename from
1431 pp_c_multiplicative_expression. Adjust.
1432 (c_pretty_printer::conditional_expression): Rename from
1433 pp_c_conditional_expression. Adjust.
1434 (c_pretty_printer::assignment_expression): Rename from
1435 pp_c_assignment_expression. Adjust.
1436 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1437 (c_pretty_printer::c_pretty_printer): Do not assign to
1438 unary_expression, multiplicative_expression,
1439 conditional_expression, expression.
1440
fb22178f
GDR
14412013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1442
1443 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1444 virtual member function.
1445 (pp_postfix_expression): Adjust.
1446 (pp_c_postfix_expression): Remove.
1447 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1448 from pp_c_postfix_expression. Adjust.
1449 (c_pretty_printer::c_pretty_printer): Do not assign to
1450 postfix_expression.
1451
7ecc2600
GDR
14522013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1453
1454 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1455 virtua member function.
1456 (pp_primary_expression): Adjust.
1457 (pp_c_primary_expression): Remove.
1458 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1459 from pp_c_primary_expression. Adjust.
1460 (pp_c_initializer_list): Use pp_primary_expression.
1461 (c_pretty_printer::c_pretty_printer): Do not assign to
1462 primary_expression.
1463
0691175f
GDR
14642013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1465
1466 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1467 * c-pretty-print.c (M_): Remove.
1468 (c_pretty_printer::translate_string): Define.
1469 (pp_c_type_specifier): Use it.
1470 (pp_c_primary_expression): Likewise.
1471 (pp_c_expression): Likewise.
1472
66dfe4c4
GDR
14732013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1474
1475 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1476 virtual function.
1477 (pp_c_id_expression): Remove.
1478 (pp_id_expression): Adjust.
1479 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1480 pp_c_id_expression. Adjust.
1481 (pp_c_postfix_expression): Use pp_id_expression.
1482 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1483
ca43e9d5
GDR
14842013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1485
1486 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1487 member function.
1488 (pp_constant): Adjust.
1489 (pp_c_constant): Remove.
1490 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1491 pp_c_constant. Adjust.
1492 (pp_c_constant)
1493 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1494 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1495
da6ca2b5
GDR
14962013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1497
1498 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1499 (c_pretty_printer::c_pretty_printer): Declare.
1500 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1501 c_pretty_printer_init. Adjust.
1502 (print_c_tree): Do not call c_pretty_printer_init.
1503 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1504
65a372f4
AC
15052013-08-09 Arnaud Charlet <charlet@adacore.com>
1506
1507 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1508
fd9b0f32
PC
15092013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1510
1511 PR c++/58080
1512 * c-common.c (pointer_int_sum): Add bool parameter.
1513 * c-common.h (pointer_int_sum): Adjust declaration.
1514
e0aec1e9
GDR
15152013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1516
1517 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1518 c_pretty_printer variable.
1519
b066401f
GDR
15202013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1521
1522 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1523 (pp_base): Remove.
1524 (pp_c_base): Likewise. Adjust users.
1525 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1526 (pp_c_whitespace): Do not call pp_base.
1527 (pp_c_left_paren): Likewise.
1528 (pp_c_right_paren): Likewise.
1529 (pp_c_left_brace): Likewise.
1530 (pp_c_right_brace): Likewise.
1531 (pp_c_left_bracket): Likewise.
1532 (pp_c_right_bracket): Likewise.
1533 (pp_c_dot): Likewise.
1534 (pp_c_ampersand): Likewise.
1535 (pp_c_star): Likewise.
1536 (pp_c_arrow): Likewise.
1537 (pp_c_semicolon): Likewise.
1538 (pp_c_complement): Likewise.
1539 (pp_c_exclamation): Likewise.
1540 (pp_c_direct_declarator): Likewise.
1541 (pp_c_ws_string): Likewise.
1542 (pp_c_identifier): Likewise.
1543 (pp_c_statement): Likewise.
1544 (print_c_tree): Likewise.
1545
65e5a578
ESR
15462013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1547
1548 PR c++/58072
1549 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1550 provide useful error strings.
1551
137a1a27
GDR
15522013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1553
1554 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1555 printer functions instead of pp_string or operators and punctuators.
1556 (dump_generic_ada_node): Likewise.
1557 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1558 (pp_c_relational_expression): Likewise.
1559 (pp_c_logical_or_expression): Likewise.
1560
07838b13
GDR
15612013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1562
1563 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1564 functions instead of pp_character.
1565 (pp_ada_tree_identifier): Likewise.
1566 (dump_ada_double_name): Likewise.
1567 (dump_ada_function_declaration): Likewise.
1568 (dump_ada_array_domains): Likewise.
1569 (dump_template_types): Likewise.
1570 (dump_generic_ada_node): Likewise.
1571 (print_ada_declaration): Likewise.
1572 (print_ada_struct_decl): Likewise.
1573 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1574
433cc7b0
TT
15752013-07-23 Tom Tromey <tromey@redhat.com>
1576
1577 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1578 * c-common.c (c_common_reswords): Add _Generic.
1579
688010ba
OB
15802013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1581
1582 * c-common.c: Fix typos.
1583 * c-common.h: Likewise.
1584
2a99e5e6
LL
15852013-07-13 Lubos Lunak <l.lunak@suse.cz>
1586
1587 PR c++/55203
1588 * c-common.c (c_common_attribute_table): Add warn_unused.
1589 (handle_warn_unused_attribute): New.
1590
c26302d5
JJ
15912013-07-10 Jakub Jelinek <jakub@redhat.com>
1592
1593 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1594 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1595
dfeadaa0
PC
15962013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1597
1598 PR c++/57869
1599 * c.opt: Add Wconditionally-supported.
1600
6a2fa4b2
GS
16012013-07-08 Graham Stott <graham.stott@btinternet.com>
1602
1603 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1604 unused variables l_length and l_node.
1605
ecdbd01a 16062013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1607
1608 PR c/57821
1609 * c-common.c (complete_array_type): Delay folding first index
1610 like other indices. When folding, check for index overflow.
1611
bedc293e
MG
16122013-06-27 Marc Glisse <marc.glisse@inria.fr>
1613
1614 PR c++/57509
1615 * c-common.h (c_build_vec_perm_expr): New complain argument.
1616 * c-common.c (c_build_vec_perm_expr): Likewise.
1617 Use save_expr also in C++.
1618
604b2bfc
GDR
16192013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1620
1621 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1622 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1623 * c-opts.c (c_common_post_options): Likewise.
1624
dfeadaa0 16252013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
1626
1627 * array-notation-common.c (length_mismatch_in_expr): Changed the
1628 parameter type's from a dynamic array to a vec_tree. Also removed
1629 the size parameters.
1630 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1631 the change above.
1632
2ce86d2e
BI
16332013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1634
1635 * c-common.h (struct cilkplus_an_parts): New structure.
1636 (struct cilkplus_an_loop_parts): Likewise.
1637 (cilkplus_extract_an_triplets): New prototype.
1638 (fix_sec_implicit_args): Likewise.
1639 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1640 (fix_sec_implicit_args): Likewise.
604b2bfc 1641
07a6825b
BI
16422013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1643
1644 * array-notation-common.c (find_inv_trees): Removed an unwanted
1645 typecasting.
1646 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1647 enum rid to enum tree_code.
1648
08346abd
JH
16492013-06-11 Jan Hubicka <jh@suse.cz>
1650
1651 * c-common.c (handle_alias_ifunc_attribute): Do not set
1652 DECL_EXTERNAL for weakref variables.
1653 * c-pragma.c (handle_pragma_weak): Make sure aliases
1654 are not declared as external.
1655
d60f1706
BI
16562013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1657
1658 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1659 function from c/c-array-notation.c.
1660 (is_cilkplus_reduce_builtin): Likewise.
1661 (find_rank): Likewise.
1662 (extract_array_notation_exprs): Likewise.
1663 (replace_array_notations): Likewise.
1664 (find_inv_trees): Likewise.
1665 (replace_inv_trees): Likewise.
1666 (contains_array_notation_expr): Likewise.
1667 (find_correct_array_notation_type): Likewise.
1668 * c-common.h (struct inv_list): Moved this struct from the file
1669 c/c-array-notation.c and added a new field called additional tcodes.
1670 (length_mismatch_in_expr_p): New prototype.
1671 (is_cilkplus_reduce_builtin): Likewise.
1672 (find_rank): Likewise.
1673 (extract_array_notation_exprs): Likewise.
1674 (replace_array_notation): Likewise.
1675 (find_inv_trees): Likewise.
1676 (replace_inv_trees): Likewise.
1677 (find_correct_array_notation_type): Likewise.
dfeadaa0 1678
36536d79
BI
16792013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1680
1681 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1682 function array_notation_init_builtins is called.
1683 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1684 * c-common.def (ARRAY_NOTATION_REF): New tree.
1685 * c-common.h (build_array_notation_expr): New function declaration.
1686 (build_array_notation_ref): Likewise.
1687 (extract_sec_implicit_index_arg): New extern declaration.
1688 (is_sec_implicit_index_fn): Likewise.
1689 (ARRAY_NOTATION_CHECK): New define.
1690 (ARRAY_NOTATION_ARRAY): Likewise.
1691 (ARRAY_NOTATION_START): Likewise.
1692 (ARRAY_NOTATION_LENGTH): Likewise.
1693 (ARRAY_NOTATION_STRIDE): Likewise.
1694 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1695 ARRAY_NOTATION_REF.
1696 (pp_c_expression): Likewise.
1697 * c.opt (flag_enable_cilkplus): New flag.
1698 * array-notation-common.c: New file.
1699
f7716d57
JJ
17002013-05-14 Jakub Jelinek <jakub@redhat.com>
1701
1702 PR c++/57274
1703 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1704
a5e0cd1d
MG
17052013-05-10 Marc Glisse <marc.glisse@inria.fr>
1706
1707 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1708 vectors.
1709
f6bc1c4a
HS
17102013-05-07 Han Shen <shenhan@google.com>
1711
1712 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1713
3f12f6e9
SKS
17142013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1715
1716 * c-common.c (check_user_alignment): Emit error for negative values.
1717
61949153
PC
17182013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1719
1720 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1721
e93e18e9
PC
17222013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1723
1724 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1725 __GXX_EXPERIMENTAL_CXX1Y__.
1726
44d90fe1
PC
17272013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1728 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1729
1730 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1731 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1732 to simply use OPT_Wpointer_arith.
1733 (c_sizeof_or_alignof_type): Likewise.
1734
13f39b2e
PC
17352013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1736
1737 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1738
4b84d650
JJ
17392013-04-12 Jakub Jelinek <jakub@redhat.com>
1740
1741 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1742 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1743 specifiers.
1744
fb037b5d
SB
17452013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1746
1747 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1748
4e856798
PC
17492013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1750
1751 * c-common.c (pointer_int_sum): Remove dead code.
1752
4b1baac8
RS
17532013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1754
1755 PR middle-end/56524
1756 * c-common.c (handle_optimize_attribute): Don't call
1757 save_optabs_if_changed.
1758
0b50e654
JJ
17592013-03-05 Jakub Jelinek <jakub@redhat.com>
1760
1761 PR middle-end/56461
1762 * c-pch.c (pch_init): Free target_validity at the end.
1763
48c41403
JJ
17642013-03-04 Jakub Jelinek <jakub@redhat.com>
1765
1766 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1767
e664c61c
KS
17682013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1769 Jakub Jelinek <jakub@redhat.com>
1770
1771 PR sanitizer/56454
1772 * c-common.c (handle_no_sanitize_address_attribute): New function.
1773 (c_common_attribute_table): Add no_sanitize_address attribute.
1774 (handle_no_address_safety_analysis_attribute): Add
1775 no_sanitize_address attribute, not no_address_safety_analysis
1776 attribute.
1777
a475fd3d 17782013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1779
1780 PR target/52555
1781 * c-common.c (handle_optimize_attribute): Call
1782 save_optabs_if_changed.
1783
f6007d99
JJ
17842013-02-18 Jakub Jelinek <jakub@redhat.com>
1785 Steven Bosscher <steven@gcc.gnu.org>
1786
1787 PR pch/54117
1788 * c-opts.c (c_common_post_options): If debug info is enabled
1789 and non-dwarf*, refuse to load PCH files and when writing PCH
1790 file warn.
1791
cf35e2b1
JJ
17922013-02-05 Jakub Jelinek <jakub@redhat.com>
1793
1794 PR middle-end/56167
1795 * c-common.c (handle_error_attribute): Fix condition.
1796
32887460
JJ
17972013-01-30 Jakub Jelinek <jakub@redhat.com>
1798
1799 PR c++/55742
1800 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1801
5af057d8
JM
18022013-01-18 Jason Merrill <jason@redhat.com>
1803
1804 PR target/54908
1805 * c.opt (-fextern-tls-init): New.
1806 * c-opts.c (c_common_post_options): Handle it.
1807
cc83c823
JJ
18082013-01-09 Jakub Jelinek <jakub@redhat.com>
1809
1810 PR c/48418
1811 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1812 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1813 and is either negative or bigger or equal to type precision
1814 of the first operand.
1815
a859517f
MP
18162012-12-03 Marek Polacek <polacek@redhat.com>
1817
1818 PR c/55570
1819 * c-common.c (check_user_alignment): Swap order of tests,
1820 check TREE_CODE first.
1821
2d7aa578
ESR
18222012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1823
1824 PR c++/52654
1825 * c-common.h (overflow_type): New enum.
1826 (build_userdef_literal): Add overflow_type argument.
1827 (tree_userdef_literal): Add overflow_type.
1828 (USERDEF_LITERAL_OVERFLOW): New access macro.
1829 * c-common.c (build_userdef_literal): Add overflow_type
1830 argument.
1831 * c-lex.c (c_lex_with_flags): Add overflow_type to
1832 build_userdef_literal calls.
1833 (interpret_integer, interpret_float): Add overflow_type argument.
1834
cc3c4f62
RB
18352012-11-28 Richard Biener <rguenther@suse.de>
1836
1837 PR c/35634
1838 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1839 here and use a type with proper overflow behavior for types that would
1840 need to be promoted for the arithmetic.
1841
77bc5132
JJ
18422012-11-23 Jakub Jelinek <jakub@redhat.com>
1843
1844 PR sanitizer/55435
1845 * c-common.c (handle_no_address_safety_analysis_attribute): New
1846 function.
1847 (c_common_attribute_table): Add no_address_safety_analysis.
1848
5dc99c46
SB
18492012-11-16 Simon Baldwin <simonb@google.com>
1850
1851 * c.opt: Add f[no-]canonical-system-headers.
1852 * c-opts.c (c_common_handle_option): Handle
1853 OPT_fcanonical_system_headers.
1854
a4a0016d
ESR
18552012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1856
1857 PR c++/54413
1858 * c-opts.c (c_common_handle_option): Set new flags.
1859 * c.opt: Describe new flags.
1860
7dbb85a7
JM
18612012-11-09 Jason Merrill <jason@redhat.com>
1862
1863 * c.opt (Wabi-tag): New.
1864
ad7bac31
AK
18652012-11-09 Andi Kleen <ak@linux.intel.com>
1866
1867 PR 55139
1868 * c-common.c (get_atomic_generic_size): Mask with
1869 MEMMODEL_MASK
1870
7332899a
MLI
18712012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1872
1873 PR c/53063
1874 * c.opt (Wformat): Make it Alias Wformat=1.
1875 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1876 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1877 LangEnabledBy.
1878 (Wformat=): RejectNegative. Use LangEnabledBy.
1879 (Wnonnull): Use LangEnabledBy.
1880 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1881 * c-format.c (set_Wformat): Delete.
1882 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1883 (maybe_read_dollar_number): Likewise.
1884 (avoid_dollar_number): Likewise.
1885 (finish_dollar_format_checking): Likewise.
1886 (check_format_info): Likewise.
1887 (check_format_info_main): Likewise.
1888 (check_format_types): Likewise.
1889 (format_type_warning): Likewise.
1890 * c-common.c (int): Likewise.
1891 (check_function_sentinel): Likewise.
1892 * c-common.h (warn_format,set_Wformat): Do not declare here.
1893
34a180a6
MLI
18942012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1895
1896 PR c/53063
1897 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1898 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1899 Use LangEnabledBy.
1900 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1901 common.opt.
1902 (Wvariadic-macros): Init(1).
1903 * c-opts.c (c_common_handle_option): Do not handle them
1904 explicitly.
1905 (c_common_post_options): Likewise.
1906 (sanitize_cpp_opts): warn_unused_macros is now
1907 cpp_warn_unused_macros.
1908 (push_command_line_include): Likewise.
1909 * c-common.c (warn_unknown_pragmas): Do not define.
1910 * c-common.h (warn_unknown_pragmas): Do not declare.
1911
3f46d6a5
MLI
19122012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1913
1914 PR c/51294
1915 * c-common.c (conversion_warning): Handle conditional expressions.
1916
880661a4
JW
19172012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1918
1919 PR c++/54930
1920 * c.opt (Wreturn_local_addr): Define new option.
1921
4514a96b
JM
19222012-10-25 Jason Merrill <jason@redhat.com>
1923
f14edc1a
JM
1924 * c.opt (Wvirtual-move-assign): New.
1925
4514a96b
JM
1926 * c.opt (Winherited-variadic-ctor): New.
1927
93100c6b
MG
19282012-10-25 Marc Glisse <marc.glisse@inria.fr>
1929
1930 PR c++/54427
1931 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1932
1efcb8c6
JM
19332012-10-23 Joseph Myers <joseph@codesourcery.com>
1934
1935 * c-common.h (pch_cpp_save_state): Declare.
1936 * c-target.def (c_preinclude): New hook.
1937 * c-opts.c (done_preinclude): New.
1938 (push_command_line_include): Handle default preincluded header.
1939 (cb_file_change): Call pch_cpp_save_state when calling
1940 push_command_line_include.
1941 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1942 (pch_cpp_save_state): New.
1943 (pch_init): Call pch_cpp_save_state conditionally, instead of
1944 calling cpp_save_state.
1945
4a0ae68e
MLI
19462012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1947
1948 PR c/53063
1949 PR c/40989
1950 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1951 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1952 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1953 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1954 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1955 * c-opts.c (c_common_handle_option): Remove explicit handling from
1956 here.
1957 (c_common_post_options): Likewise.
1958
67e4210b
EB
19592012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1960
1961 * c-ada-spec.c (LOCATION_COL): Delete.
1962 (compare_location): New function.
1963 (compare_node): Use it.
1964 (compare_comment): Likewise.
1965
65d4f2cd
MLI
19662012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1967
1968 PR c/53063
1969 PR c/40989
1970 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1971 * c-opts.c (c_common_handle_option): Do not set them here. Add
1972 comment.
1973 (c_common_post_options): Likewise.
1974
909881cb
EB
19752012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1976
1977 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1978 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1979 Remove POINTER_TYPE handling, add large unsigned handling and use
1980 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1981
3a785c97
JJ
19822012-10-12 Jakub Jelinek <jakub@redhat.com>
1983
1984 PR c/54381
1985 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1986 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1987 locs and array of 3 trees instead of just single loc and single
1988 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1989 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1990 For *cmp* builtins that take two sources strings report warnings
1991 about first and second source, not about destination and source.
1992
5e54f81d
MG
19932012-10-12 Marc Glisse <marc.glisse@inria.fr>
1994
1995 PR c++/53055
1996 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1997
f5b02f1e
EB
19982012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1999
2000 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2001 declaring something coming from another file.
2002
b46dbc6c
AC
20032012-10-10 Arnaud Charlet <charlet@adacore.com>
2004
f5b02f1e 2005 PR ada/54845
b46dbc6c
AC
2006 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2007
5d9de0d0
PC
20082012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2009
2010 PR c++/54194
2011 * c-common.c (warn_about_parentheses): Add location_t parameter;
2012 use EXPR_LOC_OR_LOC.
2013 * c-common.h: Update declaration.
2014
a212e43f
MG
20152012-10-09 Marc Glisse <marc.glisse@inria.fr>
2016
2017 PR c++/54427
2018 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2019 more operations. Make error messages optional.
2020 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2021 (scalar_to_vector): Declare.
2022
b1db7f91
JM
20232012-10-08 Jason Merrill <jason@redhat.com>
2024
2025 * c-common.c (c_common_reswords): Add thread_local.
2026
e28d52cf
DS
20272012-10-08 Dodji Seketeli <dodji@redhat.com>
2028
2029 PR c++/53528 C++11 attribute support
2030 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2031 new functions.
2032 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2033 static function.
2034 (handle_aligned_attribute): In choose strictest alignment
2035 among many. Use new check_cxx_fundamental_alignment_constraints.
2036 (handle_transparent_union_attribute): In c++11 attribute syntax,
2037 don't look through typedefs.
2038
3b78de56
AC
20392012-10-04 Arnaud Charlet <charlet@adacore.com>
2040
2041 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2042 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2043 out of dumpfile.h.
2044
6040bb5f
DC
20452012-09-25 Dehao Chen <dehao@google.com>
2046
2047 PR middle-end/54645
3b78de56 2048 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
2049 map when read in the pch.
2050
0b07a57e
AC
20512012-09-18 Arnaud Charlet <charlet@adacore.com>
2052
2053 * c-ada-spec.c: Style fixes.
2054
da5182be
TQ
20552012-09-18 Thomas Quinot <quinot@adacore.com>
2056
2057 * c.opt (-fada-spec-parent): Define new command line switch.
2058 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2059 is specified, generate binding spec as a child of the specified unit.
2060
0ccb505d
PC
20612012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2062 Manuel López-Ibáñez <manu@gcc.gnu.org>
2063
2064 PR c++/53210
2065 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2066
c583af79
AC
20672012-08-23 Arnaud Charlet <charlet@adacore.com>
2068
2069 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2070 for pointers, and add missing Convention C pragma.
2071 (print_ada_struct_decl): Add missing aliased keyword.
2072 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2073
1a4049e7
JJ
20742012-08-17 Jakub Jelinek <jakub@redhat.com>
2075
2076 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2077 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2078 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2079 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2080 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2081
70b5e7dc
RG
20822012-08-10 Richard Guenther <rguenther@suse.de>
2083
2084 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2085
f8923f7e
SB
20862012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2087
2088 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2089 instead of separate pp_newline and pp_flush.
2090 (print_c_tree): Likewise.
2091
e45abe1f
RH
20922012-07-26 Richard Henderson <rth@redhat.com>
2093
2094 * c-common.c (handle_hot_attribute): Allow labels.
2095 (handle_cold_attribute): Likewise.
2096
332f1d24
JJ
20972012-07-20 Jakub Jelinek <jakub@redhat.com>
2098
2099 PR c++/28656
2100 * c-common.c (check_function_nonnull): Handle multiple nonnull
2101 attributes properly.
2102
7ee2468b
SB
21032012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2104
2105 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2106 * c-ada-spec.c: Likewise.
2107 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2108
ee7b28eb
SB
21092012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2110
2111 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2112 Remove code conditional on it.
2113
6bdf3519
SB
21142012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2115
2116 * c-gimplify.c: Do not include basic-block.h.
2117 * c-common.c: Do not include linfuncs.h.
2118
532aafad
SB
21192012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2120
2121 * c-common.h: Include tree.h.
2122
8d0d1915
JM
21232012-07-02 Jason Merrill <jason@redhat.com>
2124
2125 PR c++/53524
2126 * c-common.c (get_priority): Call default_conversion.
2127
fbc873ad
UB
21282012-07-01 Uros Bizjak <ubizjak@gmail.com>
2129
2130 * c-pch.c (c_common_write_pch): Remove unused variables.
2131
d4a10d0a
SB
21322012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2133
2134 * cppspec.c: Moved from gcc/ to here.
2135
6f3a2e23
KT
21362012-06-27 Kai Tietz <ktietz@redhat.com>
2137
2138 PR preprocessor/37215
2139 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2140
8ca92d04
SB
21412012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2142
2143 * c-common.h (c_common_print_pch_checksum): Remove.
2144 * c-pch.c: Do not include output.h.
2145 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2146 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2147 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2148 (struct c_pch_header): Remove.
2149 (get_ident): Update gpch version.
2150 (pch_init): Do not print executable_checksum to asm_out_file.
2151 Do not fail if there is no asm_out_file to read back from. Set
2152 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2153 (c_common_write_pch): Verify that nothing was written to asm_out_file
2154 since pch_init was called. Do not write a c_pch_header, and do not
2155 copy from asm_out_file to the PCH.
2156 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2157 the content of asm_out_file from the PCH.
2158 (c_common_print_pch_checksum): Remove.
2159 * c-opts.c (c_common_init): Print out executable_checksum directly.
2160
70f42967
SB
21612012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2162
2163 * c-target.def (objc_declare_unresolved_class_reference,
2164 objc_declare_class_definition): Add new hooks.
2165
a8781821
SB
21662012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2167
2168 * c-lex.c: Do not include output.h.
2169 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2170 Remove uses of ASM_OUTPUT_IDENT.
2171
9e1a8dd1
RR
21722012-06-15 Marc Glisse <marc.glisse@inria.fr>
2173
2174 PR c++/51033
2175 * c-common.h (c_build_vec_perm_expr): Move decl here.
2176 * c-common.c (c_build_vec_perm_expr): Move definition
2177 here.
2178
6f07a821
SB
21792012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2180
2181 * c.opt (fconserve-space): Turn into a no-op.
2182
9faeb493 21832012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
2184
2185 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2186 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2187 both the start and end of the function.
2188
a4b7d13c
SB
21892012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2190
2191 * c-common.c: Do not include output.h.
2192 * c-pragma.c: Likewise.
2193
c265f413
SA
21942012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2195
2196 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2197 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2198 (lang_decl_name): Handle namespace decls.
2199
be7a421e
SB
22002012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2201
2202 * c-ada-spec.c: Do not include output.h.
2203 * c-semantics.c: Likewise.
2204
65de6659
JM
22052012-05-29 Joseph Myers <joseph@codesourcery.com>
2206
2207 * c-common.c: Fix typo.
2208
ca5f4331
MM
22092012-05-29 Michael Matz <matz@suse.de>
2210
2211 * c-common.h (c_expand_decl): Remove prototype.
2212
4f7f7aca
MLI
22132012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2214
2215 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2216 * c-opts.c (c_common_handle_option): Remove code handling
2217 warn_missing_braces.
2218
4a792f9b
PC
22192012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2220
2221 PR c++/25137
2222 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2223 -Wmissing_braces.
2224
650dc14a
DS
22252012-05-22 Dodji Seketeli <dodji@redhat.com>
2226
2227 PR c++/53322
2228 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2229
9b095bf1
MLI
22302012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2231
2232 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2233 * c-opts.c (c_common_handle_option): Do not handle explicitly
2234 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2235
0b2c4be5
DS
22362012-05-16 Dodji Seketeli <dodji@redhat.com>
2237
2238 PR preprocessor/7263
2239 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2240 to cpp_classify_number. For diagnostics, use the precise location
2241 instead of the global input_location.
2242
a1bde5af
PC
22432012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2244
d02924ef 2245 PR c++/11856
a1bde5af
PC
2246 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2247
d1ede5f4
BS
22482012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2249
a1bde5af 2250 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 2251
f2bc201f
MLI
22522012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2253
2254 PR 53063
2255 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2256 Wreorder): Use LangEnabledBy.
2257 * c-opts.c (c_common_handle_option): Do not enable them
2258 explicitly. Call lang-specific generated functions.
2259 (c_common_post_options): Do not set them here.
2260
95744782
MLI
22612012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2262
2263 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2264 Wmissing-field-initializers,Wmissing-parameter-type,
2265 Wold-style-declaration,Woverride-init): Use EnabledBy.
2266 * c-opts.c (c_common_post_options): Do not set here explicitly.
2267
7d5a5747
MLI
22682012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2269
2270 PR 53063
2271 * c-opts.c (c_common_handle_option): Use handle_generated_option
2272 to enable sub-options.
2273
5a3c9cf2
PC
22742012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2275
2276 PR c++/53158
2277 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2278
3ac8781c
RG
22792012-05-10 Richard Guenther <rguenther@suse.de>
2280
2281 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2282 adjust commentary about TYPE_IS_SIZETYPE types.
2283
1e537948
MLI
22842012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2285
2286 PR c++/53261
2287 * c-common.c (warn_logical_operator): Check that argument of
2288 integer_zerop is not NULL.
2289
f2c4a785
MLI
22902012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2291
2292 PR c/43772
2293 * c-common.c (warn_logical_operator): Do not warn if either side
2294 is already true or false.
2295
50f305ca
MLI
22962012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2297
2298 PR c/51712
2299 * c-common.c (expr_original_type): New.
2300 (shorten_compare): Do not warn for enumeration types.
2301
0c3641b0
MLI
23022012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2303
2304 * c.opt (fpermissive): Add Var(flag_permissive).
2305
7edaa4d2
MG
23062012-04-30 Marc Glisse <marc.glisse@inria.fr>
2307
2308 PR c++/51033
2309 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2310 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2311
b9c8da34
DS
23122012-04-30 Dodji Seketeli <dodji@redhat.com>
2313
2314 Add -Wvarargs option
2315 * c.opt (Wvarargs): Define new option.
2316
e6c69da0
MLI
23172012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2318
2319 * c-common.c (check_function_arguments): Replace
2320 Wmissing-format-attribute with Wsuggest-attribute=format.
2321
90137d8f
MLI
23222012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2323
2324 * c.opt (Wsuggest-attribute=format): New. Alias of
2325 Wmissing-format-attribute.
2326 * c-format.c (decode_format_type): Replace
2327 Wmissing-format-attribute with Wsuggest-attribute=format.
2328 (check_function_format): Likewise.
2329
9faeb493 23302012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
2331
2332 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2333 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2334 * c.opt: Add Wliteral-suffix.
2335
c1771a20
MLI
23362012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2337
2338 PR c/44774
2339 * c.opt (Wpedantic): New.
2340 (pedantic): Alias Wpedantic.
2341 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2342 (c_common_post_options): Likewise.
2343 (sanitize_cpp_opts): Likewise.
2344 * c-lex.c (interpret_float): Likewise.
2345 * c-format.c (check_format_types): Likewise.
2346 * c-common.c (pointer_int_sum): Likewise.
2347 (c_sizeof_or_alignof_type): Likewise.
2348 (c_add_case_label): Likewise.
2349 (c_do_switch_warnings): Likewise.
2350 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2351
04b391c1
JM
23522012-04-15 Jason Merrill <jason@redhat.com>
2353
2354 PR c++/52818
2355 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2356 (C_STD_NAME): Distinguish between C++98 and C++11.
2357
ac868f29
EB
23582012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2359
2360 PR target/52624
2361 * c-common.h (uint16_type_node): Rename into...
2362 (c_uint16_type_node): ...this.
2363 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2364 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2365
fd4116f4
MLI
23662012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2367
2368 * c-common.c (warn_if_unused_value): Move definition to here.
2369 * c-common.h (warn_if_unused_value): Move declaration to here.
2370
573ac65e
WB
23712012-03-23 William Bader <williambader@hotmail.com>
2372
2373 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2374
552b8185
JM
23752012-03-20 Jason Merrill <jason@redhat.com>
2376
2377 * c-common.h (enum cxx_dialect): Add cxx1y.
2378 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2379 test.
2380 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2381 * c-opts.c (c_common_post_options): Likewise.
2382 (set_std_cxx1y): New.
2383 (c_common_handle_option): Call it.
2384 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2385
04398fa8
PC
23862012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2387
2388 PR c++/14710
2389 * c.opt ([Wuseless-cast]): Add.
2390
d2a12ae7
RG
23912012-03-16 Richard Guenther <rguenther@suse.de>
2392
2393 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2394
a12bf402
MLI
23952012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2396
2397 PR c++/44783
2398 * c.opt (ftemplate-backtrace-limit) Add.
2399
5c30094f
RO
24002012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2401
2402 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2403 handling.
2404 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2405 (init_pragma): Don't register extern_prefix.
2406
21fa2faf
RG
24072012-03-12 Richard Guenther <rguenther@suse.de>
2408
2409 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2410 (builtin_type_for_size): Likewise.
2411
e3793c6f
JJ
24122012-02-13 Jakub Jelinek <jakub@redhat.com>
2413
2414 PR c++/52215
2415 * c-common.c (sync_resolve_params): Don't decide whether to convert
2416 or not based on TYPE_SIZE comparison, convert whenever arg_type
2417 is unsigned INTEGER_TYPE.
2418
93286335
PC
24192012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2420
2421 PR c/52118
2422 * c.opt ([Wunused-local-typedefs]): Fix description.
2423
7a421706
MS
24242012-01-24 Mike Stump <mikestump@comcast.net>
2425
2426 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2427 exactly.
2428
ba9b1f11
RG
24292012-01-18 Richard Guenther <rguenther@suse.de>
2430
2431 * c-opts.c (c_common_post_options): Reset LTO flags if
2432 we are about to generate a PCH.
2433
465406be
PC
24342012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2435
2436 PR c++/51777
2437 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2438 use pp_unsigned_wide_integer.
2439
aee15221
RG
24402012-01-10 Richard Guenther <rguenther@suse.de>
2441
2442 PR middle-end/51806
2443 * c-opts.c (c_common_handle_option): Move -Werror handling
2444 to language independent code.
2445
5720c0dc
RG
24462012-01-05 Richard Guenther <rguenther@suse.de>
2447
2448 PR middle-end/51764
2449 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2450 from common.opt.
2451
73ac190a
PC
24522011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2453
2454 PR c++/51316
2455 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2456 of array types with an unknown bound.
2457
48b0b196
JM
24582011-12-20 Joseph Myers <joseph@codesourcery.com>
2459
2460 * c-common.c (flag_isoc99): Update comment to refer to C11.
2461 (flag_isoc1x): Change to flag_isoc11.
2462 * c-common.h (flag_isoc99): Update comment to refer to C11.
2463 (flag_isoc1x): Change to flag_isoc11.
2464 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2465 C11.
2466 * c-opts.c (set_std_c1x): Change to set_std_c11.
2467 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2468 Call set_std_c11.
2469 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2470 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2471 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2472 standard.
2473 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2474 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2475 (std=gnu1x): Make alias of std=gnu11.
2476
d58d6eb5
JM
24772011-12-19 Jason Merrill <jason@redhat.com>
2478
2479 PR c++/51228
2480 * c-common.c (handle_transparent_union_attribute): Check the first
2481 field if the type is complete.
2482
b3908fcc
JW
24832011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2484
2485 PR libstdc++/51365
2486 * c-common.c (RID_IS_FINAL): Add.
2487 * c-common.h (RID_IS_FINAL): Add.
2488
fea3ca91
IS
24892011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2490
2491 * c.opt (fgnu-runtime): Provide full description.
2492 (fnext-runtime): Likewise.
2493 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2494
62bad7cd
AM
24952011-11-28 Andrew MacLeod <amacleod@redhat.com>
2496
2497 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2498 predefines in one place. Add LOCK_FREE predefines.
2499 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2500 new func.
2501
c466c4ff
AM
25022011-11-24 Andrew MacLeod <amacleod@redhat.com>
2503
2504 PR c/51256
9faeb493 2505 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2506 conditions
9faeb493
UB
2507 (resolve_overloaded_atomic_exchange,
2508 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2509 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2510 error_mark_node for error conditions.
9faeb493 2511
a5952633
RG
25122011-11-08 Richard Guenther <rguenther@suse.de>
2513
2514 PR middle-end/51010
2515 c-family/
2516
0a35513e
AH
25172011-11-07 Richard Henderson <rth@redhat.com>
2518 Aldy Hernandez <aldyh@redhat.com>
2519 Torvald Riegel <triegel@redhat.com>
2520
2521 Merged from transactional-memory.
2522
2523 * c-common.c (handle_tm_wrap_attribute,
2524 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2525 (struct c_common_reswords): Added __transaction* keywords.
2526 (struct c_common_attribute_table): Added transaction* and tm_regparm
2527 attributes.
2528 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2529 masks.
2530 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2531 find_tm_attribute): Declare.
2532
6d87092d
JM
25332011-11-07 Jason Merrill <jason@redhat.com>
2534
2535 PR c++/35688
2536 * c-common.c, c-common.h: Revert yesterday's changes.
2537
8e7860a1
JM
25382011-11-06 Jason Merrill <jason@redhat.com>
2539
2540 PR c++/35688
2541 * c-common.c (decl_has_visibility_attr): Split out from...
2542 (c_determine_visibility): ...here.
2543 * c-common.h: Declare it.
2544
d19fa6b5
JM
25452011-11-06 Joseph Myers <joseph@codesourcery.com>
2546
2547 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2548 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2549 type.
2550 (check_user_alignment): New. Split out of
2551 handle_aligned_attribute. Disallow integer constants with
2552 noninteger types. Conditionally allow zero.
2553 (handle_aligned_attribute): Use check_user_alignment.
2554 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2555
86951993
AM
25562011-11-06 Andrew MacLeod <amacleod@redhat.com>
2557 Richard Henderson <rth@redhat.com>
2558
2559 Merged from cxx-mem-model.
2560
2561 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2562 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2563 parameters that are the same type size.
2564 (get_atomic_generic_size): New. Find size of generic
2565 atomic function parameters and do typechecking.
2566 (add_atomic_size_parameter): New. Insert size into parameter list.
2567 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2568 either __atomic_exchange_n or external library call.
9faeb493 2569 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 2570 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 2571 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
2572 __atomic_load_n or an external library call.
2573 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2574 __atomic_store_n or an external library call.
2575 (resolve_overloaded_builtin): Handle new __atomic builtins.
2576
cf9e9959
EB
25772011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2578
2579 PR c++/50608
2580 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2581 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2582 <INDIRECT_REF>: Return the argument.
2583 <ARRAY_REF>: Remove special code for negative offset.
2584 Call fold_build_pointer_plus instead of size_binop.
2585 (fold_offsetof): Remove STOP_REF argument and adjust.
2586 * c-common.h (fold_offsetof_1): Declare.
2587 (fold_offsetof): Remove STOP_REF argument.
2588
25339f10
JM
25892011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2590
2591 PR c++/50810
2592 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2593 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2594 Wnarrowing for C++0x and C++98.
2595 * c.opt ([Wnarrowing]): Update.
2596
89401152
PC
25972011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2598
2599 PR c++/44277
2600 * c.opt: Add Wzero-as-null-pointer-constant.
2601
97e3ad20
JM
26022011-10-31 Jason Merrill <jason@redhat.com>
2603
15694fdd
JM
2604 * c.opt (-fdeduce-init-list): Off by default.
2605
97e3ad20
JM
2606 PR c++/50920
2607 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2608 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2609 and -Wc++11-compat.
2610 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2611
fb9120e3
RAV
26122011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2613
2614 PR c++/30066
2615 * c.opt (fvisibility-inlines-hidden): Description change.
2616
3ce4f9e4
ESR
26172011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2618
2619 Implement C++11 user-defined literals.
2620 * c-common.c (build_userdef_literal): New.
2621 * c-common.def: New tree code.
2622 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2623 * c-lex.c (interpret_float): Add suffix parm.
2624 (c_lex_with_flags): Build literal tokens.
2625
5f53c243
PC
26262011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2627
2628 PR c++/50841
2629 Revert:
2630 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2631
2632 PR c++/50810
2633 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2634 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2635 Wnarrowing for C++0x and C++98.
2636 * c.opt ([Wnarrowing]): Update.
2637
263734e1
PC
26382011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2639
2640 PR c++/50810
2641 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2642 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2643 Wnarrowing for C++0x and C++98.
2644 * c.opt ([Wnarrowing]): Update.
2645
d2e312d7
PC
26462011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2647
2648 PR c++/45385
2649 * c-common.c (conversion_warning): Remove code looking for
2650 artificial operands.
2651
d17687f6
DS
26522011-10-18 Dodji Seketeli <dodji@redhat.com>
2653
2654 PR bootstrap/50760
2655 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 2656 !NO_IMPLICIT_EXTERN_C.
d17687f6 2657
fc8396e9
PC
26582011-10-17 Michael Spertus <mike_spertus@symantec.com>
2659
2660 * c-common.c (c_common_reswords): Add __bases,
2661 __direct_bases.
2662 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2663
26642011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2665
2666 PR c++/50757
2667 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2668
847e697a
TT
26692011-10-15 Tom Tromey <tromey@redhat.com>
2670 Dodji Seketeli <dodji@redhat.com>
2671
2672 * c.opt (fdebug-cpp): New option.
2673 * c-opts.c (c_common_handle_option): Handle the option.
2674 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2675 output stream in parameter. Factorized from ...
2676 (maybe_print_line): ... this. Dump location debug information when
2677 -fdebug-cpp is in effect.
2678 (print_line_1): New static function. Takes an output stream in
2679 parameter. Factorized from ...
2680 (print_line): ... here. Dump location information when -fdebug-cpp
2681 is in effect.
2682 (scan_translation_unit): Dump location information when
2683 -fdebug-cpp is in effect.
2684
92582b75
TT
26852011-10-15 Tom Tromey <tromey@redhat.com>
2686 Dodji Seketeli <dodji@redhat.com>
2687
2688 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2689 without argument.
2690 * c-opts.c (c_common_handle_option)<case
2691 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2692 cases. Handle -ftrack-macro-expansion with and without argument.
2693
46427374
TT
26942011-10-15 Tom Tromey <tromey@redhat.com>
2695 Dodji Seketeli <dodji@redhat.com>
2696
2697 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2698 (print_line, cb_define, do_line_change): Adjust to avoid touching
2699 the internals of struct line_map. Use the public API instead.
2700 * c-pch.c (c_common_read_pch): Likewise.
2701 * c-lex.c (fe_file_change): Likewise.
2702
fc8396e9
PC
27032011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2704
2705 PR c++/17212
2706 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2707
27082011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2709
2710 PR c++/33067
2711 * c-pretty-print.c (pp_c_floating_constant): Output
2712 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2713
e79983f4
MM
27142011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2715
2716 * c-common.c (def_builtin_1): Delete old interface with two
2717 parallel arrays to hold standard builtin declarations, and replace
2718 it with a function based interface that can support creating
2719 builtins on the fly in the future. Change all uses, and poison
2720 the old names. Make sure 0 is not a legitimate builtin index.
2721 * c-omp.c (c_finish_omp_barrier): Ditto.
2722 (c_finish_omp_taskwait): Ditto.
2723 (c_finish_omp_flush): Ditto.
2724
6637388f
TG
27252011-10-11 Tristan Gingold <gingold@adacore.com>
2726
2727 * c.opt: (fallow-parameterless-variadic-functions): New.
2728
3797cb21
DS
27292011-09-08 Dodji Seketeli <dodji@redhat.com>
2730
2731 PR c++/33255 - Support -Wunused-local-typedefs warning
2732 * c-common.h (struct c_language_function::local_typedefs): New
2733 field.
9faeb493
UB
2734 (record_locally_defined_typedef, maybe_record_typedef_use)
2735 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 2736 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
2737 (maybe_record_typedef_use)
2738 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
2739 * c.opt: Declare new -Wunused-local-typedefs flag.
2740
693ddb1b
EB
27412011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2742
2743 PR middle-end/50266
2744 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2745 computations.
2746
830c740f
RG
27472011-09-05 Richard Guenther <rguenther@suse.de>
2748
2749 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2750 of integer_minus_one_node for empty array upper bounds.
2751
892a371f
DS
27522011-08-28 Dodji Seketeli <dodji@redhat.com>
2753
2754 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2755 it's the first time it's being called on this main TU.
2756
0e3fdb48
RB
27572011-08-24 Richard Guenther <rguenther@suse.de>
2758
2759 PR c/49396
2760 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2761
27622011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2763
2764 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2765 defined in cpp_init_builtins and c_cpp_builtins.
2766
d4a83c10
JM
27672011-08-19 Joseph Myers <joseph@codesourcery.com>
2768
2769 * c-common.c (c_common_reswords): Add __builtin_complex.
2770 * c-common.h (RID_BUILTIN_COMPLEX): New.
2771
bbceee64
JM
27722011-08-18 Joseph Myers <joseph@codesourcery.com>
2773
2774 * c-common.c (c_common_reswords): Add _Noreturn.
2775 (keyword_is_function_specifier): Handle RID_NORETURN.
2776 * c-common.h (RID_NORETURN): New.
2777
0e3a99ae
AS
27782011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2779
2780 * c-common.c (unsafe_conversion_p): New function. Check if it is
2781 unsafe to convert an expression to the type.
2782 (conversion_warning): Adjust, use unsafe_conversion_p.
2783 * c-common.h (unsafe_conversion_p): New function declaration.
2784
20906c66
JJ
27852011-08-02 Jakub Jelinek <jakub@redhat.com>
2786
2787 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2788 (c_finish_omp_taskyield): New prototype.
2789 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2790 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2791 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2792 or RHS1 have side-effects, evaluate those too in the right spot,
2793 if it is a decl and LHS is also a decl, error out if they
2794 aren't the same.
2795 (c_finish_omp_taskyield): New function.
2796 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2797 * c-pragma.c (omp_pragmas): Add taskyield.
2798 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2799 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2800 PRAGMA_OMP_CLAUSE_MERGEABLE.
2801
770e5a2e
DS
28022011-07-25 Dodji Seketeli <dodji@redhat.com>
2803
2804 * c-common.h (set_underlying_type): Remove parm name from
2805 declaration.
2806
1baae426
RG
28072011-07-25 Romain Geissler <romain.geissler@gmail.com>
2808
2809 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2810
fcb21722
JM
28112011-07-22 Jason Merrill <jason@redhat.com>
2812
76f86d00
JM
2813 PR c++/49793
2814 * c.opt (Wnarrowing): New.
2815
3a636414
JM
2816 PR c++/30112
2817 * c-common.h: Declare c_linkage_bindings.
2818 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2819
fcb21722
JM
2820 PR c++/49813
2821 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2822 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2823 as flag_isoc99 for 'restrict'.
2824 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2825
02614448
ILT
28262011-07-21 Ian Lance Taylor <iant@google.com>
2827
2828 PR middle-end/49705
2829 * c-common.c (c_disable_warnings): New static function.
2830 (c_enable_warnings): New static function.
2831 (c_fully_fold_internal): Change local unused_p to bool. Call
2832 c_disable_warnings and c_enable_warnings rather than change
2833 c_inhibit_evaluation_warnings.
2834
34429675
JM
28352011-07-20 Jason Merrill <jason@redhat.com>
2836
2837 PR c++/6709 (DR 743)
2838 PR c++/42603 (DR 950)
2839 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2840 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2841 (CPP_DECLTYPE): New.
2842 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2843
5d49b6a7
RG
28442011-07-19 Richard Guenther <rguenther@suse.de>
2845
2846 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2847 * c-omp.c (c_finish_omp_for): Likewise.
2848
e84a58ff
EB
28492011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2850
2851 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2852 body on the next line.
2853
329af3c7
JM
28542011-07-08 Jason Merrill <jason@redhat.com>
2855
4063e61b
JM
2856 PR c++/45437
2857 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2858
329af3c7
JM
2859 PR c++/49673
2860 * c-common.c (c_apply_type_quals_to_decl): Don't check
2861 TYPE_NEEDS_CONSTRUCTING.
2862
1a072294
RG
28632011-07-06 Richard Guenther <rguenther@suse.de>
2864
2865 * c-common.c (c_common_nodes_and_builtins):
2866 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2867
fce5dddd
RG
28682011-07-05 Richard Guenther <rguenther@suse.de>
2869
2870 * c-common.c (c_common_nodes_and_builtins): Build all common
2871 tree nodes first.
2872
45d439ac
JJ
28732011-06-27 Jakub Jelinek <jakub@redhat.com>
2874
56300785
JJ
2875 * c-common.h (c_tree_chain_next): New static inline function.
2876
45d439ac
JJ
2877 * c-common.c (check_builtin_function_arguments): Handle
2878 BUILT_IN_ASSUME_ALIGNED.
2879
e0a8ecf2
AM
28802011-06-21 Andrew MacLeod <amacleod@redhat.com>
2881
2882 * c-common.c: Add sync_ or SYNC__ to builtin names.
2883 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2884
28852011-06-20 Pierre Vittet <piervit@pvittet.com>
2886
2887 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2888 handler.
2889 (gen_pragma_handler): New union.
2890 (internal_pragma_handler): New type.
2891 (c_register_pragma_with_data)
2892 (c_register_pragma_with_expansion_and_data): New functions.
2893
2894 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2895 (c_register_pragma, c_register_pragma_with_expansion)
2896 (c_invoke_pragma_handler): Changed to work with
2897 internal_pragma_handler.
2898 (c_register_pragma_with_data)
2899 (c_register_pragma_with_expansion_and_data): New functions.
2900
677f3fa8
JM
29012011-06-14 Joseph Myers <joseph@codesourcery.com>
2902
2903 * c-common.c: Include common/common-target.h.
2904 (handle_section_attribute): Use
2905 targetm_common.have_named_sections.
2906 * c-cppbuiltin.c: Include common/common-target.h.
2907 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2908
d7fc8c14
RG
29092011-06-10 Richard Guenther <rguenther@suse.de>
2910
2911 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2912 to print a IDENTIFIER_NODE.
2913
10e48e39
RO
29142011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2915 Joseph Myers <joseph@codesourcery.com>
2916
2917 * c.opt (fbuilding-libgcc): New option.
2918 * c-cppbuiltin.c (c_cpp_builtins): Define
2919 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2920
6976ae51
JM
29212011-06-07 Jason Merrill <jason@redhat.com>
2922
3ff60975
JM
2923 * c-common.c (max_tinst_depth): Lower default to 900.
2924
6976ae51
JM
2925 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2926
009db074
RG
29272011-06-07 Richard Guenther <rguenther@suse.de>
2928
2929 * c-common.c (c_common_nodes_and_builtins): Do not set
2930 size_type_node or call set_sizetype.
2931
b4592b92
DS
29322011-06-07 Dodji Seketeli <dodji@redhat.com>
2933
2934 PR debug/49130
2935 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2936 type when using pointer comparison to compare types.
b4592b92 2937
014ab419
JW
29382011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2939
2940 * c.opt: Add -Wdelete-non-virtual-dtor.
2941 * c-opts.c (c_common_handle_option): Include it in -Wall.
2942
4f60111f
NF
29432011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2944
2945 PR bootstrap/49190
2946
2947 Revert:
2948 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2949
2950 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2951 not tree_common.
2952
4cc4f2f4
JJ
29532011-05-27 Jakub Jelinek <jakub@redhat.com>
2954
2955 PR c++/49165
2956 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2957 C++ don't call c_common_truthvalue_conversion on void type arms.
2958
38e01f9e
NF
29592011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2960
2961 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2962 (stmt_list_stack): Define.
2963 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2964 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2965
92e948a8
NF
29662011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2967
2968 * c-common.c (warning_candidate_p): Check for BLOCKs.
2969
a2fc3e63
NF
29702011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2971
2972 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2973 not tree_common.
2974
0957c029
JJ
29752011-05-25 Jakub Jelinek <jakub@redhat.com>
2976
2977 * c-common.c (def_fn_type): Remove extra va_end.
2978
828fb3ba
JM
29792011-05-23 Jason Merrill <jason@redhat.com>
2980
2981 PR c++/48106
2982 * c-common.c (c_common_get_narrower): New.
2983 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2984
dde05067
NF
29852011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2986
2987 * c-common.h (check_function_arguments): Tweak prototype of
2988 check_function_arguments.
2989 * c-common.c (check_function_arguments): Likewise. Adjust
2990 calls to check_function_nonnull, check_function_format, and
2991 check_function_sentinel.
2992 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2993 separate attributes and typelist arguments. Use
2994 FOREACH_FUNCTION_ARGS to iterate over argument types.
2995
3c0d13bf
PC
29962011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2997
2998 * c-common.c (c_common_reswords): Reorder.
2999 * c-common.h (rid): Likewise.
3000
8242dd04
NF
30012011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3002
3003 * c-common.c (def_fn_type): Don't call build_function_type, call
3004 build_function_type_array or build_varargs_function_type_array
3005 instead.
3006 (c_common_nodes_and_builtins): Likewise.
3007
3d528853
NF
30082011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3009
3010 * c-common.c (c_add_case_label): Omit the loc argument to
3011 build_case_label.
3012 * c-common.h (build_case_label): Remove.
3013 * c-semantics.c (build_case_label): Remove.
3014
a04a722b
JM
30152011-05-05 Joseph Myers <joseph@codesourcery.com>
3016
3017 * c-objc.h (objc_start_method_definition): Update prototype.
3018 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3019
e19a18d4
NF
30202011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3021
3022 * c-common.c (check_main_parameter_types): Reindent. Don't use
3023 TYPE_ARG_TYPES directly.
3024 (handle_nonnull_attribute): Likewise.
3025 (sync_resolve_params): Likewise.
3026 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3027 to check_format_string.
3028 (handle_format_attribute): Likewise.
3029 (check_format_string): Take a function type to examine instead of
3030 a type list. Use a function_arg_iterator to step through argument
3031 types.
3032
c62c040f
RG
30332011-05-04 Richard Guenther <rguenther@suse.de>
3034
3035 * c-common.c (fix_string_type): Use size_int for index type bounds.
3036 (start_fname_decls): Do not pass NULL to build_int_cst.
3037 (c_init_attributes): Likewise.
3038 * c-lex.c (c_lex_with_flags): Likewise.
3039
c12ff9d8
JM
30402011-04-27 Jason Merrill <jason@redhat.com>
3041
3042 * c-common.c (make_tree_vector_from_list): New.
3043 * c-common.h: Declare it.
3044
304dfbe3
RG
30452011-04-26 Richard Guenther <rguenther@suse.de>
3046
3047 PR preprocessor/48248
3048 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3049 for output size with -P.
3050
3c0d13bf
PC
30512011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3052
3053 * c-common.c (struct c_common_resword): Add __underlying_type.
3054 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3055
04695783
JM
30562011-04-20 Jim Meyering <meyering@redhat.com>
3057
3058 * c-format.c (init_dollar_format_checking): Remove useless
3059 if-before-free.
3060
0dc33c3c
NP
30612011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3062
3063 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 3064 (objc_detect_field_duplicates): New.
0dc33c3c 3065 * stub-objc.c: Likewise.
3c0d13bf 3066
c59633d9
NP
30672011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3068
3069 * stub-objc.c (objc_declare_protocols): Renamed to
3070 objc_declare_protocol.
3071 * c-objc.h: Likewise.
3c0d13bf 3072
32dabdaf
NP
30732011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3074
3075 * stub-objc.c (objc_declare_class): Updated argument name.
3076
81f653d6
NF
30772011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3078
3079 * c-common.h (c_common_init_ts): Declare.
3080 * c-common.c (c_common_init_ts): Define.
3081
eb345401
NP
30822011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3083
3084 * c-objc.h (objc_build_message_expr): Updated prototype.
3085 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 3086
a358e188
MJ
30872011-04-12 Martin Jambor <mjambor@suse.cz>
3088
3089 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3090 of cgraph_node.
3091
e6313a78
RG
30922011-04-11 Richard Guenther <rguenther@suse.de>
3093
3094 * c-common.c (complete_array_type): Build a range type of
3095 proper type.
3096
dcf0c47e
NF
30972011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3098
3099 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3100 (handle_type_generic_attribute): Likewise.
3101
1ee44b26
JM
31022011-04-07 Jason Merrill <jason@redhat.com>
3103
3104 PR c++/48450
3105 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3106 conversion from C++0x scoped enum.
3107
acce4e77
JM
31082011-04-06 Joseph Myers <joseph@codesourcery.com>
3109
3110 * c-target-def.h: New file.
3111 * c-target.def: New file.
3112 * c-target.h: New file.
3113 * c-common.c (targetcm): Don't define here.
3114 * c-common.h (default_handle_c_option): Declare.
3115 * c-format.c: Include c-target.h instead of target.h.
3116 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3117 include tm.h.
3118 (default_handle_c_option): Move from targhooks.c.
3119
e2eefb55
JJ
31202011-03-29 Jakub Jelinek <jakub@redhat.com>
3121
3122 PR preprocessor/48248
3123 * c-ppoutput.c (print): Add src_file field.
3124 (init_pp_output): Initialize it.
3125 (maybe_print_line): Don't optimize by adding up to 8 newlines
3126 if map->to_file and print.src_file are different file.
3127 (print_line): Update print.src_file.
3128
ba78087b
KT
31292011-03-25 Kai Tietz <ktietz@redhat.com>
3130
3131 * c-ada-spec.c (compare_comment): Use filename_cmp
3132 instead of strcmp for filename.
3133
0edf1bb2
JL
31342011-03-25 Jeff Law <law@redhat.com>
3135
3136 * c-family/c-common.c (def_fn_type): Add missing va_end.
3137
c7dc8804
JM
31382011-03-25 Jason Merrill <jason@redhat.com>
3139
3140 * c.opt: Add -std=c++03.
3141
d1d879b1
EB
31422011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3143
3144 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3145
62d784f7
KT
31462011-03-17 Kai Tietz
3147
3148 PR target/12171
5050afdf
KT
3149 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3150 Display allowed attributes for function pointer types.
3151 (pp_c_attributes_display): New function to display
3152 attributes having affects_type_identity flag set to true.
3153 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3154
62d784f7
KT
3155 * c-common.c (c_common_attribute_table):
3156 Add new element.
3157 (c_common_format_attribute_table): Likewise.
3158
82d37118
JM
31592011-03-18 Jason Merrill <jason@redhat.com>
3160
49a000c3
JM
3161 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3162 * c-common.h: Don't declare it here.
3163 * c-common.c: Or define it here.
3164 * c-opts.c (c_common_handle_option): Or set it here.
3165
82d37118
JM
3166 PR c++/35315
3167 * c-common.c (handle_transparent_union_attribute): Don't
3168 make a duplicate type in C++.
3169
17bc631c
JM
31702011-03-15 Jason Merrill <jason@redhat.com>
3171
3172 * c-common.c (max_constexpr_depth): New.
3173 * c-common.h: Declare it.
3174 * c-opts.c (c_common_handle_option): Set it.
3175 * c.opt (fconstexpr-depth): New option.
3176
1b9b91a6
JM
31772011-03-11 Jason Merrill <jason@redhat.com>
3178
f231b5ff
JM
3179 * c-common.c (attribute_takes_identifier_p): Add missing const.
3180
1b9b91a6
JM
3181 PR c++/46803
3182 * c-common.c (attribute_takes_identifier_p): Assume that an
3183 unknown attribute takes an identifier.
3184
a19e4d44
NF
31852011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3186
3187 PR c/47786
3188 * c-common.c (c_type_hash): Call list_length instead of iterating
3189 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3190
982d62f6
JJ
31912011-02-19 Jakub Jelinek <jakub@redhat.com>
3192
3193 PR c/47809
3194 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3195
0a256240
NP
31962011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3197
3198 * c.opt (fobjc-abi-version=) New.
3199 (fobjc-nilcheck): New.
3200
ba9e6dd5
NF
32012011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3202
3203 PR c++/46890
3204 * c-common.h (keyword_is_decl_specifier): Declare.
3205 * c-common.c (keyword_is_decl_specifier): Define.
3206 (keyword_is_function_specifier): New function.
3207
7273813a
JJ
32082011-01-26 Jakub Jelinek <jakub@redhat.com>
3209
3210 PR c/47473
3211 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3212 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3213 REAL_TYPE.
3214
908ef79b
AC
32152011-01-26 Arnaud Charlet <charlet@adacore.com>
3216
3217 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3218
237e9384
JJ
32192011-01-26 Jakub Jelinek <jakub@redhat.com>
3220
3221 PR pch/47430
3222 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3223 after init_c_lex if pch_file is set.
3224
47ea1edf
DK
32252011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3226
d4dba752 3227 PR c++/43601
47ea1edf
DK
3228 * c.opt (-fkeep-inline-dllexport): New switch.
3229
2aa9c6ae
RG
32302011-01-12 Richard Guenther <rguenther@suse.de>
3231
3232 PR middle-end/32511
3233 * c-common.c (handle_weak_attribute): Warn instead of error
3234 on declaring an inline function weak.
3235
7bd11157
TT
32362011-01-05 Tom Tromey <tromey@redhat.com>
3237
3238 * c-common.h (lvalue_error): Update.
3239 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3240 not error.
3241
0e66e494 32422010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 3243
b4f588c4
NP
3244 PR objc/47075
3245 * c-objc.h (objc_finish_message_expr): Added argument to
3246 prototype.
3247
f4da8dce
NF
32482010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3249
3250 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3251 Use prototype_p.
3252
46270f14
NP
32532010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3254
3255 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 3256 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 3257
4816c593
NF
32582010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3259
3260 * c-common.h (readonly_error): Declare.
3261 * c-common.c (readonly_error): Define.
3262
7a6daeb0
NF
32632010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3264
3265 * c-common.h (invalid_indirection_error): Declare.
3266 * c-common.c (invalid_indirection_error): Define.
3267
892f6119
RG
32682010-12-03 Richard Guenther <rguenther@suse.de>
3269
3270 PR c/46745
3271 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3272 (pp_c_unary_expression): Likewise.
3273 (pp_c_expression): Likewise.
3274
6c39e757
NP
32752010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3276
3277 * c-common.h (objc_finish_function): New.
3278 (objc_non_volatilized_type): Removed.
3279 (objc_type_quals_match): Removed.
3280 * stub-objc.c (objc_finish_function): New.
3281 (objc_non_volatilized_type): Removed.
3282 (objc_type_quals_match): Removed.
9faeb493 3283
7c475d11
JM
32842010-11-30 Joseph Myers <joseph@codesourcery.com>
3285
3286 * c-common.h (parse_optimize_options): Declare.
3287 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3288 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3289
71f3e391
JM
32902010-11-29 Joseph Myers <joseph@codesourcery.com>
3291
3292 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3293 GET_ENVIRONMENT.
3294 * c-pch.c (O_BINARY): Don't define here.
3295 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3296
d5fabb58
JM
32972010-11-25 Joseph Myers <joseph@codesourcery.com>
3298
3299 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3300 targetm.except_unwind_info.
3301
299404a1
JM
33022010-11-23 Joseph Myers <joseph@codesourcery.com>
3303
3304 * c-opts.c (c_common_handle_option): Pass location to
3305 set_struct_debug_option.
3306
c98cd5bf
JM
33072010-11-23 Joseph Myers <joseph@codesourcery.com>
3308
3309 * c-common.c (visibility_options): Move from ../opts.c.
3310 * c-common.h (struct visibility_flags, visibility_options):
3311 Declare here.
3312 * c-opts.c (finish_options): Rename to c_finish_options.
3313 (c_common_init): Update call to finish_options.
3314
a9546771
NP
33152010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3316
3317 PR objc/34033
3318 * c-lex.c (lex_string): Check that each string in an Objective-C
3319 string concat sequence starts with either one or zero '@', and
3320 that there are no spurious '@' signs at the end.
3321
24a57808
JM
33222010-11-20 Joseph Myers <joseph@codesourcery.com>
3323
3324 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3325 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3326 HANDLE_PRAGMA_VISIBILITY.
3327 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3328 HANDLE_PRAGMA_VISIBILITY): Don't define.
3329 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3330
a9aa2c3a
NF
33312010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3332
3333 PR c++/16189
3334 PR c++/36888
3335 PR c++/45331
3336 * c-common.h (keyword_begins_type_specifier): Declare.
3337 (keyword_is_storage_class_specifier): Declare.
3338 (keyword_is_type_qualifier): Declare.
3339 * c-common.c (keyword_begins_type_specifier): New function.
3340 (keyword_is_storage_class_specifier): New function.
3341 (keyword_is_type_qualifier): Declare.
3342
5386338c
JM
33432010-11-19 Joseph Myers <joseph@codesourcery.com>
3344
3345 PR c/46547
3346 * c-common.c (in_late_binary_op): Define.
3347 (c_common_truthvalue_conversion): Check in_late_binary_op before
3348 calling c_save_expr.
3349 * c-common.h (in_late_binary_op): Declare.
3350
69ccdddb
JM
33512010-11-19 Joseph Myers <joseph@codesourcery.com>
3352
3353 * c-opts.c (c_common_handle_option): Update calls to
3354 set_struct_debug_option.
3355
6b192a09
NP
33562010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3357
3358 * c-common.h (objc_declare_protocols): Added additional argument.
3359 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 3360
fb52b50a
NF
33612010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3362
3363 PR c/33193
3364 * c-common.h (build_real_imag_expr): Declare.
3365 * c-semantics.c (build_real_imag_expr): Define.
3366
b37421c6
JM
33672010-11-17 Joseph Myers <joseph@codesourcery.com>
3368
3369 * c-opts.c (c_common_parse_file): Take no arguments.
3370 * c-common.h (c_common_parse_file): Update prototype.
3371
07078664
JJ
33722010-11-16 Jakub Jelinek <jakub@redhat.com>
3373
3374 PR c++/46401
3375 * c-common.c (warning_candidate_p): Don't track non-const calls
3376 or STRING_CSTs.
3377
c6a13190
ILT
33782010-11-15 Ian Lance Taylor <iant@google.com>
3379
3380 * c-lex.c (init_c_lex): Set macro debug callbacks if
3381 flag_dump_go_spec is set.
3382
925e8657
NP
33832010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3384
3385 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3386 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3387
bb0a9581
NF
33882010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3389
3390 PR preprocessor/45038
3391 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3392 dialects.
3393
c5fa0890
JM
33942010-11-12 Joseph Myers <joseph@codesourcery.com>
3395
3396 * c-common.h (c_family_lang_mask): Declare.
3397 * c-opts.c (c_family_lang_mask): Make extern.
3398 * c-pragma.c (handle_pragma_diagnostic): Use
3399 control_warning_option.
3400
a4d8c676
JM
34012010-11-12 Joseph Myers <joseph@codesourcery.com>
3402
3403 * c-common.c (parse_optimize_options): Update call to
3404 decode_options.
3405 * c-common.h (c_common_handle_option): Update prototype.
3406 * c-opts.c (c_common_handle_option): Take location_t parameter and
3407 pass it to other functions.
3408
f954bd2c
JM
34092010-11-11 Joseph Myers <joseph@codesourcery.com>
3410
3411 * c-opts.c (warning_as_error_callback): Remove.
3412 (c_common_initialize_diagnostics): Don't call
3413 register_warning_as_error_callback.
3414 (c_common_handle_option): Handle -Werror=normalized= here.
3415
d8a07487
JM
34162010-11-10 Joseph Myers <joseph@codesourcery.com>
3417
3418 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3419 in diagnostic.
3420 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3421 letter.
3422 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3423 Remove trailing '.' from diagnostics.
3424 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3425
d5478783
JM
34262010-11-10 Joseph Myers <joseph@codesourcery.com>
3427
3428 * c-common.c (parse_optimize_options): Pass global_dc to
3429 decode_options.
3430 * c-opts.c (c_common_handle_option): Pass &global_options to
3431 set_Wstrict_aliasing.
3432 * c.opt (v): Don't mark Common or document here.
3433
91ebb981
IS
34342010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3435
3436 PR target/44981
3437 * c-format.c (format_type): New type gcc_objc_string_format_type.
3438 (valid_stringptr_type_p): New.
3439 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3440 (check_format_string): Pass expected type, use
91ebb981
IS
3441 valid_stringptr_type_p (), check that the format string types are
3442 consistent with the format specification.
3443 (decode_format_attr): Warn if NSString is used outside objective-c.
3444 (format_types_orig): Add NSString.
3445 (format_name): New.
3446 (format_flags): New.
3447 (check_format_arg): Handle format strings requiring an external parser.
3448 first_target_format_type: New variable.
3449 (handle_format_attribute): Set up first_target_format_type, pass the
3450 expected format arg string type to check_format_string().
3451 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3452 * stub-objc.c (objc_string_ref_type_p): New.
3453 (objc_check_format_arg): New.
3454
bede2adc
NP
34552010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3456
9faeb493 3457 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3458 * c-common.h (objc_build_class_component_ref): New.
3459 * stub-objc.c (objc_build_class_component_ref): New.
3460
9a179d01
NP
34612010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3462
3463 * c.opt (Wproperty-assign-default): New option.
3464
22d8d616
NP
34652010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3466
3467 Implemented -fobjc-std=objc1 flag.
3468 * c.opt (fobjc-std=objc1): New option.
3469
2debdb4f
NP
34702010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3471
3472 Implemented format and noreturn attributes for Objective-C methods.
3473 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3474 attribute for Objective-C methods.
3475
ec52b111
JM
34762010-10-31 Jason Merrill <jason@redhat.com>
3477
3478 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3479 EXPR_LOC_OR_HERE.
3480
46a88c12
NP
34812010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3482
3483 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3484 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3485 (objc_add_property_declaration): Removed arguments for copies and
3486 ivar.
3487 (objc_build_getter_call): Renamed to
3488 objc_maybe_build_component_ref.
3489 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3490 (objc_is_property_ref): New.
3491 * c-common.c (c_common_reswords): Removed copies and ivar.
3492 * stub-objc.c (objc_add_property_declaration): Removed arguments
3493 for copies and ivar.
3494 (objc_build_getter_call): Renamed to
3495 objc_maybe_build_component_ref.
3496 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3497 (objc_is_property_ref): New.
9faeb493 3498
1e4bf85b
AC
34992010-10-29 Arnaud Charlet <charlet@adacore.com>
3500 Matthew Gingell <gingell@adacore.com>
3501
3502 * c-ada-spec.c (separate_class_package): New function.
3503 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3504 name of their enclosing package.
3505 (print_ada_declaration): Use separate_class_package.
3506
81f0bab2
JM
35072010-10-27 Jason Merrill <jason@redhat.com>
3508
2b08f2c5
JM
3509 * c-common.c (c_common_reswords): Add __is_literal_type.
3510 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3511
81f0bab2
JM
3512 * c-common.c (check_case_value): Remove special C++ code.
3513
200290f2
NP
35142010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3515
3516 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3517 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3518 and RID_LAST_PATTR.
3519 (objc_add_property_declaration): Added additional arguments.
3520 (objc_property_attribute_kind): Removed.
3521 (objc_set_property_attr): Removed.
3522 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3523 copy and nonatomic.
3524 * stub-objc.c (objc_add_property_declaration): Added additional
3525 arguments.
3526 (objc_set_property_attr): Removed.
9faeb493 3527
f614132b
NP
35282010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3529
3530 * c-common.h (objc_add_property_variable): Renamed to
3531 objc_add_property_declaration. Added location argument.
3532 * stub-objc.c (objc_add_property_variable): Same change.
3533
b8a18805
NP
35342010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3535
3536 * c-common.h (objc_maybe_printable_name): New.
3537 * stub-objc.c (objc_maybe_printable_name): New.
3538
30cd1c5d
AS
35392010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3540 Andrew Pinski <pinskia@gmail.com>
3541
3542 * c-common.h (c_common_mark_addressable_vec): Declare.
3543 * c-common.c (c_common_mark_addressable_vec): New function.
3544
249a82c4
NP
35452010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3546
3547 * c-common.h (objc_set_method_type): Removed.
3548 (objc_add_method_declaration): Added boolean argument.
3549 (objc_start_method_definition): Same change.
3550 (objc_build_method_signature): Same change.
3551 * stub-objc.c (objc_set_method_type): Removed.
3552 (objc_add_method_declaration): Added boolean argument.
3553 (objc_start_method_definition): Same change.
3554 (objc_build_method_signature): Same change.
3555
977e30bc
NP
35562010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3557
3558 * c-common.h (finish_file): Removed.
3559 (objc_write_global_declarations): New.
3560 * c-opts.c (c_common_parse_file): Do not call finish_file.
3561 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3562
da57d1b9
NP
35632010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3564
3565 Implemented parsing @synthesize and @dynamic for
3566 Objective-C/Objective-C++.
3567 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3568 (objc_add_synthesize_declaration): New.
3569 (objc_add_dynamic_declaration): New.
3570 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3571 * stub-objc.c (objc_add_synthesize_declaration): New.
3572 (objc_add_dynamic_declaration): New.
9faeb493 3573
0069111f
MM
35742010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3575
3576 PR target/46041
3577 * c-cppbuiltin.c (mode_has_fma): Move function here from
3578 builtins.c. Don't use the fma optab, instead just use the
3579 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3580 using -save-temps.
3581
e426b47b
NP
35822010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3583
3584 Merge from 'apple/trunk' branch on FSF servers.
0069111f 3585
e426b47b
NP
3586 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3587
9faeb493 3588 Radar 4330422
e426b47b
NP
3589 * c-common.h (objc_non_volatilized_type): New declaration
3590 * stub-objc.c (objc_non_volatilized_type): New stub.
3591
90fbfdc3
NP
35922010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3593
e426b47b 3594 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
3595
3596 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3597
9faeb493 3598 Radar 4133425
90fbfdc3 3599 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 3600 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 3601
c37d8c30
IS
36022010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3603
3604 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3605 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3606 (objc_ivar_visibility_kind): New enum.
3607 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 3608 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
3609 visibility enum.
3610
1b1562a5
MM
36112010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3612
3613 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3614 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3615 has the appropriate fma builtins.
3616 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3617
668ea4b1
IS
36182010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3619
1b1562a5 3620 merge from FSF apple 'trunk' branch.
668ea4b1 3621 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 3622
668ea4b1
IS
3623 Radars 4436866, 4505126, 4506903, 4517826
3624 * c-common.c (c_common_resword): Define @property and its attributes.
3625 * c-common.h: Define property attribute enum entries.
3626 (OBJC_IS_PATTR_KEYWORD): New.
3627 (objc_property_attribute_kind): New enum.
3628 Declare objc_set_property_attr (), objc_add_property_variable (),
3629 objc_build_getter_call () and objc_build_setter_call ().
3630 * stub-objc.c (objc_set_property_attr): New stub.
3631 (objc_add_property_variable): Likewise.
3632 (objc_build_getter_call): Likewise.
3633 (objc_build_setter_call) Likewise.
1b1562a5 3634
a1178b30
IS
36352010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3636
1b1562a5 3637 merge from FSF apple 'trunk' branch.
a1178b30
IS
3638 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3639
3640 Radar 3803157 (method attributes)
3641 * c-common.c (handle_deprecated_attribute): Recognize
3642 objc methods as valid declarations.
3643 * c-common.h: Declare objc_method_decl ().
1b1562a5 3644 * stub-objc.c (objc_method_decl): New stub.
a1178b30 3645
a75bfaa6
JM
36462010-10-08 Joseph Myers <joseph@codesourcery.com>
3647
3648 * c-common.c (parse_optimize_options): Call
3649 decode_cmdline_options_to_array_default_mask before
3650 decode_options. Update arguments to decode_options.
3651 * c-common.h (c_common_init_options_struct): Declare.
3652 * c-opts.c (c_common_init_options_struct): New. Split out from
3653 c_common_init_options.
3654
f05b9d93
NP
36552010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3656
3657 Implemented fast enumeration for Objective-C.
3658 * c-common.h (objc_finish_foreach_loop): New.
3659 * stub-objc.c (objc_finish_foreach_loop): New.
3660
1ebe4b4f
JM
36612010-10-05 Joseph Myers <joseph@codesourcery.com>
3662
3663 * c-common.h (struct diagnostic_context): Don't declare here.
3664 (c_common_initialize_diagnostics): Declare using
3665 diagnostic_context typedef.
3666 * c-opts.c (c_common_handle_option): Pass global_dc to
3667 handle_generated_option.
3668
d4d24ba4
JM
36692010-10-04 Joseph Myers <joseph@codesourcery.com>
3670
3671 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3672 handle_generated_option.
3673
478a1c5b
ILT
36742010-10-03 Ian Lance Taylor <iant@google.com>
3675
3676 * c.opt (-fplan9-extensions): New option.
3677
82a1c2fe
FXC
36782010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3679
3680 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3681 Remove.
3682 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3683 of duplicating code.
3684
92902b1b
IS
36852010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3686
3687 * c-common.c: Add two new entries for @optional
3688 and @required keywords.
3689
3690 merge from FSF 'apple/trunk' branch.
3691 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3692
3693 Radar 4386773
3694 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3695 objective-c keywords.
3696 (objc_set_method_opt): New declaration.
3697 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 3698
46625112
JM
36992010-09-30 Joseph Myers <joseph@codesourcery.com>
3700
3701 * c-common.c (handle_optimize_attribute): Pass &global_options to
3702 cl_optimization_save and cl_optimization_restore.
3703 * c-opts.c (c_common_handle_option): Pass &global_options to
3704 handle_generated_option.
3705 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3706 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3707 &global_options to cl_optimization_restore.
3708
49b91f05
NP
37092010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3710
3711 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3712 Objective-C/Objective-C++ keywords.
3713
13ed556f 37142010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 3715
9faeb493
UB
3716 Merge from 'apple/trunk' branch on FSF servers.
3717
a6341d57
NP
3718 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3719
3720 Radar 4281748
3721 * c-common.h (objc_check_global_decl): New declaration.
3722 * stub-objc.c (objc_check_global_decl): New stub.
3723
f0036cca
JM
37242010-09-29 Joseph Myers <joseph@codesourcery.com>
3725
3726 * c.opt: Don't use VarExists.
3727
e3339d0f
JM
37282010-09-29 Joseph Myers <joseph@codesourcery.com>
3729
3730 * c-common.c (c_cpp_error): Update names of diagnostic_context
3731 members.
3732 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3733 cl_optimization members.
3734 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3735 sanitize_cpp_opts, finish_options): Update names of cpp_options
3736 members.
3737
1973201f
NP
37382010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3739
3740 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3741 (objc_is_reserved_word): Removed.
3742 * c-common.c: Updated comments.
3743 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3744 objc_is_reserved_word.
3745 * stub-objc.c (objc_is_reserved_word): Removed.
3746
f7e71da5
IS
37472010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3748
9faeb493 3749 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
3750 include attributes.
3751 (objc_start_method_definition): Likewise.
3752 (objc_build_keyword_decl): Likewise.
3753 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3754 (objc_start_method_definition): Likewise.
3755 (objc_build_keyword_decl): Likewise.
3756
c165dca7
IS
37572010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3758
3759 * c-common.h (objc_start_class_interface): Adjust prototype.
3760 (objc_start_category_interface): Likewise.
3761 (objc_start_protocol): Likewise.
3762 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3763 (objc_start_class_interface): Likewise.
3764 (objc_start_category_interface): Likewise.
3765
7458026b
ILT
37662010-09-27 Ian Lance Taylor <iant@google.com>
3767
3768 * c-common.c (c_common_attribute_table): Add no_split_stack.
3769 (handle_no_split_stack_attribute): New static function.
3770
b581b85b
NP
37712010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3772
9faeb493 3773 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3774
3775 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3776
9faeb493 3777 Radar 4229905
b581b85b
NP
3778 * c-common.h (objc_have_common_type): New declaration.
3779 * stub-objc.c (objc_have_common_type): New stub.
3780
3781 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3782
3783 Radar 4154928
3784 * c-common.h (objc_common_type): New prototype.
9faeb493 3785 * stub-objc.c (objc_common_type): New stub.
b581b85b 3786
46a4da10
JH
37872010-09-24 Jan Hubicka <jh@suse.cz>
3788
3789 * c-common.c (handle_leaf_attribute): New function.
3790 (struct attribute_spec c_common_att): Add leaf.
3791
e200444e
JM
37922010-09-22 Joseph Myers <joseph@codesourcery.com>
3793
3794 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3795 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3796 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3797 -include-barrier, -include-directory, -include-directory=,
3798 -include-directory-after, -include-directory-after=,
3799 -include-prefix, -include-prefix=, -include-with-prefix,
3800 -include-with-prefix=, -include-with-prefix-after,
3801 -include-with-prefix-after=, -include-with-prefix-before,
3802 -include-with-prefix-before=, -no-integrated-cpp,
3803 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3804 -output=, -pedantic, -pedantic-errors, -preprocess,
3805 -print-missing-file-dependencies, -trace-includes, -traditional,
3806 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3807 -user-dependencies, -verbose, -write-dependencies,
3808 -write-user-dependencies, no-integrated-cpp, traditional): New.
3809
29a80ea6
NP
38102010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3811
3812 PR objc/23710
ac1fc2fc
NP
3813 * c-common.h (objc_start_method_definition): Return bool instead
3814 of void.
3815 * stub-objc.c (objc_start_method_definition): Return bool instead
3816 of void.
3817
38182010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3819
3820 PR objc/25965
3821 * c-common.h (objc_get_interface_ivars): New declaration.
3822 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3823
de621752
ILT
38242010-09-15 Ian Lance Taylor <iant@google.com>
3825
3826 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3827 messages. Remove period at end of warning message.
de621752 3828
ba885ec5
NS
38292010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3830
3831 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3832 (handle_alias_attribute): ... here.
3833 (handle_ifunc_attribute): New.
3834
c5ee1358
MM
38352010-09-06 Mark Mitchell <mark@codesourcery.com>
3836
3837 * c-common.h (do_warn_double_promotion): Declare.
3838 * c-common.c (do_warn_double_promotion): Define.
3839
0a0b3574
MM
38402010-09-05 Mark Mitchell <mark@codesourcery.com>
3841
3842 * c.opt (Wdouble-promotion): New.
3843
d1779886
JM
38442010-09-02 Joseph Myers <joseph@codesourcery.com>
3845
3846 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3847 fvtable-thunks, fxref): Mark no longer supported in help text.
3848
2d2bd949
JM
38492010-09-02 Joseph Myers <joseph@codesourcery.com>
3850
3851 * c.opt (Wimport, fall-virtual, falt-external-templates,
3852 fdefault-inline, fenum-int-equiv, fexternal-templates,
3853 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3854 fname-mangling-version-, fnew-abi, fnonnull-objects,
3855 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3856 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3857 applicable.
3858 (fhandle-exceptions): Mark with Alias and Warn.
3859 * c-opts.c (c_common_handle_option): Don't handle options marked
3860 as ignored.
3861
5de8299c
JM
38622010-09-02 Joseph Myers <joseph@codesourcery.com>
3863
3864 * c.opt (Wcomments, Werror-implicit-function-declaration,
3865 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3866 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3867 aliases.
3868 * c-common.c (option_codes): Use OPT_Wcomment instead of
3869 OPT_Wcomments.
3870 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3871 Don't handle options marked as aliases.
3872
0ceb0201
RG
38732010-08-25 Richard Guenther <rguenther@suse.de>
3874
3875 * c-common.c (c_common_get_alias_set): Remove special
3876 handling for pointers.
3877
ac47786e
NF
38782010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3879
3880 * c-common.c: Use FOR_EACH_VEC_ELT.
3881 * c-gimplify.c: Likewise.
3882 * c-pragma.c: Likewise.
3883
c878765b
JM
38842010-08-16 Joseph Myers <joseph@codesourcery.com>
3885
3886 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3887 RejectDriver.
3888 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3889 RejectDriver.
3890 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3891 instead of OPT_MDX and OPT_MMDX.
3892
603349bf
JM
38932010-08-16 Joseph Myers <joseph@codesourcery.com>
3894
3895 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3896
644fa7ac
JM
38972010-08-12 Joseph Myers <joseph@codesourcery.com>
3898
3899 * c.opt (MD, MMD): Change to MDX and MMDX.
3900 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3901
481e1176
JM
39022010-08-11 Joseph Myers <joseph@codesourcery.com>
3903
3904 * c-opts.c (c_common_handle_option): Call handle_generated_option
3905 instead of handle_option.
3906
ac8dc9f7
NF
39072010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3908
3909 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3910 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3911
4f8c876d
NF
39122010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3913
3914 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3915 (pending_redefine_extname): Change type to a VEC.
3916 (add_to_renaming_pragma_list): Update for new type of
3917 pending_redefine_extname.
ac8dc9f7 3918 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3919
3b0c690e
AC
39202010-08-04 Arnaud Charlet <charlet@adacore.com>
3921
3922 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3923 visited.
3924 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3925 decide whether a type has already been declared/seen.
3926 Do not go to the original type.
3927 (dump_nested_types): New parameter forward.
3928 Generate forward declaration if needed and mark type as visited.
3929 (print_ada_declaration): Call dump_nested_types if not already done.
3930 Mark types as visited.
3931
1890bccc
JM
39322010-08-03 Joseph Myers <joseph@codesourcery.com>
3933
3934 * c.opt (-print-pch-checksum): Remove option.
3935 * c-opts.c (c_common_handle_option): Don't handle
3936 OPT_print_pch_checksum.
3937
5f20c657
JM
39382010-07-27 Joseph Myers <joseph@codesourcery.com>
3939
3940 * c-common.h (c_common_handle_option): Update prototype and return
3941 value type.
3942 * c-opts.c (c_common_handle_option): Update prototype and return
3943 value type. Update calls to handle_option and
3944 enable_warning_as_error.
3945
f551f80c
JJ
39462010-07-27 Jakub Jelinek <jakub@redhat.com>
3947
3948 PR c/45079
3949 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3950
61ff2bdc
JM
39512010-07-27 Joseph Myers <joseph@codesourcery.com>
3952
3953 * c-common.h (c_common_missing_argument): Remove.
3954 * c-opts.c (c_common_missing_argument): Remove.
3955 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3956 idirafter, imacros, include, isysroot, isystem, iquote): Add
3957 MissingArgError.
3958 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3959
7a9bf9a4
JM
39602010-07-27 Joseph Myers <joseph@codesourcery.com>
3961
3962 * c-common.h (c_common_option_lang_mask,
3963 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3964 New.
3965 (c_common_init_options): Update prototype.
3966 * c-opts.c (c_common_option_lang_mask): New.
3967 (c_common_initialize_diagnostics): Split out of
3968 c_common_init_options.
3969 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3970 New.
3971 (c_common_init_options): Update prototype. Use decoded options in
3972 search for -lang-asm.
3973
910ad8de
NF
39742010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3975
3976 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3977 * c-format.c: Likewise.
3978
718f9c0f
MLI
39792010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3980
3981 * c-common.h: Include diagnostic-core.h. Error if already
3982 included.
3983 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3984
4d451982
MLI
39852010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3986
3987 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3988 Do not include expr.h
3989 (vector_mode_valid_p): Move here.
3990
119fe915
SB
39912010-06-21 DJ Delorie <dj@redhat.com>
3992
3993 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3994 allow these pragmas anywhere.
3995
39962010-06-14 Jakub Jelinek <jakub@redhat.com>
3997
3998 PR bootstrap/44509
3999 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4000 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4001 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4002 ggc_strdup instead of xstrdup.
4003
40042010-06-10 Jakub Jelinek <jakub@redhat.com>
4005
4006 * c-cppbuiltin.c: Include cpp-id-data.h.
4007 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4008 (lazy_hex_fp_value): New function.
4009 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4010
6662d794
MLI
40112010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4012
4013 * c-gimplify.c: Do not include tree-flow.h
4014
38f8b050
JR
40152010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4016
4017 PR other/44034
4018 * c-common.c: Rename targetm member:
4019 targetm.enum_va_list -> targetm.enum_va_list_p
4020
9589f23e
AS
40212010-06-28 Anatoly Sokolov <aesok@post.ru>
4022
4023 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4024
3b06d379
SB
40252010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4026
4027 * c-cppbuiltin.c: Do not include except.h.
4028
d166d4c3
AK
40292010-06-24 Andi Kleen <ak@linux.intel.com>
4030
9faeb493
UB
4031 * c-common.c (warn_for_omitted_condop): New.
4032 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 4033
70cb8be6
JM
40342010-06-21 Joseph Myers <joseph@codesourcery.com>
4035
4036 * c.opt (lang-objc): Remove.
4037 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4038
a4c97feb
JR
40392010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4040
4041 * c-opts.c: Include "tm_p.h".
4042
6e2f1956
JM
40432010-06-20 Joseph Myers <joseph@codesourcery.com>
4044
4045 * c-common.c (parse_optimize_options): Update call to
4046 decode_options.
4047
bc87224e
NF
40482010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4049
4050 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4051 new type of types_used_by_cur_var_decl.
4052
b49cf425
JR
40532010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4054
4055 PR bootstrap/44512
4056 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4057 for C++ standard compliance.
4058
59f9c2ed
JM
40592010-06-16 Jason Merrill <jason@redhat.com>
4060
4061 * c.opt: Add -Wnoexcept.
4062
33766b66
RG
40632010-06-16 Richard Guenther <rguenther@suse.de>
4064
4065 PR c/44555
4066 * c-common.c (c_common_truthvalue_conversion): Remove
4067 premature and wrong optimization concering ADDR_EXPRs.
4068
eff7e30c
AC
40692010-06-15 Arnaud Charlet <charlet@adacore.com>
4070
4071 * c-ada-spec.c (dump_sloc): Remove column info.
4072 (is_simple_enum): New function.
4073 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4074 enum types when relevant.
4075
6312e84d
MLI
40762010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4077
9faeb493 4078 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
4079 location.
4080
1cb42611
JM
40812010-06-10 Joseph Myers <joseph@codesourcery.com>
4082
4083 * c-opts.c (c_common_handle_option): Don't handle
4084 OPT_fshow_column.
4085
a9429e29
LB
40862010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4087
4088 * c-pragma.c (push_alignment): Use typed GC allocation.
4089 (handle_pragma_push_options): Likewise.
4090
4091 * c-common.c (parse_optimize_options): Likewise.
4092
4093 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4094 option.
4095
5498f011
JM
40962010-06-07 Joseph Myers <joseph@codesourcery.com>
4097
4098 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4099 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4100 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4101 flag_signed_bitfields, warn_strict_null_sentinel,
4102 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4103 flag_gen_declaration, flag_no_gnu_keywords,
4104 flag_implement_inlines, flag_implicit_templates,
4105 flag_implicit_inline_templates, flag_optional_diags,
4106 flag_elide_constructors, flag_default_inline, flag_rtti,
4107 flag_conserve_space, flag_access_control, flag_check_new,
4108 flag_new_for_scope, flag_weak, flag_working_directory,
4109 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4110 flag_enforce_eh_specs, flag_threadsafe_statics,
4111 flag_pretty_templates): Remove.
4112 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4113 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4114 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4115 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4116 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4117 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4118 flag_no_gnu_keywords, flag_implement_inlines,
4119 flag_implicit_templates, flag_implicit_inline_templates,
4120 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4121 flag_rtti, flag_conserve_space, flag_access_control,
4122 flag_check_new, flag_new_for_scope, flag_weak,
4123 flag_working_directory, flag_use_cxa_atexit,
4124 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4125 flag_threadsafe_statics, flag_pretty_templates,
4126 warn_strict_null_sentinel): Remove.
4127 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4128 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4129 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4130 fimplicit-inline-templates, fimplicit-templates,
4131 flax-vector-conversions, fms-extensions, fnil-receivers,
4132 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4133 frtti, fshort-double, fshort-enums, fshort-wchar,
4134 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4135 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4136 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4137 gen-decls, undef): Use Var.
4138 (fdefault-inline, foptional-diags): Document as doing nothing.
4139 * c-opts.c (c_common_handle_option): Remove cases for options now
4140 using Var. Mark ignored options as such.
4141
39dabefd
SB
41422010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4143
9faeb493 4144 * c-common.c: Moved to here from parent directory.
39dabefd
SB
4145 * c-common.def: Likewise.
4146 * c-common.h: Likewise.
4147 * c-cppbuiltin.c: Likewise.
4148 * c-dump.c: Likewise.
4149 * c-format.c: Likewise.
4150 * c-format.h : Likewise.
4151 * c-gimplify.c: Likewise.
4152 * c-lex.c: Likewise.
4153 * c-omp.c: Likewise.
4154 * c.opt: Likewise.
4155 * c-opts.c: Likewise.
4156 * c-pch.c: Likewise.
4157 * c-ppoutput.c: Likewise.
4158 * c-pragma.c: Likewise.
4159 * c-pragma.h: Likewise.
4160 * c-pretty-print.c: Likewise.
4161 * c-pretty-print.h: Likewise.
4162 * c-semantics.c: Likewise.
4163 * stub-objc.c: Likewise.
4164
4165 * c-common.c: Include gt-c-family-c-common.h.
4166 * c-pragma.c: Include gt-c-family-c-pragma.h.
4167\f
23a5b65a 4168Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
4169
4170Copying and distribution of this file, with or without modification,
4171are permitted in any medium without royalty provided the copyright
4172notice and this notice are preserved.