]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
README: Do not mention CVS.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
2a8ef767
ESR
12014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2
3 * c-family/c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
4 C++11 section.
5
3c9aabbd
MG
62014-10-03 Marc Glisse <marc.glisse@inria.fr>
7
8 PR c++/54427
9 PR c++/57198
10 PR c++/58845
11 * c-common.c (warn_logical_operator): Punt for vectors.
12
a15f7cb8
ESR
132014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
14
15 Implement SD-6: SG10 Feature Test Recommendations
16 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
17 macros and the __has_header macro.
18
8d0cf15e
JM
192014-09-30 Jason Merrill <jason@redhat.com>
20
dd5d5481
JM
21 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
22 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
23 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
24
b752325e
JM
25 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
26 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
27
8d0cf15e
JM
28 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
29 * c-common.c (c_common_reswords): Remove __is_convertible_to.
30
083e891e
MP
312014-09-24 Marek Polacek <polacek@redhat.com>
32
33 PR c/61405
34 PR c/53874
35 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
36
7861b648
AK
372014-09-23 Andi Kleen <ak@linux.intel.com>
38
39 * c-common.c (handle_no_reorder_attribute): New function.
40 (c_common_attribute_table): Add no_reorder attribute.
41
9a79452d
JM
422014-09-22 Joseph Myers <joseph@codesourcery.com>
43
44 * c-cppbuiltin.c (c_cpp_builtins): Define
45 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
46 modes.
47
dd69f047
JM
482014-09-18 Joseph Myers <joseph@codesourcery.com>
49
50 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
51 for supported floating-point modes.
52
737a4826
MLI
532014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
54
55 * c.opt (Wpsabi): Use LangEnabledBy.
56 * c-opts.c (c_common_handle_option): Do not handle here.
57
8cc4b7a2
JM
582014-09-12 Joseph Myers <joseph@codesourcery.com>
59
60 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
61 macros for floating-point modes.
62
179b5a55
MG
632014-09-11 Marc Glisse <marc.glisse@inria.fr>
64
65 PR target/58757
66 * c-cppbuiltin.c (builtin_define_float_constants): Correct
67 __*_DENORM_MIN__ without denormals.
68
570a11fe
JJ
692014-09-10 Jakub Jelinek <jakub@redhat.com>
70
71 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
72 ubsan_instrument_vla, ubsan_instrument_return): Adjust
73 ubsan_create_data callers.
74 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
75 index is constant or BIT_AND_EXPR with constant mask and is
76 small enough for the bound.
77 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
78 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
79
b559c810
MLI
802014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
81
82 * c.opt: Add CppReason to various flags.
83 (Wdate-time): Re-sort.
84 * c-common.c: Include c-common.h earlier.
85 (struct reason_option_codes_t): Delete.
86 (c_option_controlling_cpp_error): Prefix global type and struct
87 with cpp_.
88
1ef33fd4
MLI
892014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
90
91 * c.opt (Wnormalized): New.
92 (Wnormalized=): Use Enum and Reject Negative.
93 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
94
66bb34c0
JM
952014-09-08 Joseph Myers <joseph@codesourcery.com>
96
97 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
98 digits of floating-point modes if -fbuilding-libgcc.
99
53d68b9f
JM
1002014-09-05 Joseph Myers <joseph@codesourcery.com>
101
102 * c-cppbuiltin.c (c_cpp_builtins): Also define
103 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
104 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
105 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
106 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
107 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
108 __LIBGCC_STACK_GROWS_DOWNWARD__,
109 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
110 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
111 __LIBGCC_DWARF_FRAME_REGISTERS__,
112 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
113 __LIBGCC_STACK_POINTER_REGNUM__ and
114 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
115 (builtin_define_with_value): Handle backslash-escaping in string
116 macro values.
117
f65586dc
RB
1182014-09-05 Richard Biener <rguenther@suse.de>
119
120 PR middle-end/63148
121 * c-format.c (check_format_arg): Properly handle
122 effectively signed POINTER_PLUS_EXPR offset.
123
2b71f4a4
MLI
1242014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
125
126 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
127 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
128 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
129 and Init.
130 * c-opts.c (c_common_handle_option): Do not handle here.
131 (sanitize_cpp_opts): Likewise.
132 * c-common.c (struct reason_option_codes_t): Handle
133 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
134
d2e4feca
MP
1352014-09-03 Marek Polacek <polacek@redhat.com>
136
137 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
138
9a771876
JJ
1392014-09-02 Jakub Jelinek <jakub@redhat.com>
140 Balaji V. Iyer <balaji.v.iyer@intel.com>
141 Igor Zamyatin <igor.zamyatin@intel.com>
142
143 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
144 * c-common.c (c_common_reswords): Added _Cilk_for.
145 * c-common.h (enum rid): Added RID_CILK_FOR.
146 (cilk_for_number_of_iterations): Add declaration.
147 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
148 CILK_FOR.
149 * c-pragma.c (init_pragma): Register "grainsize" pragma.
150 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
151
81b5d104
MLI
1522014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
153
154 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
155 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
156 Wundef): Use CPP, Var and Init.
157 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
158
b753b37b
MLI
1592014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
160
161 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
162 * c-opts.c (c_common_handle_option): Do not handle here.
163
028aee17
JM
1642014-08-25 Jason Merrill <jason@redhat.com>
165
166 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
167 -std=c++14 and -std=gnu++14, rather than the reverse.
168 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
169 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
170 * c-common.h (cxx_dialect): Remove cxx1y.
171
e4276ba5
ESR
1722014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
173
174 * c-common.h (enum cxx_dialect): Add cxx14.
175 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
176 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
177 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
178
a545cacd
JM
1792014-08-22 Jason Merrill <jason@redhat.com>
180
181 * c.opt (std=gnu++17): Fix alias.
182
59ea0364
MP
1832014-08-22 Marek Polacek <polacek@redhat.com>
184
185 PR c++/62199
186 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
187 check for vector types. Drop LHS argument.
188 * c-common.h (warn_logical_not_parentheses): Adjust.
189
596e808c
MLI
1902014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
191
192 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
193 (Wmultichar): Likewise.
194 (Wdate-time): Use C-family languages instead of Common. Use CPP
195 and Var.
196 * c-opts.c (c_common_handle_option): Do not handle the above
197 options here.
198 (sanitize_cpp_opts): Likewise.
199
18767f65
MLI
2002014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
201
202 PR fortran/44054
203 * c-opts.c: Include tree-diagnostics.h.
204 (c_diagnostic_finalizer): New.
205 (c_common_initialize_diagnostics): Use it.
206
b4413594
MLI
2072014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
208
209 PR preprocessor/51303
210 * c-common.c (struct reason_option_codes_t option_codes):
211 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
212
43f9a13c
MLI
2132014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
214
215 PR c/60975
216 PR c/53063
217 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
218 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
219 (c_common_post_options): Call init_global_opts_from_cpp.
220 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
221
04159acf
MP
2222014-08-19 Marek Polacek <polacek@redhat.com>
223
224 PR c++/62153
225 * c-common.c (maybe_warn_bool_compare): New function.
226 * c-common.h (maybe_warn_bool_compare): Declare.
227 * c.opt (Wbool-compare): New option.
228
35aff4fb
MP
2292014-08-19 Marek Polacek <polacek@redhat.com>
230
231 * c.opt (Wc99-c11-compat): New option.
232
177cce46
MP
2332014-08-19 Marek Polacek <polacek@redhat.com>
234
235 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
236 to warn_c90_c99_compat.
237 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
238 to -1.
239
6ae9194f
MLI
2402014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
241 Steven Bosscher <steven@gcc.gnu.org>
242
243 PR c/52952
244 * c-format.c: Add extra_arg_loc and format_string_loc to struct
245 format_check_results.
246 (check_function_format): Use true and add comment for boolean
247 argument.
248 (finish_dollar_format_checking): Use explicit location when warning.
249 (check_format_info): Likewise.
250 (check_format_arg): Set extra_arg_loc and format_string_loc.
251 (check_format_info_main): Use explicit location when warning.
252 (check_format_types): Pass explicit location.
253 (format_type_warning): Likewise.
254
8e54f6d3
MLI
2552014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
256
257 PR fortran/44054
258 * c-format.c: Handle Fortran flags.
259
cd4e76fc
IZ
2602014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
261
262 PR other/61962
263 * array-notation-common.c (find_rank): Added handling for other
264 types of references.
265
f3bede71
MP
2662014-08-10 Marek Polacek <polacek@redhat.com>
267
268 PR c/51849
269 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
270 * c.opt (Wc90-c99-compat): Add option.
271
9f25a338
TS
2722014-08-07 Trevor Saunders <tsaunders@mozilla.com>
273
274 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
275
62e4eb35
MP
2762014-08-03 Marek Polacek <polacek@redhat.com>
277
278 * c-common.c (check_case_value): Add location_t parameter. Use it.
279 (c_add_case_label): Pass loc to check_case_value.
280
b787e7a2
TS
2812014-08-02 Trevor Saunders <tsaunders@mozilla.com>
282
283 * cilk.c: Use hash_map instead of pointer_map.
284
6e2830c3
TS
2852014-08-02 Trevor Saunders <tsaunders@mozilla.com>
286
287 * c-gimplify.c: Use hash_set instead of pointer_set.
288
a7ee52fb
IZ
2892014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
290
291 PR middle-end/61455
292 * array-notation-common.c (extract_array_notation_exprs): Handling
293 of DECL_EXPR added.
294
944fa280
JJ
2952014-08-01 Jakub Jelinek <jakub@redhat.com>
296
297 * c-common.h (min_align_of_type): Removed prototype.
298 * c-common.c (min_align_of_type): Removed.
299 * c-ubsan.h (ubsan_maybe_instrument_reference,
300 ubsan_maybe_instrument_member_call): New prototypes.
301 * c-ubsan.c: Include stor-layout.h and builtins.h.
302 (ubsan_maybe_instrument_reference_or_call,
303 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
304 functions.
305
b4dfdc11
MG
3062014-07-31 Marc Glisse <marc.glisse@inria.fr>
307
308 PR c++/60517
309 * c.opt (-Wreturn-local-addr): Move to common.opt.
310
a41844e5
JM
3112014-07-30 Jason Merrill <jason@redhat.com>
312
313 PR c++/61659
314 PR c++/61687
315 Revert:
316 * c.opt (-fuse-all-virtuals): New.
317
976d5a22
TT
3182014-07-30 Tom Tromey <tromey@redhat.com>
319
320 PR c/59855
321 * c.opt (Wdesignated-init): New option.
322 * c-common.c (c_common_attribute_table): Add "designated_init".
323 (handle_designated_init): New function.
324
cdc94aca
MP
3252014-07-24 Marek Polacek <polacek@redhat.com>
326
327 PR c/57653
328 * c-opts.c (c_finish_options): If -imacros is in effect, return.
329
f41373b6
DS
3302014-07-16 Dodji Seketeli <dodji@redhat.com>
331
332 PR preprocessor/60723 - missing system-ness marks for macro tokens
333 * c-ppoutput.c (struct print::prev_was_system_token): New data
334 member.
335 (init_pp_output): Initialize it.
336 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
337 (do_line_change): Return a flag saying if a line marker was
338 emitted or not.
339 (scan_translation_unit): Detect if the system-ness of the token we
340 are about to emit is different from the one of the previously
341 emitted token. If so, emit a line marker. Avoid emitting useless
342 adjacent line markers. Avoid emitting line markers for tokens
343 originating from the expansion of built-in macros.
344 (scan_translation_unit_directives_only): Adjust.
345
4d661eaa
MP
3462014-07-15 Marek Polacek <polacek@redhat.com>
347
348 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
349 TYPE_MAX_VALUE is NULL.
350
b108f48f
JJ
3512014-07-14 Jakub Jelinek <jakub@redhat.com>
352
353 PR middle-end/61294
354 * c.opt (Wmemset-transposed-args): New warning.
355
c0221884
JM
3562014-07-10 Jason Merrill <jason@redhat.com>
357
358 PR c++/61659
359 PR c++/61687
360 * c.opt (-fuse-all-virtuals): New.
361
63dfbb95
RB
3622014-07-09 Richard Biener <rguenther@suse.de>
363
364 PR c-family/61741
365 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
366 using unsigned arithmetic if overflow does not wrap instead of
367 if overflow is undefined.
368
773ec47f
MP
3692014-07-06 Marek Polacek <polacek@redhat.com>
370
371 PR c/6940
372 * c.opt (Wsizeof-array-argument): New option.
373
00a7ba58
JJ
3742014-07-03 Jakub Jelinek <jakub@redhat.com>
375
376 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
377 comments->count <= 1, as comments->entries might be NULL.
378
52ec0ea3
MP
3792014-07-01 Marek Polacek <polacek@redhat.com>
380
381 * c.opt (Wint-conversion): New option.
382
d5c3d343
MP
3832014-07-01 Marek Polacek <polacek@redhat.com>
384
385 PR c/58286
386 * c.opt (Wincompatible-pointer-types): New option.
387
6e7ceb17
PC
3882014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
389
390 PR c++/51400
391 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
392 Do not discard TYPE_QUALS of type.
393
da73100b
JM
3942014-06-26 Jason Merrill <jason@redhat.com>
395
396 * c-common.h (enum cxx_dialect): Add cxx1z.
397 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
398 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
399
08eedf75
TJ
4002014-06-26 Teresa Johnson <tejohnson@google.com>
401
402 * c-common.h (get_dump_info): Declare.
403 * c-gimplify.c (c_genericize): Use saved dump files.
404 * c-opts.c (c_common_parse_file): Begin and end dumps
405 once around parsing invocation.
406 (get_dump_info): New function.
407
7b56b2f8
MP
4082014-06-23 Marek Polacek <polacek@redhat.com>
409 Andrew MacLeod <amacleod@redhat.com>
410
411 PR c/61553
412 * c-common.c (get_atomic_generic_size): Don't segfault if the
413 type doesn't have a size.
414
0e37a2f3
MP
4152014-06-20 Marek Polacek <polacek@redhat.com>
416
417 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
418 (ubsan_walk_array_refs_r): New function.
419 (c_genericize): Instrument array bounds.
420 * c-ubsan.c: Include "internal-fn.h".
421 (ubsan_instrument_division): Mark instrumented arrays as having
422 side effects. Adjust ubsan_type_descriptor call.
423 (ubsan_instrument_shift): Likewise.
424 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
425 (ubsan_instrument_bounds): New function.
426 (ubsan_array_ref_instrumented_p): New function.
427 (ubsan_maybe_instrument_array_ref): New function.
428 * c-ubsan.h (ubsan_instrument_bounds): Declare.
429 (ubsan_array_ref_instrumented_p): Declare.
430 (ubsan_maybe_instrument_array_ref): Declare.
431
4322014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
433
434 PR lto/61123
435 * c.opt (fshort-enums): Add to LTO.
436 * c.opt (fshort-wchar): Likewise.
437
5c3d09f7
MP
4382014-06-16 Marek Polacek <polacek@redhat.com>
439
440 PR c/60439
441 * c.opt (Wswitch-bool): Add Var.
442
9cf32741
JJ
4432014-06-12 Jakub Jelinek <jakub@redhat.com>
444
445 PR middle-end/61486
446 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
447 #pragma omp target teams or
448 #pragma omp {,target }teams distribute simd.
449
62984918
JM
4502014-06-12 Jason Merrill <jason@redhat.com>
451
452 * c.opt (Wabi=, fabi-compat-version): New.
453 * c-opts.c (c_common_handle_option): Handle -Wabi=.
454 (c_common_post_options): Handle flag_abi_compat_version default.
455 Disallow -fabi-compat-version=1.
456 * c-common.h (abi_version_crosses): New.
457
f961457f
JH
4582014-06-11 Jan Hubicka <hubicka@ucw.cz>
459
460 * c-family/c-common.c (handle_section_attribute): Update handling for
461 section names that are no longer trees.
462
92d28cbb
JJ
4632014-06-10 Jakub Jelinek <jakub@redhat.com>
464
465 PR fortran/60928
466 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
467 (omp_pragmas): ... back here.
468
742938c9
MP
4692014-06-05 Marek Polacek <polacek@redhat.com>
470
471 PR c/49706
472 * c-common.c (warn_logical_not_parentheses): New function.
473 * c-common.h (warn_logical_not_parentheses): Declare.
474 * c.opt (Wlogical-not-parentheses): New option.
475
9d548dfb
MP
4762014-06-04 Marek Polacek <polacek@redhat.com>
477
478 PR c/30020
479 * c-common.c (check_case_bounds): Add location parameter.
480 Use it.
481 (c_add_case_label): Pass loc to check_case_bounds.
482
fedfecef
MP
4832014-06-03 Marek Polacek <polacek@redhat.com>
484
485 PR c/60439
486 * c.opt (Wswitch-bool): New option.
487
f6a7cffc
TS
4882014-05-22 Thomas Schwinge <thomas@codesourcery.com>
489
040d18b6
TS
490 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
491 Remove prototypes.
492 (record_types_used_by_current_var_decl): Move prototype to where
493 it belongs.
494
f6a7cffc
TS
495 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
496 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
497 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
498
632f2871
RS
4992014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
500
501 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
502 * c-common.c (c_common_nodes_and_builtins): Don't initialize
503 void_zero_node.
504 * c-pretty-print.c (pp_c_void_constant): New function.
505 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
506 (c_pretty_printer::expression): Handle VOID_CST.
507 * cilk.c (extract_free_variables): Likewise.
508 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
509 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
510
766090c2
TS
5112014-05-17 Trevor Saunders <tsaunders@mozilla.com>
512
513 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
514 * c-pragma.c (push_alignment): Adjust.
515 (handle_pragma_push_options): Likewise.
516
661a0813
MP
5172014-05-09 Marek Polacek <polacek@redhat.com>
518
519 PR c/50459
520 * c-common.c (check_user_alignment): Return -1 if alignment is error
521 node.
522 (handle_aligned_attribute): Don't call default_conversion on
523 FUNCTION_DECLs.
524 (handle_vector_size_attribute): Likewise.
525 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
526 (handle_sentinel_attribute): Call default_conversion and allow even
527 integral types as an argument.
528
2793eeab
MP
5292014-05-08 Marek Polacek <polacek@redhat.com>
530
531 PR c/61053
532 * c-common.c (min_align_of_type): New function factored out from...
533 (c_sizeof_or_alignof_type): ...here.
534 * c-common.h (min_align_of_type): Declare.
535
f827930a
MP
5362014-05-08 Marek Polacek <polacek@redhat.com>
537
538 PR c/61077
539 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
540 parameter type of main.
541
ca49b74e
DD
5422014-05-07 DJ Delorie <dj@redhat.com>
543
544 * c-cppbuiltin.c (print_bits_of_hex): New.
545 (builtin_define_type_minmax): Print values using hex so as not to
546 require a pre-computed list of string values.
547
1d60af08
KZ
5482014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
549 Mike Stump <mikestump@comcast.net>
550 Richard Sandiford <rdsandiford@googlemail.com>
551
552 * c-ada-spec.c: Include wide-int.h.
553 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
554 (dump_generic_ada_node): Use wide-int interfaces.
555 * c-common.c: Include wide-int-print.h.
556 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
557 (pointer_int_sum): Use wide-int interfaces.
558 (c_common_nodes_and_builtins): Use make_int_cst.
559 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
560 (handle_alloc_size_attribute): Use wide-int interfaces.
561 (get_nonnull_operand): Likewise.
562 * c-format.c (get_constant): Use tree_fits_uhwi_p.
563 * c-lex.c: Include wide-int.h.
564 (narrowest_unsigned_type): Take a widest_int rather than two
565 HOST_WIDE_INTs.
566 (narrowest_signed_type): Likewise.
567 (interpret_integer): Update accordingly. Use wide-int interfaces.
568 (lex_charconst): Use wide-int interfaces.
569 * c-pretty-print.c: Include wide-int.h.
570 (pp_c_integer_constant): Use wide-int interfaces.
571 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
572 INT_CST_LT_UNSIGNED.
573
b15458be
RB
5742014-05-06 Richard Biener <rguenther@suse.de>
575
576 * c-opts.c (c_common_post_options): For -freestanding,
577 -fno-hosted and -fno-builtin disable pattern recognition
578 if not enabled explicitely.
579
6577374e
MP
5802014-05-02 Marek Polacek <polacek@redhat.com>
581
582 * c.opt (Wsizeof-pointer-memaccess): Describe option.
583
d00887e8
MP
5842014-05-01 Marek Polacek <polacek@redhat.com>
585
586 PR c/43245
587 * c.opt (Wdiscarded-qualifiers): Add.
588
f8ed5150
MP
5892014-04-30 Marek Polacek <polacek@redhat.com>
590
591 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
592 INT_MIN / -1 sanitization only for integer types.
593
45484dcf
MP
5942014-04-25 Marek Polacek <polacek@redhat.com>
595
596 PR c/18079
597 * c-common.c (handle_noinline_attribute): Warn if the attribute
598 conflicts with always_inline attribute.
599 (handle_always_inline_attribute): Warn if the attribute conflicts
600 with noinline attribute.
601
38e514c0
MP
6022014-04-25 Marek Polacek <polacek@redhat.com>
603
604 PR c/60156
605 * c-common.c (check_main_parameter_types): Warn about variadic main.
606
44875f92
MS
6072014-04-24 Mike Stump <mikestump@comcast.net>
608
609 * c.opt (Wshadow-ivar): Default to on.
610
dcaaa5a0
DP
6112014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
612
613 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
614
c07d7c02
MP
6152014-04-23 Marek Polacek <polacek@redhat.com>
616
617 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
618
1c33c9b7
JJ
6192014-04-22 Jakub Jelinek <jakub@redhat.com>
620
621 PR sanitizer/60275
622 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
623 if flag_sanitize_undefined_trap_on_error.
624 (ubsan_instrument_division, ubsan_instrument_shift,
625 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
626 if !flag_sanitize_recover.
627
793c625f
MG
6282014-04-22 Marc Glisse <marc.glisse@inria.fr>
629
630 PR libstdc++/43622
631 * c-common.c (registered_builtin_types): Make non-static.
632 * c-common.h (registered_builtin_types): Declare.
633
b0f1bf36
RB
6342014-04-14 Richard Biener <rguenther@suse.de>
635 Marc Glisse <marc.glisse@inria.fr>
636
637 PR c/60819
638 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
639 apply may-alias the scalar pointer type when applicable.
640
3b07fa4a
IZ
6412014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
642
643 PR middle-end/60467
644 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
645 as possible argument for Cilk_spawn.
646
cbbd2b1c
TB
6472014-04-11 Tobias Burnus <burnus@net-b.de>
648
649 PR c/60194
650 * c.opt (Wformat-signedness): Add
651 * c-format.c(check_format_types): Use it.
652
6415bd5d
JM
6532014-04-11 Jason Merrill <jason@redhat.com>
654
655 PR c++/57926
656 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
657 default_conversion for an array argument.
658
6525783a
MP
6592014-04-08 Marek Polacek <polacek@redhat.com>
660
661 PR sanitizer/60745
662 * c-ubsan.c: Include asan.h.
663 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
664
880a467b
NS
6652014-04-03 Nathan Sidwell <nathan@codesourcery.com>
666
667 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
668
7b59ff2d
MP
6692014-04-02 Marek Polacek <polacek@redhat.com>
670
671 * c-common.h (c_expand_expr): Remove declaration.
672
8edbfaa6
JJ
6732014-03-28 Jakub Jelinek <jakub@redhat.com>
674
675 PR c++/60689
676 * c-common.c (add_atomic_size_parameter): When creating new
677 params vector, push the size argument first.
678
07d72e1d
JJ
6792014-03-26 Jakub Jelinek <jakub@redhat.com>
680
681 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
682 ubsan_instrument_vla, ubsan_instrument_return): Adjust
683 ubsan_create_data callers.
684
b35e0fa0
JJ
6852014-03-22 Jakub Jelinek <jakub@redhat.com>
686
687 PR debug/60603
688 * c-opts.c (c_finish_options): Restore cb_file_change call to
689 <built-in>.
690
39a1ebb3
JJ
6912014-03-13 Jakub Jelinek <jakub@redhat.com>
692
693 PR middle-end/36282
694 * c-pragma.c (apply_pragma_weak): Only look at
695 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
696 DECL_ASSEMBLER_NAME_SET_P (decl).
697 (maybe_apply_pending_pragma_weaks): Exit early if
698 vec_safe_is_empty (pending_weaks) rather than only when
699 !pending_weaks.
700 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
701 set assembler name back to NULL afterwards.
702
a07f6ed2
JM
7032014-03-11 Jason Merrill <jason@redhat.com>
704
705 * c.opt: Add -std=gnu++14.
706
75b107f5
IB
7072014-03-11 Ian Bolton <ian.bolton@arm.com>
708
709 * c-opts.c (c_common_post_options): Don't override
710 -ffp-contract=fast if unsafe-math-optimizations is on.
711
f42c637e
PM
7122014-03-08 Paulo Matos <paulo@matos-sorge.com>
713
714 * c.opt: Enable LTO FE for fshort-double.
715
70e24808
JM
7162014-03-07 Jason Merrill <jason@redhat.com>
717
718 * c.opt: Add -std=c++14.
719
3af9c5e9
MP
7202014-03-06 Marek Polacek <polacek@redhat.com>
721
722 PR c/60197
723 * cilk.c (contains_cilk_spawn_stmt): New function.
724 (contains_cilk_spawn_stmt_walker): Likewise.
725 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
726 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
727
b3bdf019
JJ
7282014-03-03 Jakub Jelinek <jakub@redhat.com>
729
730 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
731 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
732 even when flag_preprocess_only.
733
ca7e759d
JM
7342014-02-26 Jason Merrill <jason@redhat.com>
735
736 PR c++/59231
737 PR c++/11586
738 * c-common.c (shorten_compare): Don't check
739 c_inhibit_evaluation_warnings.
740
28e41874
JJ
7412014-02-19 Jakub Jelinek <jakub@redhat.com>
742
cca615af
JJ
743 PR c/37743
744 * c-common.c (c_common_nodes_and_builtins): When initializing
745 c_uint{16,32,64}_type_node, also set corresponding
746 uint{16,32,64}_type_node to the same value.
747
28e41874
JJ
748 PR c++/60267
749 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
750 for PRAGMA_IVDEP if flag_preprocess_only.
751
c2bf53a1
JJ
7522014-02-12 Jakub Jelinek <jakub@redhat.com>
753
754 PR c/60101
755 * c-common.c (merge_tlist): If copy is true, call new_tlist,
756 if false, add ADD itself, rather than vice versa.
757 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
758 copy. For SAVE_EXPR, only call merge_tlist once.
759
8fcbce72
JJ
7602014-02-08 Jakub Jelinek <jakub@redhat.com>
761
762 PR middle-end/60092
763 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
764 and tree_to_uhwi.
765 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
766 functions.
767 (c_common_attribute_table): Add alloc_align and assume_aligned
768 attributes.
769
0a756a3f
MP
7702014-02-06 Marek Polacek <polacek@redhat.com>
771
772 PR c/60087
773 * c-common.c (warn_for_sign_compare): Call warning_at with location
774 instead of warning.
775
7ec4847a
MP
7762014-02-05 Marek Polacek <polacek@redhat.com>
777
778 PR c/53123
779 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
780 statement.
781
66f20604
MP
7822014-02-04 Marek Polacek <polacek@redhat.com>
783
784 PR c/60036
785 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
786 SAVE_EXPR.
787
5d77fb19
MG
7882014-02-03 Marc Glisse <marc.glisse@inria.fr>
789
790 PR c++/53017
791 PR c++/59211
792 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
793 handle_vector_size_attribute, handle_nonnull_attribute): Call
794 default_conversion on the attribute argument.
795 (handle_nonnull_attribute): Increment the argument number.
796
81e5eca8
MP
7972014-01-31 Marek Polacek <polacek@redhat.com>
798
799 PR c/59963
800 * c-common.c (add_atomic_size_parameter): Pass vNULL to
801 build_function_call_vec.
802 (resolve_overloaded_builtin): Likewise.
803 * c-common.h (build_function_call_vec): Adjust declaration.
804
68fca595
MP
8052014-01-30 Marek Polacek <polacek@redhat.com>
806
807 PR c/59940
808 * c-common.h (unsafe_conversion_p): Adjust declaration.
809 (warnings_for_convert_and_check): Likewise.
810 (convert_and_check): Likewise.
811 * c-common.c (unsafe_conversion_p): Add location parameter. Call
812 expansion_point_location_if_in_system_header on it.
813 (warnings_for_convert_and_check): Add location parameter. Call
814 expansion_point_location_if_in_system_header on it. Use it.
815 (convert_and_check): Add location parameter. Use it.
816 (conversion_warning): Likewise.
817 (c_add_case_label): Adjust convert_and_check calls.
818 (scalar_to_vector): Adjust unsafe_conversion_p calls.
819
b72271b9
BI
8202014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
821
822 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
823 flag_cilkplus.
824 * c-pragma.c (init_pragma): Likewise.
825 * c.opt: Likewise.
826
393e8e8b
MP
8272014-01-23 Marek Polacek <polacek@redhat.com>
828
829 PR c/59846
830 * c-common.c (shorten_compare): Add location_t parameter.
831 * c-common.h (shorten_binary_op): Adjust declaration.
832
f04dda30
MP
8332014-01-23 Marek Polacek <polacek@redhat.com>
834
835 PR c/58346
836 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
837 * c-common.h: Declare it.
838
621955cb
EB
8392014-01-20 Eric Botcazou <ebotcazou@adacore.com>
840
841 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
842 * c-ada-spec.c (dump_ads): Likewise.
843 (cpp_check): Likewise.
844 (dump_ada_specs): Likewise.
845
8462014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
847
848 PR c++/49718
849 * c-common.c (handle_no_instrument_function_attribute): Allow
850 no_instrument_function attribute in class member
851 definition/declaration.
852
241f845a
JJ
8532014-01-15 Jakub Jelinek <jakub@redhat.com>
854
855 PR c/58943
856 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
857 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
858 being COMPOUND_EXPR.
859 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
860 operand a SAVE_EXPR and second MODIFY_EXPR.
861
e83b8e2e
JJ
8622014-01-09 Jakub Jelinek <jakub@redhat.com>
863
864 PR target/58115
865 * c-pch.c (c_common_write_pch): Call
866 prepare_target_option_nodes_for_pch.
867
23a5b65a
RS
8682014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
869
870 Update copyright years
871
f9030485
RS
8722014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
873
874 * array-notation-common.c, c-cilkplus.c: Use the standard form for
875 the copyright notice.
876
f2aa696b
EB
8772013-12-28 Eric Botcazou <ebotcazou@adacore.com>
878
879 * c-ada-spec.c (print_constructor): New function.
880 (print_destructor): Retrieve the origin of the destructor.
881 (print_ada_declaration): Revamp handling of constructors/destructors.
882
1f26ac87
JM
8832013-12-23 Stuart Hastings <stuart@apple.com>
884 Bill Maddox <maddox@google.com>
885 Jason Merrill <jason@redhat.com>
886
887 * c.opt: Add -fdeclone-ctor-dtor.
888 * c-opts.c (c_common_post_options): Default to on iff -Os.
889
41958c28
BI
8902013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
891
892 * c-common.c (c_common_attribute_table): Added "cilk simd function"
893 attribute.
894 * c-pragma.h (enum pragma_cilk_clause): Remove.
895 (enum pragma_omp_clause): Added the following fields:
896 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
897 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
898 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
899 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
900 PRAGMA_CILK_CLAUSE_UNIFORM.
901
902
12893402
BI
9032013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
904
905 * cilk.c (cilk_outline): Made this function non-static.
906 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
907 (create_cilk_wrapper): Added a new parameter: a function pointer.
908 (c_install_body_w_frame_cleanup): Remove
909 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
910 * c-common.h (cilk_outline): New prototype.
911 (gimplify_cilk_spawn): Removed two parameters.
912 (cilk_install_body_with_frame_cleanup): New prototype.
913 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
914 CILK_SPAWN_STMT case.
915
085b42ed
BS
9162013-12-11 Bernd Schmidt <bernds@codesourcery.com>
917
2ce064c3
BS
918 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
919
085b42ed
BS
920 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
921 (int_array_type_node): Remove.
922 * c-common.c (c_common_nodes_and_builtins): Don't build it.
923
9e36c9ed
MP
9242013-12-05 Marek Polacek <polacek@redhat.com>
925
926 PR c/52023
927 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
928 [ADJUST_FIELD_ALIGN].
929
296674db
JM
9302013-12-04 Joseph Myers <joseph@codesourcery.com>
931
932 PR c/52023
933 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
934 and check field alignment if set.
935 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
936 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
937
31e071ae
MP
9382013-12-04 Jakub Jelinek <jakub@redhat.com>
939 Marek Polacek <polacek@redhat.com>
940
941 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
942 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
943
d7947e19
L
9442013-11-29 H.J. Lu <hongjiu.lu@intel.com>
945
946 PR c/59309
947 * cilk.c (gimplify_cilk_spawn): Properly handle function without
948 arguments.
949
fad7652e
JJ
9502013-11-29 Jakub Jelinek <jakub@redhat.com>
951
952 PR c/59280
953 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
954 goto invalid. If it is error_mark_node, don't issue further
955 diagnostics.
956
8b5e1202
SO
9572013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
958
959 * c.opt (Wopenmp-simd): New.
960
0a508bb6
JJ
9612013-11-22 Jakub Jelinek <jakub@redhat.com>
962
963 * c-ubsan.h (ubsan_instrument_return): New prototype.
964 * c-ubsan.c (ubsan_instrument_return): New function.
965
2fb9a547
AM
9662013-11-22 Andrew MacLeod <amacleod@redhat.com>
967
968 * c-common.c: Add required include files from gimple.h.
969 * c-gimplify.c: Likewise
970 * cilk.c: Likewise
971
8400e75e
DM
9722013-11-22 David Malcolm <dmalcolm@redhat.com>
973
974 * c-common.c (unsafe_conversion_p): Remove use of
975 EXPR_LOC_OR_HERE macro.
976 (conversion_warning): Likewise.
977 (warnings_for_convert_and_check): Likewise.
978 (warn_for_collisions_1): Likewise.
979 (shorten_compare): Likewise, and remove use of in_system_header
980 macro, using the location from the former.
981 * c-lex.c (dump_one_header): Remove use of input_filename macro.
982 (cb_def_pragma): Remove use of in_system_header macro.
983 (lex_string): Likewise.
984 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
985
eb1ce453
KZ
9862013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
987 Mike Stump <mikestump@comcast.net>
988 Richard Sandiford <rdsandiford@googlemail.com>
989
990 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
991 instead of TREE_INT_CST_LOW, in cases where there is a protecting
992 tree_fits_shwi_p or tree_fits_uhwi_p.
993 (dump_generic_ada_node): Likewise.
994 * c-format.c (check_format_arg): Likewise.
995 * c-pretty-print.c (pp_c_integer_constant): Likewise.
996
6b3b8c27
KZ
9972013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
998
999 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1000
49b0aa18
JC
10012013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1002
1003 PR c/53001
1004 * c-common.c (unsafe_conversion_p): Make this function
1005 return an enumeration with more detail.
1006 (conversion_warning): Use the new return type of
1007 unsafe_conversion_p to separately warn either about conversions
1008 that lower floating point number precision or about the other
1009 kinds of conversions.
1010 * c-common.h (enum conversion_safety): New enumeration.
1011 (unsafe_conversion_p): switching return type to
1012 conversion_safety enumeration.
1013 * c.opt: Adding new warning -Wfloat-conversion and
1014 enabling it with -Wconversion.
1015
b826515a
BS
10162013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1017
1018 * c-opts.c: Include plugin.h.
1019 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1020
b9a55b13
MP
10212013-11-19 Marek Polacek <polacek@redhat.com>
1022
1023 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1024 call.
1025 (ubsan_instrument_shift): Likewise.
1026 (ubsan_instrument_vla): Likewise.
1027
7d362f6c
RS
10282013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1029
1030 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1031 cast to unsigned type.
1032
386b1f1f
RS
10332013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1034
1035 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1036 tree_low_cst.
1037 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1038 rather than tree_low_cst.
1039
ae7e9ddd
RS
10402013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1041
1042 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1043 tree_to_uhwi throughout.
1044
9439e9a1
RS
10452013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1046
1047 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1048 tree_low_cst (..., 0) with tree_to_shwi throughout.
1049
cc269bb6
RS
10502013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1051
1052 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1053 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1054
9541ffee
RS
10552013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1056
1057 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1058 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1059
c02065fc
AH
10602013-11-15 Aldy Hernandez <aldyh@redhat.com>
1061
1062 * c-cilkplus.c: New file.
1063 * c-common.c (readonly_error): Add location argument.
1064 * c-common.h (readonly_error): Same.
1065 (c_finish_cilk_clauses): Protoize.
1066 (c_check_cilk_loop): Same.
1067 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1068 Do not fail on error_mark_node.
1069 Abstract increment canonicalization to here...
1070 (c_omp_for_incr_canonicalize_ptr): New.
1071 c-pragma.c (init_pragma): Register "simd" pragma.
1072 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1073 (enum pragma_cilk_clause): New.
1074
9cc65f15
RS
10752013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1076
1077 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1078 wchar_type and host_integerp checks.
1079
18f429e2
AM
10802013-11-14 Andrew MacLeod <amacleod@redhat.com>
1081
1082 * c-common.c: Likewise.
1083 * c-gimplify.c: Likewise.
1084 * cilk.c: Likewise.
1085
d8a2d370
DN
10862013-11-14 Diego Novillo <dnovillo@google.com>
1087
1088 * c-common.c: Include fold-const.h.
1089 Include stor-layout.h.
1090 Include calls.h.
1091 Include stringpool.h.
1092 Include attribs.h.
1093 Include varasm.h.
1094 Include trans-mem.h.
1095 * c-cppbuiltin.c: Include stor-layout.h.
1096 Include stringpool.h.
1097 * c-format.c: Include stringpool.h.
1098 * c-lex.c: Include stringpool.h.
1099 Include stor-layout.h.
1100 * c-pragma.c: Include stringpool.h.
1101 Include attribs.h.
1102 Include varasm.h.
1103 Include gcc-symtab.h.
1104 * c-pretty-print.c: Include stor-layout.h.
1105 Include attribs.h.
1106 * cilk.c: Include stringpool.h.
1107 Include calls.h.
1108
38b7bc7f
JM
11092013-11-13 Joseph Myers <joseph@codesourcery.com>
1110
1111 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1112 * c-common.c (c_common_reswords): Add __auto_type.
1113 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1114
45b0be94
AM
11152013-11-12 Andrew MacLeod <amacleod@redhat.com>
1116
18f429e2
AM
1117 * c-common.c: Include gimplify.h.
1118 * c-gimplify.c: Likewise.
1119 * cilk.c: Likewise.
1120 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1121 * c-ubsan.c: Don't include gimple.h.
45b0be94 1122
582d9b50
JM
11232013-11-12 Joseph Myers <joseph@codesourcery.com>
1124
1125 * c-common.c (c_common_reswords): Add _Thread_local.
1126
6b28e197
JM
11272013-11-09 Joseph Myers <joseph@codesourcery.com>
1128
1129 * c-common.c (atomic_size_supported_p): New function.
1130 (resolve_overloaded_atomic_exchange)
1131 (resolve_overloaded_atomic_compare_exchange)
1132 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1133 Use it instead of comparing size with a local list of sizes.
1134
267bac10
JM
11352013-11-07 Andrew MacLeod <amacleod@redhat.com>
1136 Joseph Myers <joseph@codesourcery.com>
1137
1138 * c-common.h (enum rid): Add RID_ATOMIC.
1139 * c-common.c (c_common_reswords): Add _Atomic.
1140 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1141 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1142 * c-format.c (check_format_types): Check for extra _Atomic
1143 qualifiers in format argument.
1144 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1145 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1146
5157b91e
TB
11472013-11-06 Tobias Burnus <burnus@net-b.de>
1148
1149 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1150
6dbe0958
JM
11512013-11-06 Joseph Myers <joseph@codesourcery.com>
1152
1153 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1154 standards modes.
1155 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1156 to mean lack of IEEE 754 support.
1157
e8ff5196
TB
11582013-11-05 Tobias Burnus <burnus@net-b.de>
1159
1160 * c.opt (-Wdate-time): New option
1161 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1162
254a0760
JM
11632013-11-05 Joseph Myers <joseph@codesourcery.com>
1164
1165 * c-cppbuiltin.c (cpp_iec_559_value): Test
1166 flag_excess_precision_cmdline not flag_excess_precision.
1167
6d7f7e0a
TB
11682013-11-05 Tobias Burnus <burnus@net-b.de>
1169
1170 * c.opt (fopenmp-simd): New option.
1171 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1172 (omp_pragmas): ... this new struct.
1173 (c_pp_lookup_pragma): Also walk omp_pragmas.
1174 (init_pragma): Init pragmas for -fopenmp-simd.
1175
55a7f02f
MP
11762013-11-04 Marek Polacek <polacek@redhat.com>
1177
1178 PR c++/58979
1179 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1180
9193fb05
JM
11812013-11-04 Joseph Myers <joseph@codesourcery.com>
1182
1183 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1184 New functions.
1185 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1186
94159ecf
EB
11872013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1188
1189 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1190 (dump_ada_specs): Adjust prototype of second callback.
1191 * c-ada-spec.c (cpp_check): New global variable.
1192 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1193 (print_generic_ada_decl): Likewise.
1194 (has_static_fields): Change return type to bool and add guard.
1195 (has_nontrivial_methods): New predicate.
1196 (is_tagged_type): Change return type to bool.
1197 (separate_class_package): Call has_nontrivial_methods.
1198 (pp_ada_tree_identifier): Minor tweaks.
1199 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1200 (dump_ada_array_domains): Likewise.
1201 (dump_ada_array_type): Likewise.
1202 (dump_template_types): Remove cpp_check parameter and do not pass it to
1203 dump_generic_ada_node.
1204 (dump_ada_template): Likewise.
1205 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1206 recursively.
1207 (print_ada_methods): Change return type to integer. Remove cpp_check
1208 parameter and do not pass it down.
1209 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1210 dump_generic_ada_node.
1211 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1212 accessing methods.
1213 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1214 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1215 value of print_ada_methods.
1216 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1217 Set cpp_check to it before invoking dump_ada_nodes.
1218 (dump_ada_specs): Likewise.
1219
b906f4ca
MP
12202013-11-03 Marek Polacek <polacek@redhat.com>
1221
1222 * c-ubsan.c: Don't include hash-table.h.
1223 (ubsan_instrument_vla): New function.
1224 * c-ubsan.h: Declare it.
1225
5e20cdc9
DM
12262013-10-31 David Malcolm <dmalcolm@redhat.com>
1227
1228 Automated part of renaming of symtab_node_base to symtab_node.
1229
1230 Patch autogenerated by rename_symtab.py from
1231 https://github.com/davidmalcolm/gcc-refactoring-scripts
1232 revision 58bb219cc090b2f4516a9297d868c245495ee622
1233
1234 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1235 symtab_node_base to symtab_node.
1236
7057e645
ESR
12372013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1238
1239 Implement C++14 digit separators.
1240 * c-lex.c (interpret_float): Remove digit separators from scratch string
1241 before building real literal.
1242
193ea7bc
JJ
12432013-10-30 Jakub Jelinek <jakub@redhat.com>
1244
1245 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1246
939b37da
BI
12472013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1248
1249 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1250 fields.
1251 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1252 enabled.
1253 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1254 (insert_cilk_frame): New prototype.
1255 (cilk_init_builtins): Likewise.
1256 (gimplify_cilk_spawn): Likewise.
1257 (c_cilk_install_body_w_frame_cleanup): Likewise.
1258 (cilk_detect_spawn_and_unwrap): Likewise.
1259 (cilk_set_spawn_marker): Likewise.
1260 (build_cilk_sync): Likewise.
1261 (build_cilk_spawn): Likewise.
1262 * cilk.c: New file.
1263
67348ccc
DM
12642013-10-29 David Malcolm <dmalcolm@redhat.com>
1265
1266 Patch autogenerated by refactor_symtab.py from
1267 https://github.com/davidmalcolm/gcc-refactoring-scripts
1268 revision 58bb219cc090b2f4516a9297d868c245495ee622
1269
1270 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1271 to a true class hierarchy.
1272 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1273
d570872d
RS
12742013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1275
1276 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1277
98906124
JL
12782013-10-26 Jeff Law <law@redhat.com>
1279
1280 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1281 * c-family/c.opt: Ignore and warn for mudflap options.
1282
d73749df 12832013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
1284
1285 PR other/33426
1286 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1287 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1288
3f04b1bb
JM
12892013-10-23 Jason Merrill <jason@redhat.com>
1290
1291 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1292
acf0174b
JJ
12932013-10-11 Jakub Jelinek <jakub@redhat.com>
1294
acd15a28
JJ
1295 * c-common.h (omp_clause_mask::operator !=): New method.
1296 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1297 instead of if (mask & something) tests everywhere.
1298
acf0174b
JJ
1299 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1300 201307 instead of 201107.
1301 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1302 (c_common_attribute_table): Add "omp declare target" and
1303 "omp declare simd" attributes.
1304 (handle_omp_declare_target_attribute,
1305 handle_omp_declare_simd_attribute): New functions.
1306 * c-omp.c: Include c-pragma.h.
1307 (c_finish_omp_taskgroup): New function.
1308 (c_finish_omp_atomic): Add swapped argument, if true,
1309 build the operation first with rhs, lhs arguments and use NOP_EXPR
1310 build_modify_expr.
1311 (c_finish_omp_for): Add code argument, pass it down to make_code.
1312 (c_omp_split_clauses): New function.
1313 (c_split_parallel_clauses): Removed.
1314 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1315 c_omp_declare_simd_clauses_to_decls): New functions.
1316 * c-common.h (omp_clause_mask): New type.
1317 (OMP_CLAUSE_MASK_1): Define.
1318 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1319 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1320 omp_clause_mask::operator |, omp_clause_mask::operator &,
1321 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1322 omp_clause_mask::operator ==): New methods.
1323 (enum c_omp_clause_split): New.
1324 (c_finish_omp_taskgroup): New prototype.
1325 (c_finish_omp_atomic): Add swapped argument.
1326 (c_finish_omp_for): Add code argument.
1327 (c_omp_split_clauses): New prototype.
1328 (c_split_parallel_clauses): Removed.
1329 (c_omp_declare_simd_clauses_to_numbers,
1330 c_omp_declare_simd_clauses_to_decls): New prototypes.
1331 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1332 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1333 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1334 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1335 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1336 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1337 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1338 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1339 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1340 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1341 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1342 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1343 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1344 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1345 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1346 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1347 PRAGMA_OMP_CLAUSE_UNIFORM.
1348
826cacfe
MG
13492013-10-09 Marc Glisse <marc.glisse@inria.fr>
1350
1351 PR tree-optimization/20318
1352 * c-common.c (handle_returns_nonnull_attribute): New function.
1353 (c_common_attribute_table): Add returns_nonnull.
1354
2284b034
MG
13552013-10-03 Marc Glisse <marc.glisse@inria.fr>
1356
1357 PR c++/19476
1358 * c.opt (fcheck-new): Move to common.opt.
1359
b56e9788
MP
13602013-09-25 Marek Polacek <polacek@redhat.com>
1361 Jakub Jelinek <jakub@redhat.com>
1362
1363 PR sanitizer/58413
1364 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1365 an expression if we can prove it is correct.
1366 (ubsan_instrument_division): Likewise. Remove unnecessary
1367 check.
1368
ce6923c5
MP
13692013-09-18 Marek Polacek <polacek@redhat.com>
1370
1371 PR sanitizer/58411
1372 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1373 Declare it.
1374 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1375
fb5610fb
IS
13762013-09-14 Iain Sandoe <iain@codesourcery.com>
1377
1378 PR target/48094
1379 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1380 fobjc-gc, freplace-objc-classes): Accept for LTO.
1381
88b0e79e
JC
13822013-09-13 Jacek Caban <jacek@codeweavers.com>
1383
1384 * c-target.def: New hook
1385
c9b0866a
PC
13862013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1387
1388 PR c++/43452
1389 * c.opt (Wdelete-incomplete): Add.
1390
0af94e6f
JR
13912013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1392
1393 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1394 (vector_types_compatible_elements_p): New function.
1395 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1396 declaration.
1397 (vector_types_compatible_elements_p): Declare.
1398
7c26172c
GDR
13992013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1400
1401 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1402 a virtual member function.
1403 (pp_simple_type_specifier): Remove.
1404 (pp_c_type_specifier): Likewise.
1405 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1406 Rename from pp_c_type_specifier. Adjust.
1407 (c_pretty_printer::c_pretty_printer): Do not assign to
1408 simple_type_specifier.
1409
20059c8b
GDR
14102013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1411
1412 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1413 member function.
1414 (c_pretty_printer::storage_class_specifier): Likewise.
1415 (c_pretty_printer::initializer): Likewise.
1416 (pp_declaration): Remove.
1417 (pp_declaration_specifiers): Likewise.
1418 (pp_abstract_declarator): Likewise.
1419 (pp_declarator): Likewise.
1420 (pp_type_id): Likewise.
1421 (pp_statement): Likewise.
1422 (pp_constant): Likewise.
1423 (pp_id_expression): Likewise.
1424 (pp_primary_expression): Likewise.
1425 (pp_unary_expression): Likewise.
1426 (pp_multiplicative_expression): Likewise.
1427 (pp_conditional_expression): Likewise.
1428 (pp_assignment_expression): Likewise.
1429 (pp_expression): Likewise.
1430 (pp_c_type_id): Likewise.
1431 (pp_c_storage_class_specifier): Likewise.
1432 * c-pretty-print.c (pp_c_type_cast): Tidy.
1433 (pp_c_pointer): Likewise.
1434 (pp_c_type_specifier): Likewise.
1435 (pp_c_parameter_type_list): Likewise.
1436 (pp_c_function_definition): Likewise.
1437 (pp_c_init_declarator): Likewise.
1438 (pp_c_initializer_list): Likewise.
1439 (pp_c_constructor_elts): Likewise.
1440 (c_pretty_printer::direct_abstract_declarator): Likewise.
1441 (c_pretty_printer::declaration_specifiers): Likewise.
1442 (c_pretty_printer::primary_expression): Likewise.
1443 (c_pretty_printer::postfix_expression): Likewise.
1444 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1445 (c_pretty_printer::storage_class_specifier): Rename from
1446 pp_c_storage_class_specifier.
1447 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1448 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1449 storage_class_specifier, initializer, offset_list, flags.
1450
de5a5fa1
MP
14512013-08-30 Marek Polacek <polacek@redhat.com>
1452
1453 * c-ubsan.c: New file.
1454 * c-ubsan.h: New file.
1455
8f0e4d72
GDR
14562013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1457
1458 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1459 member function.
1460 (c_pretty_printer::declaration_specifiers): Likewise.
1461 (c_pretty_printer::declarator): Likewise.
1462 (c_pretty_printer::abstract_declarator): Likewise.
1463 (c_pretty_printer::direct_abstract_declarator): Likewise.
1464 (c_pretty_printer::direct_declarator): Likewise.
1465 (c_pretty_printer::function_specifier): Likewise.
1466 (pp_declaration): Adjust.
1467 (pp_declaration_specifiers): Likewise.
1468 (pp_abstract_declarator): Likewise.
1469 (pp_direct_declarator): Likewise.
1470 (pp_function_specifier): Likewise.
1471 (pp_direct_abstract_declarator): Remove as unused.
1472 (pp_c_declaration): Remove.
1473 (pp_c_declaration_specifiers): Likewise.
1474 (pp_c_declarator): Likewise.
1475 (pp_c_direct_declarator): Likewise.
1476 (pp_c_function_specifier): Likewise.
1477 (pp_c_direct_abstract_declarator): Likewise.
1478 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1479 from pp_c_abstract_declarator. Adjust.
1480 (c_pretty_printer::direct_abstract_declarator): Rename from
1481 pp_c_direct_abstract_declarator. Adjust.
1482 (c_pretty_printer::function_specifier): Rename from
1483 pp_c_function_specifier. Adjust.
1484 (c_pretty_printer::declaration_specifiers): Rename from
1485 pp_c_declaration_specifiers. Adjust.
1486 (c_pretty_printer::direct_declarator): Rename from
1487 pp_c_direct_declarator. Adjust.
1488 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1489 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1490 (c_pretty_printer::c_pretty_printer): Do not assign to
1491 declaration, declaration_specifiers, declarator,
1492 direct_declarator, direct_abstract_declarator, function_specifier.
1493
00d34d3a
GDR
14942013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1495
1496 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1497 virtual member function.
1498 (c_pretty_printer::multiplicative_expression): Likewise.
1499 (c_pretty_printer::conditional_expression): Likewise.
1500 (c_pretty_printer::assignment_expression): Likewise.
1501 (c_pretty_printer::expression): Likewise.
1502 (pp_unary_expression): Adjust.
1503 (pp_multiplicative_expression): Likewise.
1504 (pp_assignment_expression): Likewise.
1505 (pp_conditional_expression): Likewise.
1506 (pp_expression): Likewise.
1507 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1508 from pp_c_unary_expression. Adjust.
1509 (c_pretty_printer::multiplicative_expression): Rename from
1510 pp_c_multiplicative_expression. Adjust.
1511 (c_pretty_printer::conditional_expression): Rename from
1512 pp_c_conditional_expression. Adjust.
1513 (c_pretty_printer::assignment_expression): Rename from
1514 pp_c_assignment_expression. Adjust.
1515 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1516 (c_pretty_printer::c_pretty_printer): Do not assign to
1517 unary_expression, multiplicative_expression,
1518 conditional_expression, expression.
1519
fb22178f
GDR
15202013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1521
1522 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1523 virtual member function.
1524 (pp_postfix_expression): Adjust.
1525 (pp_c_postfix_expression): Remove.
1526 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1527 from pp_c_postfix_expression. Adjust.
1528 (c_pretty_printer::c_pretty_printer): Do not assign to
1529 postfix_expression.
1530
7ecc2600
GDR
15312013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1532
1533 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1534 virtua member function.
1535 (pp_primary_expression): Adjust.
1536 (pp_c_primary_expression): Remove.
1537 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1538 from pp_c_primary_expression. Adjust.
1539 (pp_c_initializer_list): Use pp_primary_expression.
1540 (c_pretty_printer::c_pretty_printer): Do not assign to
1541 primary_expression.
1542
0691175f
GDR
15432013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1544
1545 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1546 * c-pretty-print.c (M_): Remove.
1547 (c_pretty_printer::translate_string): Define.
1548 (pp_c_type_specifier): Use it.
1549 (pp_c_primary_expression): Likewise.
1550 (pp_c_expression): Likewise.
1551
66dfe4c4
GDR
15522013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1553
1554 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1555 virtual function.
1556 (pp_c_id_expression): Remove.
1557 (pp_id_expression): Adjust.
1558 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1559 pp_c_id_expression. Adjust.
1560 (pp_c_postfix_expression): Use pp_id_expression.
1561 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1562
ca43e9d5
GDR
15632013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1564
1565 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1566 member function.
1567 (pp_constant): Adjust.
1568 (pp_c_constant): Remove.
1569 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1570 pp_c_constant. Adjust.
1571 (pp_c_constant)
1572 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1573 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1574
da6ca2b5
GDR
15752013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1576
1577 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1578 (c_pretty_printer::c_pretty_printer): Declare.
1579 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1580 c_pretty_printer_init. Adjust.
1581 (print_c_tree): Do not call c_pretty_printer_init.
1582 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1583
65a372f4
AC
15842013-08-09 Arnaud Charlet <charlet@adacore.com>
1585
1586 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1587
fd9b0f32
PC
15882013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1589
1590 PR c++/58080
1591 * c-common.c (pointer_int_sum): Add bool parameter.
1592 * c-common.h (pointer_int_sum): Adjust declaration.
1593
e0aec1e9
GDR
15942013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1595
1596 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1597 c_pretty_printer variable.
1598
b066401f
GDR
15992013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1600
1601 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1602 (pp_base): Remove.
1603 (pp_c_base): Likewise. Adjust users.
1604 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1605 (pp_c_whitespace): Do not call pp_base.
1606 (pp_c_left_paren): Likewise.
1607 (pp_c_right_paren): Likewise.
1608 (pp_c_left_brace): Likewise.
1609 (pp_c_right_brace): Likewise.
1610 (pp_c_left_bracket): Likewise.
1611 (pp_c_right_bracket): Likewise.
1612 (pp_c_dot): Likewise.
1613 (pp_c_ampersand): Likewise.
1614 (pp_c_star): Likewise.
1615 (pp_c_arrow): Likewise.
1616 (pp_c_semicolon): Likewise.
1617 (pp_c_complement): Likewise.
1618 (pp_c_exclamation): Likewise.
1619 (pp_c_direct_declarator): Likewise.
1620 (pp_c_ws_string): Likewise.
1621 (pp_c_identifier): Likewise.
1622 (pp_c_statement): Likewise.
1623 (print_c_tree): Likewise.
1624
65e5a578
ESR
16252013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1626
1627 PR c++/58072
1628 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1629 provide useful error strings.
1630
137a1a27
GDR
16312013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1632
1633 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1634 printer functions instead of pp_string or operators and punctuators.
1635 (dump_generic_ada_node): Likewise.
1636 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1637 (pp_c_relational_expression): Likewise.
1638 (pp_c_logical_or_expression): Likewise.
1639
07838b13
GDR
16402013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1641
1642 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1643 functions instead of pp_character.
1644 (pp_ada_tree_identifier): Likewise.
1645 (dump_ada_double_name): Likewise.
1646 (dump_ada_function_declaration): Likewise.
1647 (dump_ada_array_domains): Likewise.
1648 (dump_template_types): Likewise.
1649 (dump_generic_ada_node): Likewise.
1650 (print_ada_declaration): Likewise.
1651 (print_ada_struct_decl): Likewise.
1652 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1653
433cc7b0
TT
16542013-07-23 Tom Tromey <tromey@redhat.com>
1655
1656 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1657 * c-common.c (c_common_reswords): Add _Generic.
1658
688010ba
OB
16592013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1660
1661 * c-common.c: Fix typos.
1662 * c-common.h: Likewise.
1663
2a99e5e6
LL
16642013-07-13 Lubos Lunak <l.lunak@suse.cz>
1665
1666 PR c++/55203
1667 * c-common.c (c_common_attribute_table): Add warn_unused.
1668 (handle_warn_unused_attribute): New.
1669
c26302d5
JJ
16702013-07-10 Jakub Jelinek <jakub@redhat.com>
1671
1672 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1673 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1674
dfeadaa0
PC
16752013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1676
1677 PR c++/57869
1678 * c.opt: Add Wconditionally-supported.
1679
6a2fa4b2
GS
16802013-07-08 Graham Stott <graham.stott@btinternet.com>
1681
1682 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1683 unused variables l_length and l_node.
1684
ecdbd01a 16852013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1686
1687 PR c/57821
1688 * c-common.c (complete_array_type): Delay folding first index
1689 like other indices. When folding, check for index overflow.
1690
bedc293e
MG
16912013-06-27 Marc Glisse <marc.glisse@inria.fr>
1692
1693 PR c++/57509
1694 * c-common.h (c_build_vec_perm_expr): New complain argument.
1695 * c-common.c (c_build_vec_perm_expr): Likewise.
1696 Use save_expr also in C++.
1697
604b2bfc
GDR
16982013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1699
1700 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1701 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1702 * c-opts.c (c_common_post_options): Likewise.
1703
dfeadaa0 17042013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
1705
1706 * array-notation-common.c (length_mismatch_in_expr): Changed the
1707 parameter type's from a dynamic array to a vec_tree. Also removed
1708 the size parameters.
1709 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1710 the change above.
1711
2ce86d2e
BI
17122013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1713
1714 * c-common.h (struct cilkplus_an_parts): New structure.
1715 (struct cilkplus_an_loop_parts): Likewise.
1716 (cilkplus_extract_an_triplets): New prototype.
1717 (fix_sec_implicit_args): Likewise.
1718 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1719 (fix_sec_implicit_args): Likewise.
604b2bfc 1720
07a6825b
BI
17212013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1722
1723 * array-notation-common.c (find_inv_trees): Removed an unwanted
1724 typecasting.
1725 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1726 enum rid to enum tree_code.
1727
08346abd
JH
17282013-06-11 Jan Hubicka <jh@suse.cz>
1729
1730 * c-common.c (handle_alias_ifunc_attribute): Do not set
1731 DECL_EXTERNAL for weakref variables.
1732 * c-pragma.c (handle_pragma_weak): Make sure aliases
1733 are not declared as external.
1734
d60f1706
BI
17352013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1736
1737 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1738 function from c/c-array-notation.c.
1739 (is_cilkplus_reduce_builtin): Likewise.
1740 (find_rank): Likewise.
1741 (extract_array_notation_exprs): Likewise.
1742 (replace_array_notations): Likewise.
1743 (find_inv_trees): Likewise.
1744 (replace_inv_trees): Likewise.
1745 (contains_array_notation_expr): Likewise.
1746 (find_correct_array_notation_type): Likewise.
1747 * c-common.h (struct inv_list): Moved this struct from the file
1748 c/c-array-notation.c and added a new field called additional tcodes.
1749 (length_mismatch_in_expr_p): New prototype.
1750 (is_cilkplus_reduce_builtin): Likewise.
1751 (find_rank): Likewise.
1752 (extract_array_notation_exprs): Likewise.
1753 (replace_array_notation): Likewise.
1754 (find_inv_trees): Likewise.
1755 (replace_inv_trees): Likewise.
1756 (find_correct_array_notation_type): Likewise.
dfeadaa0 1757
36536d79
BI
17582013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1759
1760 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1761 function array_notation_init_builtins is called.
1762 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1763 * c-common.def (ARRAY_NOTATION_REF): New tree.
1764 * c-common.h (build_array_notation_expr): New function declaration.
1765 (build_array_notation_ref): Likewise.
1766 (extract_sec_implicit_index_arg): New extern declaration.
1767 (is_sec_implicit_index_fn): Likewise.
1768 (ARRAY_NOTATION_CHECK): New define.
1769 (ARRAY_NOTATION_ARRAY): Likewise.
1770 (ARRAY_NOTATION_START): Likewise.
1771 (ARRAY_NOTATION_LENGTH): Likewise.
1772 (ARRAY_NOTATION_STRIDE): Likewise.
1773 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1774 ARRAY_NOTATION_REF.
1775 (pp_c_expression): Likewise.
1776 * c.opt (flag_enable_cilkplus): New flag.
1777 * array-notation-common.c: New file.
1778
f7716d57
JJ
17792013-05-14 Jakub Jelinek <jakub@redhat.com>
1780
1781 PR c++/57274
1782 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1783
a5e0cd1d
MG
17842013-05-10 Marc Glisse <marc.glisse@inria.fr>
1785
1786 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1787 vectors.
1788
f6bc1c4a
HS
17892013-05-07 Han Shen <shenhan@google.com>
1790
1791 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1792
3f12f6e9
SKS
17932013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1794
1795 * c-common.c (check_user_alignment): Emit error for negative values.
1796
61949153
PC
17972013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1798
1799 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1800
e93e18e9
PC
18012013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1802
1803 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1804 __GXX_EXPERIMENTAL_CXX1Y__.
1805
44d90fe1
PC
18062013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1807 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1808
1809 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1810 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1811 to simply use OPT_Wpointer_arith.
1812 (c_sizeof_or_alignof_type): Likewise.
1813
13f39b2e
PC
18142013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1815
1816 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1817
4b84d650
JJ
18182013-04-12 Jakub Jelinek <jakub@redhat.com>
1819
1820 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1821 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1822 specifiers.
1823
fb037b5d
SB
18242013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1825
1826 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1827
4e856798
PC
18282013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1829
1830 * c-common.c (pointer_int_sum): Remove dead code.
1831
4b1baac8
RS
18322013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1833
1834 PR middle-end/56524
1835 * c-common.c (handle_optimize_attribute): Don't call
1836 save_optabs_if_changed.
1837
0b50e654
JJ
18382013-03-05 Jakub Jelinek <jakub@redhat.com>
1839
1840 PR middle-end/56461
1841 * c-pch.c (pch_init): Free target_validity at the end.
1842
48c41403
JJ
18432013-03-04 Jakub Jelinek <jakub@redhat.com>
1844
1845 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1846
e664c61c
KS
18472013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1848 Jakub Jelinek <jakub@redhat.com>
1849
1850 PR sanitizer/56454
1851 * c-common.c (handle_no_sanitize_address_attribute): New function.
1852 (c_common_attribute_table): Add no_sanitize_address attribute.
1853 (handle_no_address_safety_analysis_attribute): Add
1854 no_sanitize_address attribute, not no_address_safety_analysis
1855 attribute.
1856
a475fd3d 18572013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1858
1859 PR target/52555
1860 * c-common.c (handle_optimize_attribute): Call
1861 save_optabs_if_changed.
1862
f6007d99
JJ
18632013-02-18 Jakub Jelinek <jakub@redhat.com>
1864 Steven Bosscher <steven@gcc.gnu.org>
1865
1866 PR pch/54117
1867 * c-opts.c (c_common_post_options): If debug info is enabled
1868 and non-dwarf*, refuse to load PCH files and when writing PCH
1869 file warn.
1870
cf35e2b1
JJ
18712013-02-05 Jakub Jelinek <jakub@redhat.com>
1872
1873 PR middle-end/56167
1874 * c-common.c (handle_error_attribute): Fix condition.
1875
32887460
JJ
18762013-01-30 Jakub Jelinek <jakub@redhat.com>
1877
1878 PR c++/55742
1879 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1880
5af057d8
JM
18812013-01-18 Jason Merrill <jason@redhat.com>
1882
1883 PR target/54908
1884 * c.opt (-fextern-tls-init): New.
1885 * c-opts.c (c_common_post_options): Handle it.
1886
cc83c823
JJ
18872013-01-09 Jakub Jelinek <jakub@redhat.com>
1888
1889 PR c/48418
1890 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1891 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1892 and is either negative or bigger or equal to type precision
1893 of the first operand.
1894
a859517f
MP
18952012-12-03 Marek Polacek <polacek@redhat.com>
1896
1897 PR c/55570
1898 * c-common.c (check_user_alignment): Swap order of tests,
1899 check TREE_CODE first.
1900
2d7aa578
ESR
19012012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1902
1903 PR c++/52654
1904 * c-common.h (overflow_type): New enum.
1905 (build_userdef_literal): Add overflow_type argument.
1906 (tree_userdef_literal): Add overflow_type.
1907 (USERDEF_LITERAL_OVERFLOW): New access macro.
1908 * c-common.c (build_userdef_literal): Add overflow_type
1909 argument.
1910 * c-lex.c (c_lex_with_flags): Add overflow_type to
1911 build_userdef_literal calls.
1912 (interpret_integer, interpret_float): Add overflow_type argument.
1913
cc3c4f62
RB
19142012-11-28 Richard Biener <rguenther@suse.de>
1915
1916 PR c/35634
1917 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1918 here and use a type with proper overflow behavior for types that would
1919 need to be promoted for the arithmetic.
1920
77bc5132
JJ
19212012-11-23 Jakub Jelinek <jakub@redhat.com>
1922
1923 PR sanitizer/55435
1924 * c-common.c (handle_no_address_safety_analysis_attribute): New
1925 function.
1926 (c_common_attribute_table): Add no_address_safety_analysis.
1927
5dc99c46
SB
19282012-11-16 Simon Baldwin <simonb@google.com>
1929
1930 * c.opt: Add f[no-]canonical-system-headers.
1931 * c-opts.c (c_common_handle_option): Handle
1932 OPT_fcanonical_system_headers.
1933
a4a0016d
ESR
19342012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1935
1936 PR c++/54413
1937 * c-opts.c (c_common_handle_option): Set new flags.
1938 * c.opt: Describe new flags.
1939
7dbb85a7
JM
19402012-11-09 Jason Merrill <jason@redhat.com>
1941
1942 * c.opt (Wabi-tag): New.
1943
ad7bac31
AK
19442012-11-09 Andi Kleen <ak@linux.intel.com>
1945
1946 PR 55139
1947 * c-common.c (get_atomic_generic_size): Mask with
1948 MEMMODEL_MASK
1949
7332899a
MLI
19502012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1951
1952 PR c/53063
1953 * c.opt (Wformat): Make it Alias Wformat=1.
1954 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1955 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1956 LangEnabledBy.
1957 (Wformat=): RejectNegative. Use LangEnabledBy.
1958 (Wnonnull): Use LangEnabledBy.
1959 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1960 * c-format.c (set_Wformat): Delete.
1961 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1962 (maybe_read_dollar_number): Likewise.
1963 (avoid_dollar_number): Likewise.
1964 (finish_dollar_format_checking): Likewise.
1965 (check_format_info): Likewise.
1966 (check_format_info_main): Likewise.
1967 (check_format_types): Likewise.
1968 (format_type_warning): Likewise.
1969 * c-common.c (int): Likewise.
1970 (check_function_sentinel): Likewise.
1971 * c-common.h (warn_format,set_Wformat): Do not declare here.
1972
34a180a6
MLI
19732012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1974
1975 PR c/53063
1976 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1977 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1978 Use LangEnabledBy.
1979 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1980 common.opt.
1981 (Wvariadic-macros): Init(1).
1982 * c-opts.c (c_common_handle_option): Do not handle them
1983 explicitly.
1984 (c_common_post_options): Likewise.
1985 (sanitize_cpp_opts): warn_unused_macros is now
1986 cpp_warn_unused_macros.
1987 (push_command_line_include): Likewise.
1988 * c-common.c (warn_unknown_pragmas): Do not define.
1989 * c-common.h (warn_unknown_pragmas): Do not declare.
1990
3f46d6a5
MLI
19912012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1992
1993 PR c/51294
1994 * c-common.c (conversion_warning): Handle conditional expressions.
1995
880661a4
JW
19962012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1997
1998 PR c++/54930
1999 * c.opt (Wreturn_local_addr): Define new option.
2000
4514a96b
JM
20012012-10-25 Jason Merrill <jason@redhat.com>
2002
f14edc1a
JM
2003 * c.opt (Wvirtual-move-assign): New.
2004
4514a96b
JM
2005 * c.opt (Winherited-variadic-ctor): New.
2006
93100c6b
MG
20072012-10-25 Marc Glisse <marc.glisse@inria.fr>
2008
2009 PR c++/54427
2010 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2011
1efcb8c6
JM
20122012-10-23 Joseph Myers <joseph@codesourcery.com>
2013
2014 * c-common.h (pch_cpp_save_state): Declare.
2015 * c-target.def (c_preinclude): New hook.
2016 * c-opts.c (done_preinclude): New.
2017 (push_command_line_include): Handle default preincluded header.
2018 (cb_file_change): Call pch_cpp_save_state when calling
2019 push_command_line_include.
2020 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2021 (pch_cpp_save_state): New.
2022 (pch_init): Call pch_cpp_save_state conditionally, instead of
2023 calling cpp_save_state.
2024
4a0ae68e
MLI
20252012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2026
2027 PR c/53063
2028 PR c/40989
2029 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2030 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2031 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2032 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2033 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2034 * c-opts.c (c_common_handle_option): Remove explicit handling from
2035 here.
2036 (c_common_post_options): Likewise.
2037
67e4210b
EB
20382012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2039
2040 * c-ada-spec.c (LOCATION_COL): Delete.
2041 (compare_location): New function.
2042 (compare_node): Use it.
2043 (compare_comment): Likewise.
2044
65d4f2cd
MLI
20452012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2046
2047 PR c/53063
2048 PR c/40989
2049 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2050 * c-opts.c (c_common_handle_option): Do not set them here. Add
2051 comment.
2052 (c_common_post_options): Likewise.
2053
909881cb
EB
20542012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2055
2056 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2057 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2058 Remove POINTER_TYPE handling, add large unsigned handling and use
2059 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2060
3a785c97
JJ
20612012-10-12 Jakub Jelinek <jakub@redhat.com>
2062
2063 PR c/54381
2064 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2065 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2066 locs and array of 3 trees instead of just single loc and single
2067 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2068 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2069 For *cmp* builtins that take two sources strings report warnings
2070 about first and second source, not about destination and source.
2071
5e54f81d
MG
20722012-10-12 Marc Glisse <marc.glisse@inria.fr>
2073
2074 PR c++/53055
2075 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2076
f5b02f1e
EB
20772012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2078
2079 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2080 declaring something coming from another file.
2081
b46dbc6c
AC
20822012-10-10 Arnaud Charlet <charlet@adacore.com>
2083
f5b02f1e 2084 PR ada/54845
b46dbc6c
AC
2085 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2086
5d9de0d0
PC
20872012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2088
2089 PR c++/54194
2090 * c-common.c (warn_about_parentheses): Add location_t parameter;
2091 use EXPR_LOC_OR_LOC.
2092 * c-common.h: Update declaration.
2093
a212e43f
MG
20942012-10-09 Marc Glisse <marc.glisse@inria.fr>
2095
2096 PR c++/54427
2097 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2098 more operations. Make error messages optional.
2099 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2100 (scalar_to_vector): Declare.
2101
b1db7f91
JM
21022012-10-08 Jason Merrill <jason@redhat.com>
2103
2104 * c-common.c (c_common_reswords): Add thread_local.
2105
e28d52cf
DS
21062012-10-08 Dodji Seketeli <dodji@redhat.com>
2107
2108 PR c++/53528 C++11 attribute support
2109 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2110 new functions.
2111 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2112 static function.
2113 (handle_aligned_attribute): In choose strictest alignment
2114 among many. Use new check_cxx_fundamental_alignment_constraints.
2115 (handle_transparent_union_attribute): In c++11 attribute syntax,
2116 don't look through typedefs.
2117
3b78de56
AC
21182012-10-04 Arnaud Charlet <charlet@adacore.com>
2119
2120 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2121 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2122 out of dumpfile.h.
2123
6040bb5f
DC
21242012-09-25 Dehao Chen <dehao@google.com>
2125
2126 PR middle-end/54645
3b78de56 2127 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
2128 map when read in the pch.
2129
0b07a57e
AC
21302012-09-18 Arnaud Charlet <charlet@adacore.com>
2131
2132 * c-ada-spec.c: Style fixes.
2133
da5182be
TQ
21342012-09-18 Thomas Quinot <quinot@adacore.com>
2135
2136 * c.opt (-fada-spec-parent): Define new command line switch.
2137 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2138 is specified, generate binding spec as a child of the specified unit.
2139
0ccb505d
PC
21402012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2141 Manuel López-Ibáñez <manu@gcc.gnu.org>
2142
2143 PR c++/53210
2144 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2145
c583af79
AC
21462012-08-23 Arnaud Charlet <charlet@adacore.com>
2147
2148 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2149 for pointers, and add missing Convention C pragma.
2150 (print_ada_struct_decl): Add missing aliased keyword.
2151 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2152
1a4049e7
JJ
21532012-08-17 Jakub Jelinek <jakub@redhat.com>
2154
2155 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2156 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2157 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2158 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2159 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2160
70b5e7dc
RG
21612012-08-10 Richard Guenther <rguenther@suse.de>
2162
2163 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2164
f8923f7e
SB
21652012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2166
2167 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2168 instead of separate pp_newline and pp_flush.
2169 (print_c_tree): Likewise.
2170
e45abe1f
RH
21712012-07-26 Richard Henderson <rth@redhat.com>
2172
2173 * c-common.c (handle_hot_attribute): Allow labels.
2174 (handle_cold_attribute): Likewise.
2175
332f1d24
JJ
21762012-07-20 Jakub Jelinek <jakub@redhat.com>
2177
2178 PR c++/28656
2179 * c-common.c (check_function_nonnull): Handle multiple nonnull
2180 attributes properly.
2181
7ee2468b
SB
21822012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2183
2184 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2185 * c-ada-spec.c: Likewise.
2186 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2187
ee7b28eb
SB
21882012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2189
2190 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2191 Remove code conditional on it.
2192
6bdf3519
SB
21932012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2194
2195 * c-gimplify.c: Do not include basic-block.h.
2196 * c-common.c: Do not include linfuncs.h.
2197
532aafad
SB
21982012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2199
2200 * c-common.h: Include tree.h.
2201
8d0d1915
JM
22022012-07-02 Jason Merrill <jason@redhat.com>
2203
2204 PR c++/53524
2205 * c-common.c (get_priority): Call default_conversion.
2206
fbc873ad
UB
22072012-07-01 Uros Bizjak <ubizjak@gmail.com>
2208
2209 * c-pch.c (c_common_write_pch): Remove unused variables.
2210
d4a10d0a
SB
22112012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2212
2213 * cppspec.c: Moved from gcc/ to here.
2214
6f3a2e23
KT
22152012-06-27 Kai Tietz <ktietz@redhat.com>
2216
2217 PR preprocessor/37215
2218 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2219
8ca92d04
SB
22202012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2221
2222 * c-common.h (c_common_print_pch_checksum): Remove.
2223 * c-pch.c: Do not include output.h.
2224 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2225 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2226 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2227 (struct c_pch_header): Remove.
2228 (get_ident): Update gpch version.
2229 (pch_init): Do not print executable_checksum to asm_out_file.
2230 Do not fail if there is no asm_out_file to read back from. Set
2231 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2232 (c_common_write_pch): Verify that nothing was written to asm_out_file
2233 since pch_init was called. Do not write a c_pch_header, and do not
2234 copy from asm_out_file to the PCH.
2235 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2236 the content of asm_out_file from the PCH.
2237 (c_common_print_pch_checksum): Remove.
2238 * c-opts.c (c_common_init): Print out executable_checksum directly.
2239
70f42967
SB
22402012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2241
2242 * c-target.def (objc_declare_unresolved_class_reference,
2243 objc_declare_class_definition): Add new hooks.
2244
a8781821
SB
22452012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2246
2247 * c-lex.c: Do not include output.h.
2248 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2249 Remove uses of ASM_OUTPUT_IDENT.
2250
9e1a8dd1
RR
22512012-06-15 Marc Glisse <marc.glisse@inria.fr>
2252
2253 PR c++/51033
2254 * c-common.h (c_build_vec_perm_expr): Move decl here.
2255 * c-common.c (c_build_vec_perm_expr): Move definition
2256 here.
2257
6f07a821
SB
22582012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2259
2260 * c.opt (fconserve-space): Turn into a no-op.
2261
9faeb493 22622012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
2263
2264 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2265 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2266 both the start and end of the function.
2267
a4b7d13c
SB
22682012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2269
2270 * c-common.c: Do not include output.h.
2271 * c-pragma.c: Likewise.
2272
c265f413
SA
22732012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2274
2275 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2276 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2277 (lang_decl_name): Handle namespace decls.
2278
be7a421e
SB
22792012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2280
2281 * c-ada-spec.c: Do not include output.h.
2282 * c-semantics.c: Likewise.
2283
65de6659
JM
22842012-05-29 Joseph Myers <joseph@codesourcery.com>
2285
2286 * c-common.c: Fix typo.
2287
ca5f4331
MM
22882012-05-29 Michael Matz <matz@suse.de>
2289
2290 * c-common.h (c_expand_decl): Remove prototype.
2291
4f7f7aca
MLI
22922012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2293
2294 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2295 * c-opts.c (c_common_handle_option): Remove code handling
2296 warn_missing_braces.
2297
4a792f9b
PC
22982012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2299
2300 PR c++/25137
2301 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2302 -Wmissing_braces.
2303
650dc14a
DS
23042012-05-22 Dodji Seketeli <dodji@redhat.com>
2305
2306 PR c++/53322
2307 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2308
9b095bf1
MLI
23092012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2310
2311 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2312 * c-opts.c (c_common_handle_option): Do not handle explicitly
2313 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2314
0b2c4be5
DS
23152012-05-16 Dodji Seketeli <dodji@redhat.com>
2316
2317 PR preprocessor/7263
2318 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2319 to cpp_classify_number. For diagnostics, use the precise location
2320 instead of the global input_location.
2321
a1bde5af
PC
23222012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2323
d02924ef 2324 PR c++/11856
a1bde5af
PC
2325 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2326
d1ede5f4
BS
23272012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2328
a1bde5af 2329 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 2330
f2bc201f
MLI
23312012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2332
2333 PR 53063
2334 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2335 Wreorder): Use LangEnabledBy.
2336 * c-opts.c (c_common_handle_option): Do not enable them
2337 explicitly. Call lang-specific generated functions.
2338 (c_common_post_options): Do not set them here.
2339
95744782
MLI
23402012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2341
2342 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2343 Wmissing-field-initializers,Wmissing-parameter-type,
2344 Wold-style-declaration,Woverride-init): Use EnabledBy.
2345 * c-opts.c (c_common_post_options): Do not set here explicitly.
2346
7d5a5747
MLI
23472012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2348
2349 PR 53063
2350 * c-opts.c (c_common_handle_option): Use handle_generated_option
2351 to enable sub-options.
2352
5a3c9cf2
PC
23532012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2354
2355 PR c++/53158
2356 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2357
3ac8781c
RG
23582012-05-10 Richard Guenther <rguenther@suse.de>
2359
2360 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2361 adjust commentary about TYPE_IS_SIZETYPE types.
2362
1e537948
MLI
23632012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2364
2365 PR c++/53261
2366 * c-common.c (warn_logical_operator): Check that argument of
2367 integer_zerop is not NULL.
2368
f2c4a785
MLI
23692012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2370
2371 PR c/43772
2372 * c-common.c (warn_logical_operator): Do not warn if either side
2373 is already true or false.
2374
50f305ca
MLI
23752012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2376
2377 PR c/51712
2378 * c-common.c (expr_original_type): New.
2379 (shorten_compare): Do not warn for enumeration types.
2380
0c3641b0
MLI
23812012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2382
2383 * c.opt (fpermissive): Add Var(flag_permissive).
2384
7edaa4d2
MG
23852012-04-30 Marc Glisse <marc.glisse@inria.fr>
2386
2387 PR c++/51033
2388 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2389 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2390
b9c8da34
DS
23912012-04-30 Dodji Seketeli <dodji@redhat.com>
2392
2393 Add -Wvarargs option
2394 * c.opt (Wvarargs): Define new option.
2395
e6c69da0
MLI
23962012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2397
2398 * c-common.c (check_function_arguments): Replace
2399 Wmissing-format-attribute with Wsuggest-attribute=format.
2400
90137d8f
MLI
24012012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2402
2403 * c.opt (Wsuggest-attribute=format): New. Alias of
2404 Wmissing-format-attribute.
2405 * c-format.c (decode_format_type): Replace
2406 Wmissing-format-attribute with Wsuggest-attribute=format.
2407 (check_function_format): Likewise.
2408
9faeb493 24092012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
2410
2411 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2412 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2413 * c.opt: Add Wliteral-suffix.
2414
c1771a20
MLI
24152012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2416
2417 PR c/44774
2418 * c.opt (Wpedantic): New.
2419 (pedantic): Alias Wpedantic.
2420 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2421 (c_common_post_options): Likewise.
2422 (sanitize_cpp_opts): Likewise.
2423 * c-lex.c (interpret_float): Likewise.
2424 * c-format.c (check_format_types): Likewise.
2425 * c-common.c (pointer_int_sum): Likewise.
2426 (c_sizeof_or_alignof_type): Likewise.
2427 (c_add_case_label): Likewise.
2428 (c_do_switch_warnings): Likewise.
2429 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2430
04b391c1
JM
24312012-04-15 Jason Merrill <jason@redhat.com>
2432
2433 PR c++/52818
2434 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2435 (C_STD_NAME): Distinguish between C++98 and C++11.
2436
ac868f29
EB
24372012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2438
2439 PR target/52624
2440 * c-common.h (uint16_type_node): Rename into...
2441 (c_uint16_type_node): ...this.
2442 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2443 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2444
fd4116f4
MLI
24452012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2446
2447 * c-common.c (warn_if_unused_value): Move definition to here.
2448 * c-common.h (warn_if_unused_value): Move declaration to here.
2449
573ac65e
WB
24502012-03-23 William Bader <williambader@hotmail.com>
2451
2452 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2453
552b8185
JM
24542012-03-20 Jason Merrill <jason@redhat.com>
2455
2456 * c-common.h (enum cxx_dialect): Add cxx1y.
2457 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2458 test.
2459 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2460 * c-opts.c (c_common_post_options): Likewise.
2461 (set_std_cxx1y): New.
2462 (c_common_handle_option): Call it.
2463 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2464
04398fa8
PC
24652012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2466
2467 PR c++/14710
2468 * c.opt ([Wuseless-cast]): Add.
2469
d2a12ae7
RG
24702012-03-16 Richard Guenther <rguenther@suse.de>
2471
2472 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2473
a12bf402
MLI
24742012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2475
2476 PR c++/44783
2477 * c.opt (ftemplate-backtrace-limit) Add.
2478
5c30094f
RO
24792012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2480
2481 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2482 handling.
2483 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2484 (init_pragma): Don't register extern_prefix.
2485
21fa2faf
RG
24862012-03-12 Richard Guenther <rguenther@suse.de>
2487
2488 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2489 (builtin_type_for_size): Likewise.
2490
e3793c6f
JJ
24912012-02-13 Jakub Jelinek <jakub@redhat.com>
2492
2493 PR c++/52215
2494 * c-common.c (sync_resolve_params): Don't decide whether to convert
2495 or not based on TYPE_SIZE comparison, convert whenever arg_type
2496 is unsigned INTEGER_TYPE.
2497
93286335
PC
24982012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2499
2500 PR c/52118
2501 * c.opt ([Wunused-local-typedefs]): Fix description.
2502
7a421706
MS
25032012-01-24 Mike Stump <mikestump@comcast.net>
2504
2505 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2506 exactly.
2507
ba9b1f11
RG
25082012-01-18 Richard Guenther <rguenther@suse.de>
2509
2510 * c-opts.c (c_common_post_options): Reset LTO flags if
2511 we are about to generate a PCH.
2512
465406be
PC
25132012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2514
2515 PR c++/51777
2516 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2517 use pp_unsigned_wide_integer.
2518
aee15221
RG
25192012-01-10 Richard Guenther <rguenther@suse.de>
2520
2521 PR middle-end/51806
2522 * c-opts.c (c_common_handle_option): Move -Werror handling
2523 to language independent code.
2524
5720c0dc
RG
25252012-01-05 Richard Guenther <rguenther@suse.de>
2526
2527 PR middle-end/51764
2528 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2529 from common.opt.
2530
73ac190a
PC
25312011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2532
2533 PR c++/51316
2534 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2535 of array types with an unknown bound.
2536
48b0b196
JM
25372011-12-20 Joseph Myers <joseph@codesourcery.com>
2538
2539 * c-common.c (flag_isoc99): Update comment to refer to C11.
2540 (flag_isoc1x): Change to flag_isoc11.
2541 * c-common.h (flag_isoc99): Update comment to refer to C11.
2542 (flag_isoc1x): Change to flag_isoc11.
2543 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2544 C11.
2545 * c-opts.c (set_std_c1x): Change to set_std_c11.
2546 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2547 Call set_std_c11.
2548 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2549 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2550 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2551 standard.
2552 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2553 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2554 (std=gnu1x): Make alias of std=gnu11.
2555
d58d6eb5
JM
25562011-12-19 Jason Merrill <jason@redhat.com>
2557
2558 PR c++/51228
2559 * c-common.c (handle_transparent_union_attribute): Check the first
2560 field if the type is complete.
2561
b3908fcc
JW
25622011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2563
2564 PR libstdc++/51365
2565 * c-common.c (RID_IS_FINAL): Add.
2566 * c-common.h (RID_IS_FINAL): Add.
2567
fea3ca91
IS
25682011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2569
2570 * c.opt (fgnu-runtime): Provide full description.
2571 (fnext-runtime): Likewise.
2572 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2573
62bad7cd
AM
25742011-11-28 Andrew MacLeod <amacleod@redhat.com>
2575
2576 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2577 predefines in one place. Add LOCK_FREE predefines.
2578 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2579 new func.
2580
c466c4ff
AM
25812011-11-24 Andrew MacLeod <amacleod@redhat.com>
2582
2583 PR c/51256
9faeb493 2584 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2585 conditions
9faeb493
UB
2586 (resolve_overloaded_atomic_exchange,
2587 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2588 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2589 error_mark_node for error conditions.
9faeb493 2590
a5952633
RG
25912011-11-08 Richard Guenther <rguenther@suse.de>
2592
2593 PR middle-end/51010
2594 c-family/
2595
0a35513e
AH
25962011-11-07 Richard Henderson <rth@redhat.com>
2597 Aldy Hernandez <aldyh@redhat.com>
2598 Torvald Riegel <triegel@redhat.com>
2599
2600 Merged from transactional-memory.
2601
2602 * c-common.c (handle_tm_wrap_attribute,
2603 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2604 (struct c_common_reswords): Added __transaction* keywords.
2605 (struct c_common_attribute_table): Added transaction* and tm_regparm
2606 attributes.
2607 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2608 masks.
2609 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2610 find_tm_attribute): Declare.
2611
6d87092d
JM
26122011-11-07 Jason Merrill <jason@redhat.com>
2613
2614 PR c++/35688
2615 * c-common.c, c-common.h: Revert yesterday's changes.
2616
8e7860a1
JM
26172011-11-06 Jason Merrill <jason@redhat.com>
2618
2619 PR c++/35688
2620 * c-common.c (decl_has_visibility_attr): Split out from...
2621 (c_determine_visibility): ...here.
2622 * c-common.h: Declare it.
2623
d19fa6b5
JM
26242011-11-06 Joseph Myers <joseph@codesourcery.com>
2625
2626 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2627 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2628 type.
2629 (check_user_alignment): New. Split out of
2630 handle_aligned_attribute. Disallow integer constants with
2631 noninteger types. Conditionally allow zero.
2632 (handle_aligned_attribute): Use check_user_alignment.
2633 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2634
86951993
AM
26352011-11-06 Andrew MacLeod <amacleod@redhat.com>
2636 Richard Henderson <rth@redhat.com>
2637
2638 Merged from cxx-mem-model.
2639
2640 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2641 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2642 parameters that are the same type size.
2643 (get_atomic_generic_size): New. Find size of generic
2644 atomic function parameters and do typechecking.
2645 (add_atomic_size_parameter): New. Insert size into parameter list.
2646 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2647 either __atomic_exchange_n or external library call.
9faeb493 2648 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 2649 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 2650 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
2651 __atomic_load_n or an external library call.
2652 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2653 __atomic_store_n or an external library call.
2654 (resolve_overloaded_builtin): Handle new __atomic builtins.
2655
cf9e9959
EB
26562011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2657
2658 PR c++/50608
2659 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2660 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2661 <INDIRECT_REF>: Return the argument.
2662 <ARRAY_REF>: Remove special code for negative offset.
2663 Call fold_build_pointer_plus instead of size_binop.
2664 (fold_offsetof): Remove STOP_REF argument and adjust.
2665 * c-common.h (fold_offsetof_1): Declare.
2666 (fold_offsetof): Remove STOP_REF argument.
2667
25339f10
JM
26682011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2669
2670 PR c++/50810
2671 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2672 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2673 Wnarrowing for C++0x and C++98.
2674 * c.opt ([Wnarrowing]): Update.
2675
89401152
PC
26762011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2677
2678 PR c++/44277
2679 * c.opt: Add Wzero-as-null-pointer-constant.
2680
97e3ad20
JM
26812011-10-31 Jason Merrill <jason@redhat.com>
2682
15694fdd
JM
2683 * c.opt (-fdeduce-init-list): Off by default.
2684
97e3ad20
JM
2685 PR c++/50920
2686 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2687 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2688 and -Wc++11-compat.
2689 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2690
fb9120e3
RAV
26912011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2692
2693 PR c++/30066
2694 * c.opt (fvisibility-inlines-hidden): Description change.
2695
3ce4f9e4
ESR
26962011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2697
2698 Implement C++11 user-defined literals.
2699 * c-common.c (build_userdef_literal): New.
2700 * c-common.def: New tree code.
2701 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2702 * c-lex.c (interpret_float): Add suffix parm.
2703 (c_lex_with_flags): Build literal tokens.
2704
5f53c243
PC
27052011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2706
2707 PR c++/50841
2708 Revert:
2709 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2710
2711 PR c++/50810
2712 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2713 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2714 Wnarrowing for C++0x and C++98.
2715 * c.opt ([Wnarrowing]): Update.
2716
263734e1
PC
27172011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2718
2719 PR c++/50810
2720 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2721 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2722 Wnarrowing for C++0x and C++98.
2723 * c.opt ([Wnarrowing]): Update.
2724
d2e312d7
PC
27252011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2726
2727 PR c++/45385
2728 * c-common.c (conversion_warning): Remove code looking for
2729 artificial operands.
2730
d17687f6
DS
27312011-10-18 Dodji Seketeli <dodji@redhat.com>
2732
2733 PR bootstrap/50760
2734 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 2735 !NO_IMPLICIT_EXTERN_C.
d17687f6 2736
fc8396e9
PC
27372011-10-17 Michael Spertus <mike_spertus@symantec.com>
2738
2739 * c-common.c (c_common_reswords): Add __bases,
2740 __direct_bases.
2741 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2742
27432011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2744
2745 PR c++/50757
2746 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2747
847e697a
TT
27482011-10-15 Tom Tromey <tromey@redhat.com>
2749 Dodji Seketeli <dodji@redhat.com>
2750
2751 * c.opt (fdebug-cpp): New option.
2752 * c-opts.c (c_common_handle_option): Handle the option.
2753 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2754 output stream in parameter. Factorized from ...
2755 (maybe_print_line): ... this. Dump location debug information when
2756 -fdebug-cpp is in effect.
2757 (print_line_1): New static function. Takes an output stream in
2758 parameter. Factorized from ...
2759 (print_line): ... here. Dump location information when -fdebug-cpp
2760 is in effect.
2761 (scan_translation_unit): Dump location information when
2762 -fdebug-cpp is in effect.
2763
92582b75
TT
27642011-10-15 Tom Tromey <tromey@redhat.com>
2765 Dodji Seketeli <dodji@redhat.com>
2766
2767 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2768 without argument.
2769 * c-opts.c (c_common_handle_option)<case
2770 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2771 cases. Handle -ftrack-macro-expansion with and without argument.
2772
46427374
TT
27732011-10-15 Tom Tromey <tromey@redhat.com>
2774 Dodji Seketeli <dodji@redhat.com>
2775
2776 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2777 (print_line, cb_define, do_line_change): Adjust to avoid touching
2778 the internals of struct line_map. Use the public API instead.
2779 * c-pch.c (c_common_read_pch): Likewise.
2780 * c-lex.c (fe_file_change): Likewise.
2781
fc8396e9
PC
27822011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2783
2784 PR c++/17212
2785 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2786
27872011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2788
2789 PR c++/33067
2790 * c-pretty-print.c (pp_c_floating_constant): Output
2791 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2792
e79983f4
MM
27932011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2794
2795 * c-common.c (def_builtin_1): Delete old interface with two
2796 parallel arrays to hold standard builtin declarations, and replace
2797 it with a function based interface that can support creating
2798 builtins on the fly in the future. Change all uses, and poison
2799 the old names. Make sure 0 is not a legitimate builtin index.
2800 * c-omp.c (c_finish_omp_barrier): Ditto.
2801 (c_finish_omp_taskwait): Ditto.
2802 (c_finish_omp_flush): Ditto.
2803
6637388f
TG
28042011-10-11 Tristan Gingold <gingold@adacore.com>
2805
2806 * c.opt: (fallow-parameterless-variadic-functions): New.
2807
3797cb21
DS
28082011-09-08 Dodji Seketeli <dodji@redhat.com>
2809
2810 PR c++/33255 - Support -Wunused-local-typedefs warning
2811 * c-common.h (struct c_language_function::local_typedefs): New
2812 field.
9faeb493
UB
2813 (record_locally_defined_typedef, maybe_record_typedef_use)
2814 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 2815 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
2816 (maybe_record_typedef_use)
2817 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
2818 * c.opt: Declare new -Wunused-local-typedefs flag.
2819
693ddb1b
EB
28202011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2821
2822 PR middle-end/50266
2823 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2824 computations.
2825
830c740f
RG
28262011-09-05 Richard Guenther <rguenther@suse.de>
2827
2828 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2829 of integer_minus_one_node for empty array upper bounds.
2830
892a371f
DS
28312011-08-28 Dodji Seketeli <dodji@redhat.com>
2832
2833 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2834 it's the first time it's being called on this main TU.
2835
0e3fdb48
RB
28362011-08-24 Richard Guenther <rguenther@suse.de>
2837
2838 PR c/49396
2839 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2840
28412011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2842
2843 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2844 defined in cpp_init_builtins and c_cpp_builtins.
2845
d4a83c10
JM
28462011-08-19 Joseph Myers <joseph@codesourcery.com>
2847
2848 * c-common.c (c_common_reswords): Add __builtin_complex.
2849 * c-common.h (RID_BUILTIN_COMPLEX): New.
2850
bbceee64
JM
28512011-08-18 Joseph Myers <joseph@codesourcery.com>
2852
2853 * c-common.c (c_common_reswords): Add _Noreturn.
2854 (keyword_is_function_specifier): Handle RID_NORETURN.
2855 * c-common.h (RID_NORETURN): New.
2856
0e3a99ae
AS
28572011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2858
2859 * c-common.c (unsafe_conversion_p): New function. Check if it is
2860 unsafe to convert an expression to the type.
2861 (conversion_warning): Adjust, use unsafe_conversion_p.
2862 * c-common.h (unsafe_conversion_p): New function declaration.
2863
20906c66
JJ
28642011-08-02 Jakub Jelinek <jakub@redhat.com>
2865
2866 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2867 (c_finish_omp_taskyield): New prototype.
2868 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2869 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2870 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2871 or RHS1 have side-effects, evaluate those too in the right spot,
2872 if it is a decl and LHS is also a decl, error out if they
2873 aren't the same.
2874 (c_finish_omp_taskyield): New function.
2875 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2876 * c-pragma.c (omp_pragmas): Add taskyield.
2877 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2878 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2879 PRAGMA_OMP_CLAUSE_MERGEABLE.
2880
770e5a2e
DS
28812011-07-25 Dodji Seketeli <dodji@redhat.com>
2882
2883 * c-common.h (set_underlying_type): Remove parm name from
2884 declaration.
2885
1baae426
RG
28862011-07-25 Romain Geissler <romain.geissler@gmail.com>
2887
2888 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2889
fcb21722
JM
28902011-07-22 Jason Merrill <jason@redhat.com>
2891
76f86d00
JM
2892 PR c++/49793
2893 * c.opt (Wnarrowing): New.
2894
3a636414
JM
2895 PR c++/30112
2896 * c-common.h: Declare c_linkage_bindings.
2897 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2898
fcb21722
JM
2899 PR c++/49813
2900 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2901 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2902 as flag_isoc99 for 'restrict'.
2903 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2904
02614448
ILT
29052011-07-21 Ian Lance Taylor <iant@google.com>
2906
2907 PR middle-end/49705
2908 * c-common.c (c_disable_warnings): New static function.
2909 (c_enable_warnings): New static function.
2910 (c_fully_fold_internal): Change local unused_p to bool. Call
2911 c_disable_warnings and c_enable_warnings rather than change
2912 c_inhibit_evaluation_warnings.
2913
34429675
JM
29142011-07-20 Jason Merrill <jason@redhat.com>
2915
2916 PR c++/6709 (DR 743)
2917 PR c++/42603 (DR 950)
2918 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2919 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2920 (CPP_DECLTYPE): New.
2921 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2922
5d49b6a7
RG
29232011-07-19 Richard Guenther <rguenther@suse.de>
2924
2925 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2926 * c-omp.c (c_finish_omp_for): Likewise.
2927
e84a58ff
EB
29282011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2929
2930 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2931 body on the next line.
2932
329af3c7
JM
29332011-07-08 Jason Merrill <jason@redhat.com>
2934
4063e61b
JM
2935 PR c++/45437
2936 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2937
329af3c7
JM
2938 PR c++/49673
2939 * c-common.c (c_apply_type_quals_to_decl): Don't check
2940 TYPE_NEEDS_CONSTRUCTING.
2941
1a072294
RG
29422011-07-06 Richard Guenther <rguenther@suse.de>
2943
2944 * c-common.c (c_common_nodes_and_builtins):
2945 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2946
fce5dddd
RG
29472011-07-05 Richard Guenther <rguenther@suse.de>
2948
2949 * c-common.c (c_common_nodes_and_builtins): Build all common
2950 tree nodes first.
2951
45d439ac
JJ
29522011-06-27 Jakub Jelinek <jakub@redhat.com>
2953
56300785
JJ
2954 * c-common.h (c_tree_chain_next): New static inline function.
2955
45d439ac
JJ
2956 * c-common.c (check_builtin_function_arguments): Handle
2957 BUILT_IN_ASSUME_ALIGNED.
2958
e0a8ecf2
AM
29592011-06-21 Andrew MacLeod <amacleod@redhat.com>
2960
2961 * c-common.c: Add sync_ or SYNC__ to builtin names.
2962 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2963
29642011-06-20 Pierre Vittet <piervit@pvittet.com>
2965
2966 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2967 handler.
2968 (gen_pragma_handler): New union.
2969 (internal_pragma_handler): New type.
2970 (c_register_pragma_with_data)
2971 (c_register_pragma_with_expansion_and_data): New functions.
2972
2973 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2974 (c_register_pragma, c_register_pragma_with_expansion)
2975 (c_invoke_pragma_handler): Changed to work with
2976 internal_pragma_handler.
2977 (c_register_pragma_with_data)
2978 (c_register_pragma_with_expansion_and_data): New functions.
2979
677f3fa8
JM
29802011-06-14 Joseph Myers <joseph@codesourcery.com>
2981
2982 * c-common.c: Include common/common-target.h.
2983 (handle_section_attribute): Use
2984 targetm_common.have_named_sections.
2985 * c-cppbuiltin.c: Include common/common-target.h.
2986 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2987
d7fc8c14
RG
29882011-06-10 Richard Guenther <rguenther@suse.de>
2989
2990 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2991 to print a IDENTIFIER_NODE.
2992
10e48e39
RO
29932011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2994 Joseph Myers <joseph@codesourcery.com>
2995
2996 * c.opt (fbuilding-libgcc): New option.
2997 * c-cppbuiltin.c (c_cpp_builtins): Define
2998 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2999
6976ae51
JM
30002011-06-07 Jason Merrill <jason@redhat.com>
3001
3ff60975
JM
3002 * c-common.c (max_tinst_depth): Lower default to 900.
3003
6976ae51
JM
3004 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3005
009db074
RG
30062011-06-07 Richard Guenther <rguenther@suse.de>
3007
3008 * c-common.c (c_common_nodes_and_builtins): Do not set
3009 size_type_node or call set_sizetype.
3010
b4592b92
DS
30112011-06-07 Dodji Seketeli <dodji@redhat.com>
3012
3013 PR debug/49130
3014 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 3015 type when using pointer comparison to compare types.
b4592b92 3016
014ab419
JW
30172011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3018
3019 * c.opt: Add -Wdelete-non-virtual-dtor.
3020 * c-opts.c (c_common_handle_option): Include it in -Wall.
3021
4f60111f
NF
30222011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3023
3024 PR bootstrap/49190
3025
3026 Revert:
3027 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3028
3029 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3030 not tree_common.
3031
4cc4f2f4
JJ
30322011-05-27 Jakub Jelinek <jakub@redhat.com>
3033
3034 PR c++/49165
3035 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3036 C++ don't call c_common_truthvalue_conversion on void type arms.
3037
38e01f9e
NF
30382011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3039
3040 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3041 (stmt_list_stack): Define.
3042 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3043 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3044
92e948a8
NF
30452011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3046
3047 * c-common.c (warning_candidate_p): Check for BLOCKs.
3048
a2fc3e63
NF
30492011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3050
3051 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3052 not tree_common.
3053
0957c029
JJ
30542011-05-25 Jakub Jelinek <jakub@redhat.com>
3055
3056 * c-common.c (def_fn_type): Remove extra va_end.
3057
828fb3ba
JM
30582011-05-23 Jason Merrill <jason@redhat.com>
3059
3060 PR c++/48106
3061 * c-common.c (c_common_get_narrower): New.
3062 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3063
dde05067
NF
30642011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3065
3066 * c-common.h (check_function_arguments): Tweak prototype of
3067 check_function_arguments.
3068 * c-common.c (check_function_arguments): Likewise. Adjust
3069 calls to check_function_nonnull, check_function_format, and
3070 check_function_sentinel.
3071 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3072 separate attributes and typelist arguments. Use
3073 FOREACH_FUNCTION_ARGS to iterate over argument types.
3074
3c0d13bf
PC
30752011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3076
3077 * c-common.c (c_common_reswords): Reorder.
3078 * c-common.h (rid): Likewise.
3079
8242dd04
NF
30802011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3081
3082 * c-common.c (def_fn_type): Don't call build_function_type, call
3083 build_function_type_array or build_varargs_function_type_array
3084 instead.
3085 (c_common_nodes_and_builtins): Likewise.
3086
3d528853
NF
30872011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3088
3089 * c-common.c (c_add_case_label): Omit the loc argument to
3090 build_case_label.
3091 * c-common.h (build_case_label): Remove.
3092 * c-semantics.c (build_case_label): Remove.
3093
a04a722b
JM
30942011-05-05 Joseph Myers <joseph@codesourcery.com>
3095
3096 * c-objc.h (objc_start_method_definition): Update prototype.
3097 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3098
e19a18d4
NF
30992011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3100
3101 * c-common.c (check_main_parameter_types): Reindent. Don't use
3102 TYPE_ARG_TYPES directly.
3103 (handle_nonnull_attribute): Likewise.
3104 (sync_resolve_params): Likewise.
3105 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3106 to check_format_string.
3107 (handle_format_attribute): Likewise.
3108 (check_format_string): Take a function type to examine instead of
3109 a type list. Use a function_arg_iterator to step through argument
3110 types.
3111
c62c040f
RG
31122011-05-04 Richard Guenther <rguenther@suse.de>
3113
3114 * c-common.c (fix_string_type): Use size_int for index type bounds.
3115 (start_fname_decls): Do not pass NULL to build_int_cst.
3116 (c_init_attributes): Likewise.
3117 * c-lex.c (c_lex_with_flags): Likewise.
3118
c12ff9d8
JM
31192011-04-27 Jason Merrill <jason@redhat.com>
3120
3121 * c-common.c (make_tree_vector_from_list): New.
3122 * c-common.h: Declare it.
3123
304dfbe3
RG
31242011-04-26 Richard Guenther <rguenther@suse.de>
3125
3126 PR preprocessor/48248
3127 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3128 for output size with -P.
3129
3c0d13bf
PC
31302011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3131
3132 * c-common.c (struct c_common_resword): Add __underlying_type.
3133 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3134
04695783
JM
31352011-04-20 Jim Meyering <meyering@redhat.com>
3136
3137 * c-format.c (init_dollar_format_checking): Remove useless
3138 if-before-free.
3139
0dc33c3c
NP
31402011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3141
3142 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 3143 (objc_detect_field_duplicates): New.
0dc33c3c 3144 * stub-objc.c: Likewise.
3c0d13bf 3145
c59633d9
NP
31462011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3147
3148 * stub-objc.c (objc_declare_protocols): Renamed to
3149 objc_declare_protocol.
3150 * c-objc.h: Likewise.
3c0d13bf 3151
32dabdaf
NP
31522011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3153
3154 * stub-objc.c (objc_declare_class): Updated argument name.
3155
81f653d6
NF
31562011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3157
3158 * c-common.h (c_common_init_ts): Declare.
3159 * c-common.c (c_common_init_ts): Define.
3160
eb345401
NP
31612011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3162
3163 * c-objc.h (objc_build_message_expr): Updated prototype.
3164 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 3165
a358e188
MJ
31662011-04-12 Martin Jambor <mjambor@suse.cz>
3167
3168 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3169 of cgraph_node.
3170
e6313a78
RG
31712011-04-11 Richard Guenther <rguenther@suse.de>
3172
3173 * c-common.c (complete_array_type): Build a range type of
3174 proper type.
3175
dcf0c47e
NF
31762011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3177
3178 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3179 (handle_type_generic_attribute): Likewise.
3180
1ee44b26
JM
31812011-04-07 Jason Merrill <jason@redhat.com>
3182
3183 PR c++/48450
3184 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3185 conversion from C++0x scoped enum.
3186
acce4e77
JM
31872011-04-06 Joseph Myers <joseph@codesourcery.com>
3188
3189 * c-target-def.h: New file.
3190 * c-target.def: New file.
3191 * c-target.h: New file.
3192 * c-common.c (targetcm): Don't define here.
3193 * c-common.h (default_handle_c_option): Declare.
3194 * c-format.c: Include c-target.h instead of target.h.
3195 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3196 include tm.h.
3197 (default_handle_c_option): Move from targhooks.c.
3198
e2eefb55
JJ
31992011-03-29 Jakub Jelinek <jakub@redhat.com>
3200
3201 PR preprocessor/48248
3202 * c-ppoutput.c (print): Add src_file field.
3203 (init_pp_output): Initialize it.
3204 (maybe_print_line): Don't optimize by adding up to 8 newlines
3205 if map->to_file and print.src_file are different file.
3206 (print_line): Update print.src_file.
3207
ba78087b
KT
32082011-03-25 Kai Tietz <ktietz@redhat.com>
3209
3210 * c-ada-spec.c (compare_comment): Use filename_cmp
3211 instead of strcmp for filename.
3212
0edf1bb2
JL
32132011-03-25 Jeff Law <law@redhat.com>
3214
3215 * c-family/c-common.c (def_fn_type): Add missing va_end.
3216
c7dc8804
JM
32172011-03-25 Jason Merrill <jason@redhat.com>
3218
3219 * c.opt: Add -std=c++03.
3220
d1d879b1
EB
32212011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3222
3223 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3224
62d784f7
KT
32252011-03-17 Kai Tietz
3226
3227 PR target/12171
5050afdf
KT
3228 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3229 Display allowed attributes for function pointer types.
3230 (pp_c_attributes_display): New function to display
3231 attributes having affects_type_identity flag set to true.
3232 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3233
62d784f7
KT
3234 * c-common.c (c_common_attribute_table):
3235 Add new element.
3236 (c_common_format_attribute_table): Likewise.
3237
82d37118
JM
32382011-03-18 Jason Merrill <jason@redhat.com>
3239
49a000c3
JM
3240 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3241 * c-common.h: Don't declare it here.
3242 * c-common.c: Or define it here.
3243 * c-opts.c (c_common_handle_option): Or set it here.
3244
82d37118
JM
3245 PR c++/35315
3246 * c-common.c (handle_transparent_union_attribute): Don't
3247 make a duplicate type in C++.
3248
17bc631c
JM
32492011-03-15 Jason Merrill <jason@redhat.com>
3250
3251 * c-common.c (max_constexpr_depth): New.
3252 * c-common.h: Declare it.
3253 * c-opts.c (c_common_handle_option): Set it.
3254 * c.opt (fconstexpr-depth): New option.
3255
1b9b91a6
JM
32562011-03-11 Jason Merrill <jason@redhat.com>
3257
f231b5ff
JM
3258 * c-common.c (attribute_takes_identifier_p): Add missing const.
3259
1b9b91a6
JM
3260 PR c++/46803
3261 * c-common.c (attribute_takes_identifier_p): Assume that an
3262 unknown attribute takes an identifier.
3263
a19e4d44
NF
32642011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3265
3266 PR c/47786
3267 * c-common.c (c_type_hash): Call list_length instead of iterating
3268 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3269
982d62f6
JJ
32702011-02-19 Jakub Jelinek <jakub@redhat.com>
3271
3272 PR c/47809
3273 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3274
0a256240
NP
32752011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3276
3277 * c.opt (fobjc-abi-version=) New.
3278 (fobjc-nilcheck): New.
3279
ba9e6dd5
NF
32802011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3281
3282 PR c++/46890
3283 * c-common.h (keyword_is_decl_specifier): Declare.
3284 * c-common.c (keyword_is_decl_specifier): Define.
3285 (keyword_is_function_specifier): New function.
3286
7273813a
JJ
32872011-01-26 Jakub Jelinek <jakub@redhat.com>
3288
3289 PR c/47473
3290 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3291 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3292 REAL_TYPE.
3293
908ef79b
AC
32942011-01-26 Arnaud Charlet <charlet@adacore.com>
3295
3296 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3297
237e9384
JJ
32982011-01-26 Jakub Jelinek <jakub@redhat.com>
3299
3300 PR pch/47430
3301 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3302 after init_c_lex if pch_file is set.
3303
47ea1edf
DK
33042011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3305
d4dba752 3306 PR c++/43601
47ea1edf
DK
3307 * c.opt (-fkeep-inline-dllexport): New switch.
3308
2aa9c6ae
RG
33092011-01-12 Richard Guenther <rguenther@suse.de>
3310
3311 PR middle-end/32511
3312 * c-common.c (handle_weak_attribute): Warn instead of error
3313 on declaring an inline function weak.
3314
7bd11157
TT
33152011-01-05 Tom Tromey <tromey@redhat.com>
3316
3317 * c-common.h (lvalue_error): Update.
3318 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3319 not error.
3320
0e66e494 33212010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 3322
b4f588c4
NP
3323 PR objc/47075
3324 * c-objc.h (objc_finish_message_expr): Added argument to
3325 prototype.
3326
f4da8dce
NF
33272010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3328
3329 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3330 Use prototype_p.
3331
46270f14
NP
33322010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3333
3334 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 3335 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 3336
4816c593
NF
33372010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3338
3339 * c-common.h (readonly_error): Declare.
3340 * c-common.c (readonly_error): Define.
3341
7a6daeb0
NF
33422010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3343
3344 * c-common.h (invalid_indirection_error): Declare.
3345 * c-common.c (invalid_indirection_error): Define.
3346
892f6119
RG
33472010-12-03 Richard Guenther <rguenther@suse.de>
3348
3349 PR c/46745
3350 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3351 (pp_c_unary_expression): Likewise.
3352 (pp_c_expression): Likewise.
3353
6c39e757
NP
33542010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3355
3356 * c-common.h (objc_finish_function): New.
3357 (objc_non_volatilized_type): Removed.
3358 (objc_type_quals_match): Removed.
3359 * stub-objc.c (objc_finish_function): New.
3360 (objc_non_volatilized_type): Removed.
3361 (objc_type_quals_match): Removed.
9faeb493 3362
7c475d11
JM
33632010-11-30 Joseph Myers <joseph@codesourcery.com>
3364
3365 * c-common.h (parse_optimize_options): Declare.
3366 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3367 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3368
71f3e391
JM
33692010-11-29 Joseph Myers <joseph@codesourcery.com>
3370
3371 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3372 GET_ENVIRONMENT.
3373 * c-pch.c (O_BINARY): Don't define here.
3374 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3375
d5fabb58
JM
33762010-11-25 Joseph Myers <joseph@codesourcery.com>
3377
3378 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3379 targetm.except_unwind_info.
3380
299404a1
JM
33812010-11-23 Joseph Myers <joseph@codesourcery.com>
3382
3383 * c-opts.c (c_common_handle_option): Pass location to
3384 set_struct_debug_option.
3385
c98cd5bf
JM
33862010-11-23 Joseph Myers <joseph@codesourcery.com>
3387
3388 * c-common.c (visibility_options): Move from ../opts.c.
3389 * c-common.h (struct visibility_flags, visibility_options):
3390 Declare here.
3391 * c-opts.c (finish_options): Rename to c_finish_options.
3392 (c_common_init): Update call to finish_options.
3393
a9546771
NP
33942010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3395
3396 PR objc/34033
3397 * c-lex.c (lex_string): Check that each string in an Objective-C
3398 string concat sequence starts with either one or zero '@', and
3399 that there are no spurious '@' signs at the end.
3400
24a57808
JM
34012010-11-20 Joseph Myers <joseph@codesourcery.com>
3402
3403 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3404 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3405 HANDLE_PRAGMA_VISIBILITY.
3406 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3407 HANDLE_PRAGMA_VISIBILITY): Don't define.
3408 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3409
a9aa2c3a
NF
34102010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3411
3412 PR c++/16189
3413 PR c++/36888
3414 PR c++/45331
3415 * c-common.h (keyword_begins_type_specifier): Declare.
3416 (keyword_is_storage_class_specifier): Declare.
3417 (keyword_is_type_qualifier): Declare.
3418 * c-common.c (keyword_begins_type_specifier): New function.
3419 (keyword_is_storage_class_specifier): New function.
3420 (keyword_is_type_qualifier): Declare.
3421
5386338c
JM
34222010-11-19 Joseph Myers <joseph@codesourcery.com>
3423
3424 PR c/46547
3425 * c-common.c (in_late_binary_op): Define.
3426 (c_common_truthvalue_conversion): Check in_late_binary_op before
3427 calling c_save_expr.
3428 * c-common.h (in_late_binary_op): Declare.
3429
69ccdddb
JM
34302010-11-19 Joseph Myers <joseph@codesourcery.com>
3431
3432 * c-opts.c (c_common_handle_option): Update calls to
3433 set_struct_debug_option.
3434
6b192a09
NP
34352010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3436
3437 * c-common.h (objc_declare_protocols): Added additional argument.
3438 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 3439
fb52b50a
NF
34402010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3441
3442 PR c/33193
3443 * c-common.h (build_real_imag_expr): Declare.
3444 * c-semantics.c (build_real_imag_expr): Define.
3445
b37421c6
JM
34462010-11-17 Joseph Myers <joseph@codesourcery.com>
3447
3448 * c-opts.c (c_common_parse_file): Take no arguments.
3449 * c-common.h (c_common_parse_file): Update prototype.
3450
07078664
JJ
34512010-11-16 Jakub Jelinek <jakub@redhat.com>
3452
3453 PR c++/46401
3454 * c-common.c (warning_candidate_p): Don't track non-const calls
3455 or STRING_CSTs.
3456
c6a13190
ILT
34572010-11-15 Ian Lance Taylor <iant@google.com>
3458
3459 * c-lex.c (init_c_lex): Set macro debug callbacks if
3460 flag_dump_go_spec is set.
3461
925e8657
NP
34622010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3463
3464 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3465 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3466
bb0a9581
NF
34672010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3468
3469 PR preprocessor/45038
3470 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3471 dialects.
3472
c5fa0890
JM
34732010-11-12 Joseph Myers <joseph@codesourcery.com>
3474
3475 * c-common.h (c_family_lang_mask): Declare.
3476 * c-opts.c (c_family_lang_mask): Make extern.
3477 * c-pragma.c (handle_pragma_diagnostic): Use
3478 control_warning_option.
3479
a4d8c676
JM
34802010-11-12 Joseph Myers <joseph@codesourcery.com>
3481
3482 * c-common.c (parse_optimize_options): Update call to
3483 decode_options.
3484 * c-common.h (c_common_handle_option): Update prototype.
3485 * c-opts.c (c_common_handle_option): Take location_t parameter and
3486 pass it to other functions.
3487
f954bd2c
JM
34882010-11-11 Joseph Myers <joseph@codesourcery.com>
3489
3490 * c-opts.c (warning_as_error_callback): Remove.
3491 (c_common_initialize_diagnostics): Don't call
3492 register_warning_as_error_callback.
3493 (c_common_handle_option): Handle -Werror=normalized= here.
3494
d8a07487
JM
34952010-11-10 Joseph Myers <joseph@codesourcery.com>
3496
3497 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3498 in diagnostic.
3499 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3500 letter.
3501 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3502 Remove trailing '.' from diagnostics.
3503 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3504
d5478783
JM
35052010-11-10 Joseph Myers <joseph@codesourcery.com>
3506
3507 * c-common.c (parse_optimize_options): Pass global_dc to
3508 decode_options.
3509 * c-opts.c (c_common_handle_option): Pass &global_options to
3510 set_Wstrict_aliasing.
3511 * c.opt (v): Don't mark Common or document here.
3512
91ebb981
IS
35132010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3514
3515 PR target/44981
3516 * c-format.c (format_type): New type gcc_objc_string_format_type.
3517 (valid_stringptr_type_p): New.
3518 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3519 (check_format_string): Pass expected type, use
91ebb981
IS
3520 valid_stringptr_type_p (), check that the format string types are
3521 consistent with the format specification.
3522 (decode_format_attr): Warn if NSString is used outside objective-c.
3523 (format_types_orig): Add NSString.
3524 (format_name): New.
3525 (format_flags): New.
3526 (check_format_arg): Handle format strings requiring an external parser.
3527 first_target_format_type: New variable.
3528 (handle_format_attribute): Set up first_target_format_type, pass the
3529 expected format arg string type to check_format_string().
3530 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3531 * stub-objc.c (objc_string_ref_type_p): New.
3532 (objc_check_format_arg): New.
3533
bede2adc
NP
35342010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3535
9faeb493 3536 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3537 * c-common.h (objc_build_class_component_ref): New.
3538 * stub-objc.c (objc_build_class_component_ref): New.
3539
9a179d01
NP
35402010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3541
3542 * c.opt (Wproperty-assign-default): New option.
3543
22d8d616
NP
35442010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3545
3546 Implemented -fobjc-std=objc1 flag.
3547 * c.opt (fobjc-std=objc1): New option.
3548
2debdb4f
NP
35492010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3550
3551 Implemented format and noreturn attributes for Objective-C methods.
3552 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3553 attribute for Objective-C methods.
3554
ec52b111
JM
35552010-10-31 Jason Merrill <jason@redhat.com>
3556
3557 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3558 EXPR_LOC_OR_HERE.
3559
46a88c12
NP
35602010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3561
3562 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3563 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3564 (objc_add_property_declaration): Removed arguments for copies and
3565 ivar.
3566 (objc_build_getter_call): Renamed to
3567 objc_maybe_build_component_ref.
3568 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3569 (objc_is_property_ref): New.
3570 * c-common.c (c_common_reswords): Removed copies and ivar.
3571 * stub-objc.c (objc_add_property_declaration): Removed arguments
3572 for copies and ivar.
3573 (objc_build_getter_call): Renamed to
3574 objc_maybe_build_component_ref.
3575 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3576 (objc_is_property_ref): New.
9faeb493 3577
1e4bf85b
AC
35782010-10-29 Arnaud Charlet <charlet@adacore.com>
3579 Matthew Gingell <gingell@adacore.com>
3580
3581 * c-ada-spec.c (separate_class_package): New function.
3582 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3583 name of their enclosing package.
3584 (print_ada_declaration): Use separate_class_package.
3585
81f0bab2
JM
35862010-10-27 Jason Merrill <jason@redhat.com>
3587
2b08f2c5
JM
3588 * c-common.c (c_common_reswords): Add __is_literal_type.
3589 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3590
81f0bab2
JM
3591 * c-common.c (check_case_value): Remove special C++ code.
3592
200290f2
NP
35932010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3594
3595 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3596 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3597 and RID_LAST_PATTR.
3598 (objc_add_property_declaration): Added additional arguments.
3599 (objc_property_attribute_kind): Removed.
3600 (objc_set_property_attr): Removed.
3601 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3602 copy and nonatomic.
3603 * stub-objc.c (objc_add_property_declaration): Added additional
3604 arguments.
3605 (objc_set_property_attr): Removed.
9faeb493 3606
f614132b
NP
36072010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3608
3609 * c-common.h (objc_add_property_variable): Renamed to
3610 objc_add_property_declaration. Added location argument.
3611 * stub-objc.c (objc_add_property_variable): Same change.
3612
b8a18805
NP
36132010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3614
3615 * c-common.h (objc_maybe_printable_name): New.
3616 * stub-objc.c (objc_maybe_printable_name): New.
3617
30cd1c5d
AS
36182010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3619 Andrew Pinski <pinskia@gmail.com>
3620
3621 * c-common.h (c_common_mark_addressable_vec): Declare.
3622 * c-common.c (c_common_mark_addressable_vec): New function.
3623
249a82c4
NP
36242010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3625
3626 * c-common.h (objc_set_method_type): Removed.
3627 (objc_add_method_declaration): Added boolean argument.
3628 (objc_start_method_definition): Same change.
3629 (objc_build_method_signature): Same change.
3630 * stub-objc.c (objc_set_method_type): Removed.
3631 (objc_add_method_declaration): Added boolean argument.
3632 (objc_start_method_definition): Same change.
3633 (objc_build_method_signature): Same change.
3634
977e30bc
NP
36352010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3636
3637 * c-common.h (finish_file): Removed.
3638 (objc_write_global_declarations): New.
3639 * c-opts.c (c_common_parse_file): Do not call finish_file.
3640 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3641
da57d1b9
NP
36422010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3643
3644 Implemented parsing @synthesize and @dynamic for
3645 Objective-C/Objective-C++.
3646 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3647 (objc_add_synthesize_declaration): New.
3648 (objc_add_dynamic_declaration): New.
3649 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3650 * stub-objc.c (objc_add_synthesize_declaration): New.
3651 (objc_add_dynamic_declaration): New.
9faeb493 3652
0069111f
MM
36532010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3654
3655 PR target/46041
3656 * c-cppbuiltin.c (mode_has_fma): Move function here from
3657 builtins.c. Don't use the fma optab, instead just use the
3658 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3659 using -save-temps.
3660
e426b47b
NP
36612010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3662
3663 Merge from 'apple/trunk' branch on FSF servers.
0069111f 3664
e426b47b
NP
3665 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3666
9faeb493 3667 Radar 4330422
e426b47b
NP
3668 * c-common.h (objc_non_volatilized_type): New declaration
3669 * stub-objc.c (objc_non_volatilized_type): New stub.
3670
90fbfdc3
NP
36712010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3672
e426b47b 3673 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
3674
3675 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3676
9faeb493 3677 Radar 4133425
90fbfdc3 3678 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 3679 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 3680
c37d8c30
IS
36812010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3682
3683 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3684 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3685 (objc_ivar_visibility_kind): New enum.
3686 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 3687 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
3688 visibility enum.
3689
1b1562a5
MM
36902010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3691
3692 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3693 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3694 has the appropriate fma builtins.
3695 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3696
668ea4b1
IS
36972010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3698
1b1562a5 3699 merge from FSF apple 'trunk' branch.
668ea4b1 3700 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 3701
668ea4b1
IS
3702 Radars 4436866, 4505126, 4506903, 4517826
3703 * c-common.c (c_common_resword): Define @property and its attributes.
3704 * c-common.h: Define property attribute enum entries.
3705 (OBJC_IS_PATTR_KEYWORD): New.
3706 (objc_property_attribute_kind): New enum.
3707 Declare objc_set_property_attr (), objc_add_property_variable (),
3708 objc_build_getter_call () and objc_build_setter_call ().
3709 * stub-objc.c (objc_set_property_attr): New stub.
3710 (objc_add_property_variable): Likewise.
3711 (objc_build_getter_call): Likewise.
3712 (objc_build_setter_call) Likewise.
1b1562a5 3713
a1178b30
IS
37142010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3715
1b1562a5 3716 merge from FSF apple 'trunk' branch.
a1178b30
IS
3717 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3718
3719 Radar 3803157 (method attributes)
3720 * c-common.c (handle_deprecated_attribute): Recognize
3721 objc methods as valid declarations.
3722 * c-common.h: Declare objc_method_decl ().
1b1562a5 3723 * stub-objc.c (objc_method_decl): New stub.
a1178b30 3724
a75bfaa6
JM
37252010-10-08 Joseph Myers <joseph@codesourcery.com>
3726
3727 * c-common.c (parse_optimize_options): Call
3728 decode_cmdline_options_to_array_default_mask before
3729 decode_options. Update arguments to decode_options.
3730 * c-common.h (c_common_init_options_struct): Declare.
3731 * c-opts.c (c_common_init_options_struct): New. Split out from
3732 c_common_init_options.
3733
f05b9d93
NP
37342010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3735
3736 Implemented fast enumeration for Objective-C.
3737 * c-common.h (objc_finish_foreach_loop): New.
3738 * stub-objc.c (objc_finish_foreach_loop): New.
3739
1ebe4b4f
JM
37402010-10-05 Joseph Myers <joseph@codesourcery.com>
3741
3742 * c-common.h (struct diagnostic_context): Don't declare here.
3743 (c_common_initialize_diagnostics): Declare using
3744 diagnostic_context typedef.
3745 * c-opts.c (c_common_handle_option): Pass global_dc to
3746 handle_generated_option.
3747
d4d24ba4
JM
37482010-10-04 Joseph Myers <joseph@codesourcery.com>
3749
3750 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3751 handle_generated_option.
3752
478a1c5b
ILT
37532010-10-03 Ian Lance Taylor <iant@google.com>
3754
3755 * c.opt (-fplan9-extensions): New option.
3756
82a1c2fe
FXC
37572010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3758
3759 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3760 Remove.
3761 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3762 of duplicating code.
3763
92902b1b
IS
37642010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3765
3766 * c-common.c: Add two new entries for @optional
3767 and @required keywords.
3768
3769 merge from FSF 'apple/trunk' branch.
3770 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3771
3772 Radar 4386773
3773 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3774 objective-c keywords.
3775 (objc_set_method_opt): New declaration.
3776 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 3777
46625112
JM
37782010-09-30 Joseph Myers <joseph@codesourcery.com>
3779
3780 * c-common.c (handle_optimize_attribute): Pass &global_options to
3781 cl_optimization_save and cl_optimization_restore.
3782 * c-opts.c (c_common_handle_option): Pass &global_options to
3783 handle_generated_option.
3784 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3785 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3786 &global_options to cl_optimization_restore.
3787
49b91f05
NP
37882010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3789
3790 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3791 Objective-C/Objective-C++ keywords.
3792
13ed556f 37932010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 3794
9faeb493
UB
3795 Merge from 'apple/trunk' branch on FSF servers.
3796
a6341d57
NP
3797 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3798
3799 Radar 4281748
3800 * c-common.h (objc_check_global_decl): New declaration.
3801 * stub-objc.c (objc_check_global_decl): New stub.
3802
f0036cca
JM
38032010-09-29 Joseph Myers <joseph@codesourcery.com>
3804
3805 * c.opt: Don't use VarExists.
3806
e3339d0f
JM
38072010-09-29 Joseph Myers <joseph@codesourcery.com>
3808
3809 * c-common.c (c_cpp_error): Update names of diagnostic_context
3810 members.
3811 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3812 cl_optimization members.
3813 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3814 sanitize_cpp_opts, finish_options): Update names of cpp_options
3815 members.
3816
1973201f
NP
38172010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3818
3819 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3820 (objc_is_reserved_word): Removed.
3821 * c-common.c: Updated comments.
3822 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3823 objc_is_reserved_word.
3824 * stub-objc.c (objc_is_reserved_word): Removed.
3825
f7e71da5
IS
38262010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3827
9faeb493 3828 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
3829 include attributes.
3830 (objc_start_method_definition): Likewise.
3831 (objc_build_keyword_decl): Likewise.
3832 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3833 (objc_start_method_definition): Likewise.
3834 (objc_build_keyword_decl): Likewise.
3835
c165dca7
IS
38362010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3837
3838 * c-common.h (objc_start_class_interface): Adjust prototype.
3839 (objc_start_category_interface): Likewise.
3840 (objc_start_protocol): Likewise.
3841 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3842 (objc_start_class_interface): Likewise.
3843 (objc_start_category_interface): Likewise.
3844
7458026b
ILT
38452010-09-27 Ian Lance Taylor <iant@google.com>
3846
3847 * c-common.c (c_common_attribute_table): Add no_split_stack.
3848 (handle_no_split_stack_attribute): New static function.
3849
b581b85b
NP
38502010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3851
9faeb493 3852 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3853
3854 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3855
9faeb493 3856 Radar 4229905
b581b85b
NP
3857 * c-common.h (objc_have_common_type): New declaration.
3858 * stub-objc.c (objc_have_common_type): New stub.
3859
3860 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3861
3862 Radar 4154928
3863 * c-common.h (objc_common_type): New prototype.
9faeb493 3864 * stub-objc.c (objc_common_type): New stub.
b581b85b 3865
46a4da10
JH
38662010-09-24 Jan Hubicka <jh@suse.cz>
3867
3868 * c-common.c (handle_leaf_attribute): New function.
3869 (struct attribute_spec c_common_att): Add leaf.
3870
e200444e
JM
38712010-09-22 Joseph Myers <joseph@codesourcery.com>
3872
3873 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3874 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3875 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3876 -include-barrier, -include-directory, -include-directory=,
3877 -include-directory-after, -include-directory-after=,
3878 -include-prefix, -include-prefix=, -include-with-prefix,
3879 -include-with-prefix=, -include-with-prefix-after,
3880 -include-with-prefix-after=, -include-with-prefix-before,
3881 -include-with-prefix-before=, -no-integrated-cpp,
3882 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3883 -output=, -pedantic, -pedantic-errors, -preprocess,
3884 -print-missing-file-dependencies, -trace-includes, -traditional,
3885 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3886 -user-dependencies, -verbose, -write-dependencies,
3887 -write-user-dependencies, no-integrated-cpp, traditional): New.
3888
29a80ea6
NP
38892010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3890
3891 PR objc/23710
ac1fc2fc
NP
3892 * c-common.h (objc_start_method_definition): Return bool instead
3893 of void.
3894 * stub-objc.c (objc_start_method_definition): Return bool instead
3895 of void.
3896
38972010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3898
3899 PR objc/25965
3900 * c-common.h (objc_get_interface_ivars): New declaration.
3901 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3902
de621752
ILT
39032010-09-15 Ian Lance Taylor <iant@google.com>
3904
3905 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3906 messages. Remove period at end of warning message.
de621752 3907
ba885ec5
NS
39082010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3909
3910 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3911 (handle_alias_attribute): ... here.
3912 (handle_ifunc_attribute): New.
3913
c5ee1358
MM
39142010-09-06 Mark Mitchell <mark@codesourcery.com>
3915
3916 * c-common.h (do_warn_double_promotion): Declare.
3917 * c-common.c (do_warn_double_promotion): Define.
3918
0a0b3574
MM
39192010-09-05 Mark Mitchell <mark@codesourcery.com>
3920
3921 * c.opt (Wdouble-promotion): New.
3922
d1779886
JM
39232010-09-02 Joseph Myers <joseph@codesourcery.com>
3924
3925 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3926 fvtable-thunks, fxref): Mark no longer supported in help text.
3927
2d2bd949
JM
39282010-09-02 Joseph Myers <joseph@codesourcery.com>
3929
3930 * c.opt (Wimport, fall-virtual, falt-external-templates,
3931 fdefault-inline, fenum-int-equiv, fexternal-templates,
3932 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3933 fname-mangling-version-, fnew-abi, fnonnull-objects,
3934 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3935 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3936 applicable.
3937 (fhandle-exceptions): Mark with Alias and Warn.
3938 * c-opts.c (c_common_handle_option): Don't handle options marked
3939 as ignored.
3940
5de8299c
JM
39412010-09-02 Joseph Myers <joseph@codesourcery.com>
3942
3943 * c.opt (Wcomments, Werror-implicit-function-declaration,
3944 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3945 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3946 aliases.
3947 * c-common.c (option_codes): Use OPT_Wcomment instead of
3948 OPT_Wcomments.
3949 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3950 Don't handle options marked as aliases.
3951
0ceb0201
RG
39522010-08-25 Richard Guenther <rguenther@suse.de>
3953
3954 * c-common.c (c_common_get_alias_set): Remove special
3955 handling for pointers.
3956
ac47786e
NF
39572010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3958
3959 * c-common.c: Use FOR_EACH_VEC_ELT.
3960 * c-gimplify.c: Likewise.
3961 * c-pragma.c: Likewise.
3962
c878765b
JM
39632010-08-16 Joseph Myers <joseph@codesourcery.com>
3964
3965 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3966 RejectDriver.
3967 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3968 RejectDriver.
3969 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3970 instead of OPT_MDX and OPT_MMDX.
3971
603349bf
JM
39722010-08-16 Joseph Myers <joseph@codesourcery.com>
3973
3974 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3975
644fa7ac
JM
39762010-08-12 Joseph Myers <joseph@codesourcery.com>
3977
3978 * c.opt (MD, MMD): Change to MDX and MMDX.
3979 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3980
481e1176
JM
39812010-08-11 Joseph Myers <joseph@codesourcery.com>
3982
3983 * c-opts.c (c_common_handle_option): Call handle_generated_option
3984 instead of handle_option.
3985
ac8dc9f7
NF
39862010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3987
3988 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3989 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3990
4f8c876d
NF
39912010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3992
3993 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3994 (pending_redefine_extname): Change type to a VEC.
3995 (add_to_renaming_pragma_list): Update for new type of
3996 pending_redefine_extname.
ac8dc9f7 3997 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3998
3b0c690e
AC
39992010-08-04 Arnaud Charlet <charlet@adacore.com>
4000
4001 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4002 visited.
4003 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4004 decide whether a type has already been declared/seen.
4005 Do not go to the original type.
4006 (dump_nested_types): New parameter forward.
4007 Generate forward declaration if needed and mark type as visited.
4008 (print_ada_declaration): Call dump_nested_types if not already done.
4009 Mark types as visited.
4010
1890bccc
JM
40112010-08-03 Joseph Myers <joseph@codesourcery.com>
4012
4013 * c.opt (-print-pch-checksum): Remove option.
4014 * c-opts.c (c_common_handle_option): Don't handle
4015 OPT_print_pch_checksum.
4016
5f20c657
JM
40172010-07-27 Joseph Myers <joseph@codesourcery.com>
4018
4019 * c-common.h (c_common_handle_option): Update prototype and return
4020 value type.
4021 * c-opts.c (c_common_handle_option): Update prototype and return
4022 value type. Update calls to handle_option and
4023 enable_warning_as_error.
4024
f551f80c
JJ
40252010-07-27 Jakub Jelinek <jakub@redhat.com>
4026
4027 PR c/45079
4028 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4029
61ff2bdc
JM
40302010-07-27 Joseph Myers <joseph@codesourcery.com>
4031
4032 * c-common.h (c_common_missing_argument): Remove.
4033 * c-opts.c (c_common_missing_argument): Remove.
4034 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4035 idirafter, imacros, include, isysroot, isystem, iquote): Add
4036 MissingArgError.
4037 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4038
7a9bf9a4
JM
40392010-07-27 Joseph Myers <joseph@codesourcery.com>
4040
4041 * c-common.h (c_common_option_lang_mask,
4042 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4043 New.
4044 (c_common_init_options): Update prototype.
4045 * c-opts.c (c_common_option_lang_mask): New.
4046 (c_common_initialize_diagnostics): Split out of
4047 c_common_init_options.
4048 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4049 New.
4050 (c_common_init_options): Update prototype. Use decoded options in
4051 search for -lang-asm.
4052
910ad8de
NF
40532010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4054
4055 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4056 * c-format.c: Likewise.
4057
718f9c0f
MLI
40582010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4059
4060 * c-common.h: Include diagnostic-core.h. Error if already
4061 included.
4062 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4063
4d451982
MLI
40642010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4065
4066 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
4067 Do not include expr.h
4068 (vector_mode_valid_p): Move here.
4069
119fe915
SB
40702010-06-21 DJ Delorie <dj@redhat.com>
4071
4072 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4073 allow these pragmas anywhere.
4074
40752010-06-14 Jakub Jelinek <jakub@redhat.com>
4076
4077 PR bootstrap/44509
4078 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4079 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4080 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4081 ggc_strdup instead of xstrdup.
4082
40832010-06-10 Jakub Jelinek <jakub@redhat.com>
4084
4085 * c-cppbuiltin.c: Include cpp-id-data.h.
4086 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4087 (lazy_hex_fp_value): New function.
4088 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4089
6662d794
MLI
40902010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4091
4092 * c-gimplify.c: Do not include tree-flow.h
4093
38f8b050
JR
40942010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4095
4096 PR other/44034
4097 * c-common.c: Rename targetm member:
4098 targetm.enum_va_list -> targetm.enum_va_list_p
4099
9589f23e
AS
41002010-06-28 Anatoly Sokolov <aesok@post.ru>
4101
4102 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4103
3b06d379
SB
41042010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4105
4106 * c-cppbuiltin.c: Do not include except.h.
4107
d166d4c3
AK
41082010-06-24 Andi Kleen <ak@linux.intel.com>
4109
9faeb493
UB
4110 * c-common.c (warn_for_omitted_condop): New.
4111 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 4112
70cb8be6
JM
41132010-06-21 Joseph Myers <joseph@codesourcery.com>
4114
4115 * c.opt (lang-objc): Remove.
4116 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4117
a4c97feb
JR
41182010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4119
4120 * c-opts.c: Include "tm_p.h".
4121
6e2f1956
JM
41222010-06-20 Joseph Myers <joseph@codesourcery.com>
4123
4124 * c-common.c (parse_optimize_options): Update call to
4125 decode_options.
4126
bc87224e
NF
41272010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4128
4129 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4130 new type of types_used_by_cur_var_decl.
4131
b49cf425
JR
41322010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4133
4134 PR bootstrap/44512
4135 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4136 for C++ standard compliance.
4137
59f9c2ed
JM
41382010-06-16 Jason Merrill <jason@redhat.com>
4139
4140 * c.opt: Add -Wnoexcept.
4141
33766b66
RG
41422010-06-16 Richard Guenther <rguenther@suse.de>
4143
4144 PR c/44555
4145 * c-common.c (c_common_truthvalue_conversion): Remove
4146 premature and wrong optimization concering ADDR_EXPRs.
4147
eff7e30c
AC
41482010-06-15 Arnaud Charlet <charlet@adacore.com>
4149
4150 * c-ada-spec.c (dump_sloc): Remove column info.
4151 (is_simple_enum): New function.
4152 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4153 enum types when relevant.
4154
6312e84d
MLI
41552010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4156
9faeb493 4157 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
4158 location.
4159
1cb42611
JM
41602010-06-10 Joseph Myers <joseph@codesourcery.com>
4161
4162 * c-opts.c (c_common_handle_option): Don't handle
4163 OPT_fshow_column.
4164
a9429e29
LB
41652010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4166
4167 * c-pragma.c (push_alignment): Use typed GC allocation.
4168 (handle_pragma_push_options): Likewise.
4169
4170 * c-common.c (parse_optimize_options): Likewise.
4171
4172 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4173 option.
4174
5498f011
JM
41752010-06-07 Joseph Myers <joseph@codesourcery.com>
4176
4177 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4178 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4179 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4180 flag_signed_bitfields, warn_strict_null_sentinel,
4181 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4182 flag_gen_declaration, flag_no_gnu_keywords,
4183 flag_implement_inlines, flag_implicit_templates,
4184 flag_implicit_inline_templates, flag_optional_diags,
4185 flag_elide_constructors, flag_default_inline, flag_rtti,
4186 flag_conserve_space, flag_access_control, flag_check_new,
4187 flag_new_for_scope, flag_weak, flag_working_directory,
4188 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4189 flag_enforce_eh_specs, flag_threadsafe_statics,
4190 flag_pretty_templates): Remove.
4191 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4192 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4193 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4194 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4195 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4196 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4197 flag_no_gnu_keywords, flag_implement_inlines,
4198 flag_implicit_templates, flag_implicit_inline_templates,
4199 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4200 flag_rtti, flag_conserve_space, flag_access_control,
4201 flag_check_new, flag_new_for_scope, flag_weak,
4202 flag_working_directory, flag_use_cxa_atexit,
4203 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4204 flag_threadsafe_statics, flag_pretty_templates,
4205 warn_strict_null_sentinel): Remove.
4206 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4207 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4208 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4209 fimplicit-inline-templates, fimplicit-templates,
4210 flax-vector-conversions, fms-extensions, fnil-receivers,
4211 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4212 frtti, fshort-double, fshort-enums, fshort-wchar,
4213 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4214 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4215 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4216 gen-decls, undef): Use Var.
4217 (fdefault-inline, foptional-diags): Document as doing nothing.
4218 * c-opts.c (c_common_handle_option): Remove cases for options now
4219 using Var. Mark ignored options as such.
4220
39dabefd
SB
42212010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4222
9faeb493 4223 * c-common.c: Moved to here from parent directory.
39dabefd
SB
4224 * c-common.def: Likewise.
4225 * c-common.h: Likewise.
4226 * c-cppbuiltin.c: Likewise.
4227 * c-dump.c: Likewise.
4228 * c-format.c: Likewise.
4229 * c-format.h : Likewise.
4230 * c-gimplify.c: Likewise.
4231 * c-lex.c: Likewise.
4232 * c-omp.c: Likewise.
4233 * c.opt: Likewise.
4234 * c-opts.c: Likewise.
4235 * c-pch.c: Likewise.
4236 * c-ppoutput.c: Likewise.
4237 * c-pragma.c: Likewise.
4238 * c-pragma.h: Likewise.
4239 * c-pretty-print.c: Likewise.
4240 * c-pretty-print.h: Likewise.
4241 * c-semantics.c: Likewise.
4242 * stub-objc.c: Likewise.
4243
4244 * c-common.c: Include gt-c-family-c-common.h.
4245 * c-pragma.c: Include gt-c-family-c-pragma.h.
4246\f
23a5b65a 4247Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
4248
4249Copying and distribution of this file, with or without modification,
4250are permitted in any medium without royalty provided the copyright
4251notice and this notice are preserved.