]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
Add header guard to several header files.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
737a4826
MLI
12014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2
3 * c.opt (Wpsabi): Use LangEnabledBy.
4 * c-opts.c (c_common_handle_option): Do not handle here.
5
8cc4b7a2
JM
62014-09-12 Joseph Myers <joseph@codesourcery.com>
7
8 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
9 macros for floating-point modes.
10
179b5a55
MG
112014-09-11 Marc Glisse <marc.glisse@inria.fr>
12
13 PR target/58757
14 * c-cppbuiltin.c (builtin_define_float_constants): Correct
15 __*_DENORM_MIN__ without denormals.
16
570a11fe
JJ
172014-09-10 Jakub Jelinek <jakub@redhat.com>
18
19 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
20 ubsan_instrument_vla, ubsan_instrument_return): Adjust
21 ubsan_create_data callers.
22 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
23 index is constant or BIT_AND_EXPR with constant mask and is
24 small enough for the bound.
25 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
26 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
27
b559c810
MLI
282014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
29
30 * c.opt: Add CppReason to various flags.
31 (Wdate-time): Re-sort.
32 * c-common.c: Include c-common.h earlier.
33 (struct reason_option_codes_t): Delete.
34 (c_option_controlling_cpp_error): Prefix global type and struct
35 with cpp_.
36
1ef33fd4
MLI
372014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
38
39 * c.opt (Wnormalized): New.
40 (Wnormalized=): Use Enum and Reject Negative.
41 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
42
66bb34c0
JM
432014-09-08 Joseph Myers <joseph@codesourcery.com>
44
45 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
46 digits of floating-point modes if -fbuilding-libgcc.
47
53d68b9f
JM
482014-09-05 Joseph Myers <joseph@codesourcery.com>
49
50 * c-cppbuiltin.c (c_cpp_builtins): Also define
51 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
52 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
53 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
54 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
55 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
56 __LIBGCC_STACK_GROWS_DOWNWARD__,
57 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
58 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
59 __LIBGCC_DWARF_FRAME_REGISTERS__,
60 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
61 __LIBGCC_STACK_POINTER_REGNUM__ and
62 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
63 (builtin_define_with_value): Handle backslash-escaping in string
64 macro values.
65
f65586dc
RB
662014-09-05 Richard Biener <rguenther@suse.de>
67
68 PR middle-end/63148
69 * c-format.c (check_format_arg): Properly handle
70 effectively signed POINTER_PLUS_EXPR offset.
71
2b71f4a4
MLI
722014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
73
74 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
75 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
76 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
77 and Init.
78 * c-opts.c (c_common_handle_option): Do not handle here.
79 (sanitize_cpp_opts): Likewise.
80 * c-common.c (struct reason_option_codes_t): Handle
81 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
82
d2e4feca
MP
832014-09-03 Marek Polacek <polacek@redhat.com>
84
85 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
86
9a771876
JJ
872014-09-02 Jakub Jelinek <jakub@redhat.com>
88 Balaji V. Iyer <balaji.v.iyer@intel.com>
89 Igor Zamyatin <igor.zamyatin@intel.com>
90
91 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
92 * c-common.c (c_common_reswords): Added _Cilk_for.
93 * c-common.h (enum rid): Added RID_CILK_FOR.
94 (cilk_for_number_of_iterations): Add declaration.
95 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
96 CILK_FOR.
97 * c-pragma.c (init_pragma): Register "grainsize" pragma.
98 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
99
81b5d104
MLI
1002014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
101
102 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
103 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
104 Wundef): Use CPP, Var and Init.
105 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
106
b753b37b
MLI
1072014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
108
109 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
110 * c-opts.c (c_common_handle_option): Do not handle here.
111
028aee17
JM
1122014-08-25 Jason Merrill <jason@redhat.com>
113
114 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
115 -std=c++14 and -std=gnu++14, rather than the reverse.
116 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
117 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
118 * c-common.h (cxx_dialect): Remove cxx1y.
119
e4276ba5
ESR
1202014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
121
122 * c-common.h (enum cxx_dialect): Add cxx14.
123 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
124 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
125 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
126
a545cacd
JM
1272014-08-22 Jason Merrill <jason@redhat.com>
128
129 * c.opt (std=gnu++17): Fix alias.
130
59ea0364
MP
1312014-08-22 Marek Polacek <polacek@redhat.com>
132
133 PR c++/62199
134 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
135 check for vector types. Drop LHS argument.
136 * c-common.h (warn_logical_not_parentheses): Adjust.
137
596e808c
MLI
1382014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
139
140 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
141 (Wmultichar): Likewise.
142 (Wdate-time): Use C-family languages instead of Common. Use CPP
143 and Var.
144 * c-opts.c (c_common_handle_option): Do not handle the above
145 options here.
146 (sanitize_cpp_opts): Likewise.
147
18767f65
MLI
1482014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
149
150 PR fortran/44054
151 * c-opts.c: Include tree-diagnostics.h.
152 (c_diagnostic_finalizer): New.
153 (c_common_initialize_diagnostics): Use it.
154
b4413594
MLI
1552014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
156
157 PR preprocessor/51303
158 * c-common.c (struct reason_option_codes_t option_codes):
159 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
160
43f9a13c
MLI
1612014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
162
163 PR c/60975
164 PR c/53063
165 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
166 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
167 (c_common_post_options): Call init_global_opts_from_cpp.
168 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
169
04159acf
MP
1702014-08-19 Marek Polacek <polacek@redhat.com>
171
172 PR c++/62153
173 * c-common.c (maybe_warn_bool_compare): New function.
174 * c-common.h (maybe_warn_bool_compare): Declare.
175 * c.opt (Wbool-compare): New option.
176
35aff4fb
MP
1772014-08-19 Marek Polacek <polacek@redhat.com>
178
179 * c.opt (Wc99-c11-compat): New option.
180
177cce46
MP
1812014-08-19 Marek Polacek <polacek@redhat.com>
182
183 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
184 to warn_c90_c99_compat.
185 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
186 to -1.
187
6ae9194f
MLI
1882014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
189 Steven Bosscher <steven@gcc.gnu.org>
190
191 PR c/52952
192 * c-format.c: Add extra_arg_loc and format_string_loc to struct
193 format_check_results.
194 (check_function_format): Use true and add comment for boolean
195 argument.
196 (finish_dollar_format_checking): Use explicit location when warning.
197 (check_format_info): Likewise.
198 (check_format_arg): Set extra_arg_loc and format_string_loc.
199 (check_format_info_main): Use explicit location when warning.
200 (check_format_types): Pass explicit location.
201 (format_type_warning): Likewise.
202
8e54f6d3
MLI
2032014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
204
205 PR fortran/44054
206 * c-format.c: Handle Fortran flags.
207
cd4e76fc
IZ
2082014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
209
210 PR other/61962
211 * array-notation-common.c (find_rank): Added handling for other
212 types of references.
213
f3bede71
MP
2142014-08-10 Marek Polacek <polacek@redhat.com>
215
216 PR c/51849
217 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
218 * c.opt (Wc90-c99-compat): Add option.
219
9f25a338
TS
2202014-08-07 Trevor Saunders <tsaunders@mozilla.com>
221
222 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
223
62e4eb35
MP
2242014-08-03 Marek Polacek <polacek@redhat.com>
225
226 * c-common.c (check_case_value): Add location_t parameter. Use it.
227 (c_add_case_label): Pass loc to check_case_value.
228
b787e7a2
TS
2292014-08-02 Trevor Saunders <tsaunders@mozilla.com>
230
231 * cilk.c: Use hash_map instead of pointer_map.
232
6e2830c3
TS
2332014-08-02 Trevor Saunders <tsaunders@mozilla.com>
234
235 * c-gimplify.c: Use hash_set instead of pointer_set.
236
a7ee52fb
IZ
2372014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
238
239 PR middle-end/61455
240 * array-notation-common.c (extract_array_notation_exprs): Handling
241 of DECL_EXPR added.
242
944fa280
JJ
2432014-08-01 Jakub Jelinek <jakub@redhat.com>
244
245 * c-common.h (min_align_of_type): Removed prototype.
246 * c-common.c (min_align_of_type): Removed.
247 * c-ubsan.h (ubsan_maybe_instrument_reference,
248 ubsan_maybe_instrument_member_call): New prototypes.
249 * c-ubsan.c: Include stor-layout.h and builtins.h.
250 (ubsan_maybe_instrument_reference_or_call,
251 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
252 functions.
253
b4dfdc11
MG
2542014-07-31 Marc Glisse <marc.glisse@inria.fr>
255
256 PR c++/60517
257 * c.opt (-Wreturn-local-addr): Move to common.opt.
258
a41844e5
JM
2592014-07-30 Jason Merrill <jason@redhat.com>
260
261 PR c++/61659
262 PR c++/61687
263 Revert:
264 * c.opt (-fuse-all-virtuals): New.
265
976d5a22
TT
2662014-07-30 Tom Tromey <tromey@redhat.com>
267
268 PR c/59855
269 * c.opt (Wdesignated-init): New option.
270 * c-common.c (c_common_attribute_table): Add "designated_init".
271 (handle_designated_init): New function.
272
cdc94aca
MP
2732014-07-24 Marek Polacek <polacek@redhat.com>
274
275 PR c/57653
276 * c-opts.c (c_finish_options): If -imacros is in effect, return.
277
f41373b6
DS
2782014-07-16 Dodji Seketeli <dodji@redhat.com>
279
280 PR preprocessor/60723 - missing system-ness marks for macro tokens
281 * c-ppoutput.c (struct print::prev_was_system_token): New data
282 member.
283 (init_pp_output): Initialize it.
284 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
285 (do_line_change): Return a flag saying if a line marker was
286 emitted or not.
287 (scan_translation_unit): Detect if the system-ness of the token we
288 are about to emit is different from the one of the previously
289 emitted token. If so, emit a line marker. Avoid emitting useless
290 adjacent line markers. Avoid emitting line markers for tokens
291 originating from the expansion of built-in macros.
292 (scan_translation_unit_directives_only): Adjust.
293
4d661eaa
MP
2942014-07-15 Marek Polacek <polacek@redhat.com>
295
296 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
297 TYPE_MAX_VALUE is NULL.
298
b108f48f
JJ
2992014-07-14 Jakub Jelinek <jakub@redhat.com>
300
301 PR middle-end/61294
302 * c.opt (Wmemset-transposed-args): New warning.
303
c0221884
JM
3042014-07-10 Jason Merrill <jason@redhat.com>
305
306 PR c++/61659
307 PR c++/61687
308 * c.opt (-fuse-all-virtuals): New.
309
63dfbb95
RB
3102014-07-09 Richard Biener <rguenther@suse.de>
311
312 PR c-family/61741
313 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
314 using unsigned arithmetic if overflow does not wrap instead of
315 if overflow is undefined.
316
773ec47f
MP
3172014-07-06 Marek Polacek <polacek@redhat.com>
318
319 PR c/6940
320 * c.opt (Wsizeof-array-argument): New option.
321
00a7ba58
JJ
3222014-07-03 Jakub Jelinek <jakub@redhat.com>
323
324 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
325 comments->count <= 1, as comments->entries might be NULL.
326
52ec0ea3
MP
3272014-07-01 Marek Polacek <polacek@redhat.com>
328
329 * c.opt (Wint-conversion): New option.
330
d5c3d343
MP
3312014-07-01 Marek Polacek <polacek@redhat.com>
332
333 PR c/58286
334 * c.opt (Wincompatible-pointer-types): New option.
335
6e7ceb17
PC
3362014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
337
338 PR c++/51400
339 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
340 Do not discard TYPE_QUALS of type.
341
da73100b
JM
3422014-06-26 Jason Merrill <jason@redhat.com>
343
344 * c-common.h (enum cxx_dialect): Add cxx1z.
345 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
346 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
347
08eedf75
TJ
3482014-06-26 Teresa Johnson <tejohnson@google.com>
349
350 * c-common.h (get_dump_info): Declare.
351 * c-gimplify.c (c_genericize): Use saved dump files.
352 * c-opts.c (c_common_parse_file): Begin and end dumps
353 once around parsing invocation.
354 (get_dump_info): New function.
355
7b56b2f8
MP
3562014-06-23 Marek Polacek <polacek@redhat.com>
357 Andrew MacLeod <amacleod@redhat.com>
358
359 PR c/61553
360 * c-common.c (get_atomic_generic_size): Don't segfault if the
361 type doesn't have a size.
362
0e37a2f3
MP
3632014-06-20 Marek Polacek <polacek@redhat.com>
364
365 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
366 (ubsan_walk_array_refs_r): New function.
367 (c_genericize): Instrument array bounds.
368 * c-ubsan.c: Include "internal-fn.h".
369 (ubsan_instrument_division): Mark instrumented arrays as having
370 side effects. Adjust ubsan_type_descriptor call.
371 (ubsan_instrument_shift): Likewise.
372 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
373 (ubsan_instrument_bounds): New function.
374 (ubsan_array_ref_instrumented_p): New function.
375 (ubsan_maybe_instrument_array_ref): New function.
376 * c-ubsan.h (ubsan_instrument_bounds): Declare.
377 (ubsan_array_ref_instrumented_p): Declare.
378 (ubsan_maybe_instrument_array_ref): Declare.
379
3802014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
381
382 PR lto/61123
383 * c.opt (fshort-enums): Add to LTO.
384 * c.opt (fshort-wchar): Likewise.
385
5c3d09f7
MP
3862014-06-16 Marek Polacek <polacek@redhat.com>
387
388 PR c/60439
389 * c.opt (Wswitch-bool): Add Var.
390
9cf32741
JJ
3912014-06-12 Jakub Jelinek <jakub@redhat.com>
392
393 PR middle-end/61486
394 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
395 #pragma omp target teams or
396 #pragma omp {,target }teams distribute simd.
397
62984918
JM
3982014-06-12 Jason Merrill <jason@redhat.com>
399
400 * c.opt (Wabi=, fabi-compat-version): New.
401 * c-opts.c (c_common_handle_option): Handle -Wabi=.
402 (c_common_post_options): Handle flag_abi_compat_version default.
403 Disallow -fabi-compat-version=1.
404 * c-common.h (abi_version_crosses): New.
405
f961457f
JH
4062014-06-11 Jan Hubicka <hubicka@ucw.cz>
407
408 * c-family/c-common.c (handle_section_attribute): Update handling for
409 section names that are no longer trees.
410
92d28cbb
JJ
4112014-06-10 Jakub Jelinek <jakub@redhat.com>
412
413 PR fortran/60928
414 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
415 (omp_pragmas): ... back here.
416
742938c9
MP
4172014-06-05 Marek Polacek <polacek@redhat.com>
418
419 PR c/49706
420 * c-common.c (warn_logical_not_parentheses): New function.
421 * c-common.h (warn_logical_not_parentheses): Declare.
422 * c.opt (Wlogical-not-parentheses): New option.
423
9d548dfb
MP
4242014-06-04 Marek Polacek <polacek@redhat.com>
425
426 PR c/30020
427 * c-common.c (check_case_bounds): Add location parameter.
428 Use it.
429 (c_add_case_label): Pass loc to check_case_bounds.
430
fedfecef
MP
4312014-06-03 Marek Polacek <polacek@redhat.com>
432
433 PR c/60439
434 * c.opt (Wswitch-bool): New option.
435
f6a7cffc
TS
4362014-05-22 Thomas Schwinge <thomas@codesourcery.com>
437
040d18b6
TS
438 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
439 Remove prototypes.
440 (record_types_used_by_current_var_decl): Move prototype to where
441 it belongs.
442
f6a7cffc
TS
443 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
444 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
445 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
446
632f2871
RS
4472014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
448
449 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
450 * c-common.c (c_common_nodes_and_builtins): Don't initialize
451 void_zero_node.
452 * c-pretty-print.c (pp_c_void_constant): New function.
453 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
454 (c_pretty_printer::expression): Handle VOID_CST.
455 * cilk.c (extract_free_variables): Likewise.
456 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
457 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
458
766090c2
TS
4592014-05-17 Trevor Saunders <tsaunders@mozilla.com>
460
461 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
462 * c-pragma.c (push_alignment): Adjust.
463 (handle_pragma_push_options): Likewise.
464
661a0813
MP
4652014-05-09 Marek Polacek <polacek@redhat.com>
466
467 PR c/50459
468 * c-common.c (check_user_alignment): Return -1 if alignment is error
469 node.
470 (handle_aligned_attribute): Don't call default_conversion on
471 FUNCTION_DECLs.
472 (handle_vector_size_attribute): Likewise.
473 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
474 (handle_sentinel_attribute): Call default_conversion and allow even
475 integral types as an argument.
476
2793eeab
MP
4772014-05-08 Marek Polacek <polacek@redhat.com>
478
479 PR c/61053
480 * c-common.c (min_align_of_type): New function factored out from...
481 (c_sizeof_or_alignof_type): ...here.
482 * c-common.h (min_align_of_type): Declare.
483
f827930a
MP
4842014-05-08 Marek Polacek <polacek@redhat.com>
485
486 PR c/61077
487 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
488 parameter type of main.
489
ca49b74e
DD
4902014-05-07 DJ Delorie <dj@redhat.com>
491
492 * c-cppbuiltin.c (print_bits_of_hex): New.
493 (builtin_define_type_minmax): Print values using hex so as not to
494 require a pre-computed list of string values.
495
1d60af08
KZ
4962014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
497 Mike Stump <mikestump@comcast.net>
498 Richard Sandiford <rdsandiford@googlemail.com>
499
500 * c-ada-spec.c: Include wide-int.h.
501 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
502 (dump_generic_ada_node): Use wide-int interfaces.
503 * c-common.c: Include wide-int-print.h.
504 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
505 (pointer_int_sum): Use wide-int interfaces.
506 (c_common_nodes_and_builtins): Use make_int_cst.
507 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
508 (handle_alloc_size_attribute): Use wide-int interfaces.
509 (get_nonnull_operand): Likewise.
510 * c-format.c (get_constant): Use tree_fits_uhwi_p.
511 * c-lex.c: Include wide-int.h.
512 (narrowest_unsigned_type): Take a widest_int rather than two
513 HOST_WIDE_INTs.
514 (narrowest_signed_type): Likewise.
515 (interpret_integer): Update accordingly. Use wide-int interfaces.
516 (lex_charconst): Use wide-int interfaces.
517 * c-pretty-print.c: Include wide-int.h.
518 (pp_c_integer_constant): Use wide-int interfaces.
519 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
520 INT_CST_LT_UNSIGNED.
521
b15458be
RB
5222014-05-06 Richard Biener <rguenther@suse.de>
523
524 * c-opts.c (c_common_post_options): For -freestanding,
525 -fno-hosted and -fno-builtin disable pattern recognition
526 if not enabled explicitely.
527
6577374e
MP
5282014-05-02 Marek Polacek <polacek@redhat.com>
529
530 * c.opt (Wsizeof-pointer-memaccess): Describe option.
531
d00887e8
MP
5322014-05-01 Marek Polacek <polacek@redhat.com>
533
534 PR c/43245
535 * c.opt (Wdiscarded-qualifiers): Add.
536
f8ed5150
MP
5372014-04-30 Marek Polacek <polacek@redhat.com>
538
539 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
540 INT_MIN / -1 sanitization only for integer types.
541
45484dcf
MP
5422014-04-25 Marek Polacek <polacek@redhat.com>
543
544 PR c/18079
545 * c-common.c (handle_noinline_attribute): Warn if the attribute
546 conflicts with always_inline attribute.
547 (handle_always_inline_attribute): Warn if the attribute conflicts
548 with noinline attribute.
549
38e514c0
MP
5502014-04-25 Marek Polacek <polacek@redhat.com>
551
552 PR c/60156
553 * c-common.c (check_main_parameter_types): Warn about variadic main.
554
44875f92
MS
5552014-04-24 Mike Stump <mikestump@comcast.net>
556
557 * c.opt (Wshadow-ivar): Default to on.
558
dcaaa5a0
DP
5592014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
560
561 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
562
c07d7c02
MP
5632014-04-23 Marek Polacek <polacek@redhat.com>
564
565 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
566
1c33c9b7
JJ
5672014-04-22 Jakub Jelinek <jakub@redhat.com>
568
569 PR sanitizer/60275
570 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
571 if flag_sanitize_undefined_trap_on_error.
572 (ubsan_instrument_division, ubsan_instrument_shift,
573 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
574 if !flag_sanitize_recover.
575
793c625f
MG
5762014-04-22 Marc Glisse <marc.glisse@inria.fr>
577
578 PR libstdc++/43622
579 * c-common.c (registered_builtin_types): Make non-static.
580 * c-common.h (registered_builtin_types): Declare.
581
b0f1bf36
RB
5822014-04-14 Richard Biener <rguenther@suse.de>
583 Marc Glisse <marc.glisse@inria.fr>
584
585 PR c/60819
586 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
587 apply may-alias the scalar pointer type when applicable.
588
3b07fa4a
IZ
5892014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
590
591 PR middle-end/60467
592 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
593 as possible argument for Cilk_spawn.
594
cbbd2b1c
TB
5952014-04-11 Tobias Burnus <burnus@net-b.de>
596
597 PR c/60194
598 * c.opt (Wformat-signedness): Add
599 * c-format.c(check_format_types): Use it.
600
6415bd5d
JM
6012014-04-11 Jason Merrill <jason@redhat.com>
602
603 PR c++/57926
604 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
605 default_conversion for an array argument.
606
6525783a
MP
6072014-04-08 Marek Polacek <polacek@redhat.com>
608
609 PR sanitizer/60745
610 * c-ubsan.c: Include asan.h.
611 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
612
880a467b
NS
6132014-04-03 Nathan Sidwell <nathan@codesourcery.com>
614
615 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
616
7b59ff2d
MP
6172014-04-02 Marek Polacek <polacek@redhat.com>
618
619 * c-common.h (c_expand_expr): Remove declaration.
620
8edbfaa6
JJ
6212014-03-28 Jakub Jelinek <jakub@redhat.com>
622
623 PR c++/60689
624 * c-common.c (add_atomic_size_parameter): When creating new
625 params vector, push the size argument first.
626
07d72e1d
JJ
6272014-03-26 Jakub Jelinek <jakub@redhat.com>
628
629 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
630 ubsan_instrument_vla, ubsan_instrument_return): Adjust
631 ubsan_create_data callers.
632
b35e0fa0
JJ
6332014-03-22 Jakub Jelinek <jakub@redhat.com>
634
635 PR debug/60603
636 * c-opts.c (c_finish_options): Restore cb_file_change call to
637 <built-in>.
638
39a1ebb3
JJ
6392014-03-13 Jakub Jelinek <jakub@redhat.com>
640
641 PR middle-end/36282
642 * c-pragma.c (apply_pragma_weak): Only look at
643 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
644 DECL_ASSEMBLER_NAME_SET_P (decl).
645 (maybe_apply_pending_pragma_weaks): Exit early if
646 vec_safe_is_empty (pending_weaks) rather than only when
647 !pending_weaks.
648 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
649 set assembler name back to NULL afterwards.
650
a07f6ed2
JM
6512014-03-11 Jason Merrill <jason@redhat.com>
652
653 * c.opt: Add -std=gnu++14.
654
75b107f5
IB
6552014-03-11 Ian Bolton <ian.bolton@arm.com>
656
657 * c-opts.c (c_common_post_options): Don't override
658 -ffp-contract=fast if unsafe-math-optimizations is on.
659
f42c637e
PM
6602014-03-08 Paulo Matos <paulo@matos-sorge.com>
661
662 * c.opt: Enable LTO FE for fshort-double.
663
70e24808
JM
6642014-03-07 Jason Merrill <jason@redhat.com>
665
666 * c.opt: Add -std=c++14.
667
3af9c5e9
MP
6682014-03-06 Marek Polacek <polacek@redhat.com>
669
670 PR c/60197
671 * cilk.c (contains_cilk_spawn_stmt): New function.
672 (contains_cilk_spawn_stmt_walker): Likewise.
673 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
674 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
675
b3bdf019
JJ
6762014-03-03 Jakub Jelinek <jakub@redhat.com>
677
678 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
679 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
680 even when flag_preprocess_only.
681
ca7e759d
JM
6822014-02-26 Jason Merrill <jason@redhat.com>
683
684 PR c++/59231
685 PR c++/11586
686 * c-common.c (shorten_compare): Don't check
687 c_inhibit_evaluation_warnings.
688
28e41874
JJ
6892014-02-19 Jakub Jelinek <jakub@redhat.com>
690
cca615af
JJ
691 PR c/37743
692 * c-common.c (c_common_nodes_and_builtins): When initializing
693 c_uint{16,32,64}_type_node, also set corresponding
694 uint{16,32,64}_type_node to the same value.
695
28e41874
JJ
696 PR c++/60267
697 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
698 for PRAGMA_IVDEP if flag_preprocess_only.
699
c2bf53a1
JJ
7002014-02-12 Jakub Jelinek <jakub@redhat.com>
701
702 PR c/60101
703 * c-common.c (merge_tlist): If copy is true, call new_tlist,
704 if false, add ADD itself, rather than vice versa.
705 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
706 copy. For SAVE_EXPR, only call merge_tlist once.
707
8fcbce72
JJ
7082014-02-08 Jakub Jelinek <jakub@redhat.com>
709
710 PR middle-end/60092
711 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
712 and tree_to_uhwi.
713 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
714 functions.
715 (c_common_attribute_table): Add alloc_align and assume_aligned
716 attributes.
717
0a756a3f
MP
7182014-02-06 Marek Polacek <polacek@redhat.com>
719
720 PR c/60087
721 * c-common.c (warn_for_sign_compare): Call warning_at with location
722 instead of warning.
723
7ec4847a
MP
7242014-02-05 Marek Polacek <polacek@redhat.com>
725
726 PR c/53123
727 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
728 statement.
729
66f20604
MP
7302014-02-04 Marek Polacek <polacek@redhat.com>
731
732 PR c/60036
733 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
734 SAVE_EXPR.
735
5d77fb19
MG
7362014-02-03 Marc Glisse <marc.glisse@inria.fr>
737
738 PR c++/53017
739 PR c++/59211
740 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
741 handle_vector_size_attribute, handle_nonnull_attribute): Call
742 default_conversion on the attribute argument.
743 (handle_nonnull_attribute): Increment the argument number.
744
81e5eca8
MP
7452014-01-31 Marek Polacek <polacek@redhat.com>
746
747 PR c/59963
748 * c-common.c (add_atomic_size_parameter): Pass vNULL to
749 build_function_call_vec.
750 (resolve_overloaded_builtin): Likewise.
751 * c-common.h (build_function_call_vec): Adjust declaration.
752
68fca595
MP
7532014-01-30 Marek Polacek <polacek@redhat.com>
754
755 PR c/59940
756 * c-common.h (unsafe_conversion_p): Adjust declaration.
757 (warnings_for_convert_and_check): Likewise.
758 (convert_and_check): Likewise.
759 * c-common.c (unsafe_conversion_p): Add location parameter. Call
760 expansion_point_location_if_in_system_header on it.
761 (warnings_for_convert_and_check): Add location parameter. Call
762 expansion_point_location_if_in_system_header on it. Use it.
763 (convert_and_check): Add location parameter. Use it.
764 (conversion_warning): Likewise.
765 (c_add_case_label): Adjust convert_and_check calls.
766 (scalar_to_vector): Adjust unsafe_conversion_p calls.
767
b72271b9
BI
7682014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
769
770 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
771 flag_cilkplus.
772 * c-pragma.c (init_pragma): Likewise.
773 * c.opt: Likewise.
774
393e8e8b
MP
7752014-01-23 Marek Polacek <polacek@redhat.com>
776
777 PR c/59846
778 * c-common.c (shorten_compare): Add location_t parameter.
779 * c-common.h (shorten_binary_op): Adjust declaration.
780
f04dda30
MP
7812014-01-23 Marek Polacek <polacek@redhat.com>
782
783 PR c/58346
784 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
785 * c-common.h: Declare it.
786
621955cb
EB
7872014-01-20 Eric Botcazou <ebotcazou@adacore.com>
788
789 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
790 * c-ada-spec.c (dump_ads): Likewise.
791 (cpp_check): Likewise.
792 (dump_ada_specs): Likewise.
793
7942014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
795
796 PR c++/49718
797 * c-common.c (handle_no_instrument_function_attribute): Allow
798 no_instrument_function attribute in class member
799 definition/declaration.
800
241f845a
JJ
8012014-01-15 Jakub Jelinek <jakub@redhat.com>
802
803 PR c/58943
804 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
805 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
806 being COMPOUND_EXPR.
807 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
808 operand a SAVE_EXPR and second MODIFY_EXPR.
809
e83b8e2e
JJ
8102014-01-09 Jakub Jelinek <jakub@redhat.com>
811
812 PR target/58115
813 * c-pch.c (c_common_write_pch): Call
814 prepare_target_option_nodes_for_pch.
815
23a5b65a
RS
8162014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
817
818 Update copyright years
819
f9030485
RS
8202014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
821
822 * array-notation-common.c, c-cilkplus.c: Use the standard form for
823 the copyright notice.
824
f2aa696b
EB
8252013-12-28 Eric Botcazou <ebotcazou@adacore.com>
826
827 * c-ada-spec.c (print_constructor): New function.
828 (print_destructor): Retrieve the origin of the destructor.
829 (print_ada_declaration): Revamp handling of constructors/destructors.
830
1f26ac87
JM
8312013-12-23 Stuart Hastings <stuart@apple.com>
832 Bill Maddox <maddox@google.com>
833 Jason Merrill <jason@redhat.com>
834
835 * c.opt: Add -fdeclone-ctor-dtor.
836 * c-opts.c (c_common_post_options): Default to on iff -Os.
837
41958c28
BI
8382013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
839
840 * c-common.c (c_common_attribute_table): Added "cilk simd function"
841 attribute.
842 * c-pragma.h (enum pragma_cilk_clause): Remove.
843 (enum pragma_omp_clause): Added the following fields:
844 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
845 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
846 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
847 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
848 PRAGMA_CILK_CLAUSE_UNIFORM.
849
850
12893402
BI
8512013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
852
853 * cilk.c (cilk_outline): Made this function non-static.
854 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
855 (create_cilk_wrapper): Added a new parameter: a function pointer.
856 (c_install_body_w_frame_cleanup): Remove
857 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
858 * c-common.h (cilk_outline): New prototype.
859 (gimplify_cilk_spawn): Removed two parameters.
860 (cilk_install_body_with_frame_cleanup): New prototype.
861 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
862 CILK_SPAWN_STMT case.
863
085b42ed
BS
8642013-12-11 Bernd Schmidt <bernds@codesourcery.com>
865
2ce064c3
BS
866 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
867
085b42ed
BS
868 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
869 (int_array_type_node): Remove.
870 * c-common.c (c_common_nodes_and_builtins): Don't build it.
871
9e36c9ed
MP
8722013-12-05 Marek Polacek <polacek@redhat.com>
873
874 PR c/52023
875 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
876 [ADJUST_FIELD_ALIGN].
877
296674db
JM
8782013-12-04 Joseph Myers <joseph@codesourcery.com>
879
880 PR c/52023
881 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
882 and check field alignment if set.
883 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
884 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
885
31e071ae
MP
8862013-12-04 Jakub Jelinek <jakub@redhat.com>
887 Marek Polacek <polacek@redhat.com>
888
889 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
890 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
891
d7947e19
L
8922013-11-29 H.J. Lu <hongjiu.lu@intel.com>
893
894 PR c/59309
895 * cilk.c (gimplify_cilk_spawn): Properly handle function without
896 arguments.
897
fad7652e
JJ
8982013-11-29 Jakub Jelinek <jakub@redhat.com>
899
900 PR c/59280
901 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
902 goto invalid. If it is error_mark_node, don't issue further
903 diagnostics.
904
8b5e1202
SO
9052013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
906
907 * c.opt (Wopenmp-simd): New.
908
0a508bb6
JJ
9092013-11-22 Jakub Jelinek <jakub@redhat.com>
910
911 * c-ubsan.h (ubsan_instrument_return): New prototype.
912 * c-ubsan.c (ubsan_instrument_return): New function.
913
2fb9a547
AM
9142013-11-22 Andrew MacLeod <amacleod@redhat.com>
915
916 * c-common.c: Add required include files from gimple.h.
917 * c-gimplify.c: Likewise
918 * cilk.c: Likewise
919
8400e75e
DM
9202013-11-22 David Malcolm <dmalcolm@redhat.com>
921
922 * c-common.c (unsafe_conversion_p): Remove use of
923 EXPR_LOC_OR_HERE macro.
924 (conversion_warning): Likewise.
925 (warnings_for_convert_and_check): Likewise.
926 (warn_for_collisions_1): Likewise.
927 (shorten_compare): Likewise, and remove use of in_system_header
928 macro, using the location from the former.
929 * c-lex.c (dump_one_header): Remove use of input_filename macro.
930 (cb_def_pragma): Remove use of in_system_header macro.
931 (lex_string): Likewise.
932 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
933
eb1ce453
KZ
9342013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
935 Mike Stump <mikestump@comcast.net>
936 Richard Sandiford <rdsandiford@googlemail.com>
937
938 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
939 instead of TREE_INT_CST_LOW, in cases where there is a protecting
940 tree_fits_shwi_p or tree_fits_uhwi_p.
941 (dump_generic_ada_node): Likewise.
942 * c-format.c (check_format_arg): Likewise.
943 * c-pretty-print.c (pp_c_integer_constant): Likewise.
944
6b3b8c27
KZ
9452013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
946
947 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
948
49b0aa18
JC
9492013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
950
951 PR c/53001
952 * c-common.c (unsafe_conversion_p): Make this function
953 return an enumeration with more detail.
954 (conversion_warning): Use the new return type of
955 unsafe_conversion_p to separately warn either about conversions
956 that lower floating point number precision or about the other
957 kinds of conversions.
958 * c-common.h (enum conversion_safety): New enumeration.
959 (unsafe_conversion_p): switching return type to
960 conversion_safety enumeration.
961 * c.opt: Adding new warning -Wfloat-conversion and
962 enabling it with -Wconversion.
963
b826515a
BS
9642013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
965
966 * c-opts.c: Include plugin.h.
967 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
968
b9a55b13
MP
9692013-11-19 Marek Polacek <polacek@redhat.com>
970
971 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
972 call.
973 (ubsan_instrument_shift): Likewise.
974 (ubsan_instrument_vla): Likewise.
975
7d362f6c
RS
9762013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
977
978 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
979 cast to unsigned type.
980
386b1f1f
RS
9812013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
982
983 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
984 tree_low_cst.
985 (complete_array_type): Update comment to refer to tree_to_[su]hwi
986 rather than tree_low_cst.
987
ae7e9ddd
RS
9882013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
989
990 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
991 tree_to_uhwi throughout.
992
9439e9a1
RS
9932013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
994
995 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
996 tree_low_cst (..., 0) with tree_to_shwi throughout.
997
cc269bb6
RS
9982013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
999
1000 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1001 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1002
9541ffee
RS
10032013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1004
1005 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1006 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1007
c02065fc
AH
10082013-11-15 Aldy Hernandez <aldyh@redhat.com>
1009
1010 * c-cilkplus.c: New file.
1011 * c-common.c (readonly_error): Add location argument.
1012 * c-common.h (readonly_error): Same.
1013 (c_finish_cilk_clauses): Protoize.
1014 (c_check_cilk_loop): Same.
1015 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1016 Do not fail on error_mark_node.
1017 Abstract increment canonicalization to here...
1018 (c_omp_for_incr_canonicalize_ptr): New.
1019 c-pragma.c (init_pragma): Register "simd" pragma.
1020 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1021 (enum pragma_cilk_clause): New.
1022
9cc65f15
RS
10232013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1024
1025 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1026 wchar_type and host_integerp checks.
1027
18f429e2
AM
10282013-11-14 Andrew MacLeod <amacleod@redhat.com>
1029
1030 * c-common.c: Likewise.
1031 * c-gimplify.c: Likewise.
1032 * cilk.c: Likewise.
1033
d8a2d370
DN
10342013-11-14 Diego Novillo <dnovillo@google.com>
1035
1036 * c-common.c: Include fold-const.h.
1037 Include stor-layout.h.
1038 Include calls.h.
1039 Include stringpool.h.
1040 Include attribs.h.
1041 Include varasm.h.
1042 Include trans-mem.h.
1043 * c-cppbuiltin.c: Include stor-layout.h.
1044 Include stringpool.h.
1045 * c-format.c: Include stringpool.h.
1046 * c-lex.c: Include stringpool.h.
1047 Include stor-layout.h.
1048 * c-pragma.c: Include stringpool.h.
1049 Include attribs.h.
1050 Include varasm.h.
1051 Include gcc-symtab.h.
1052 * c-pretty-print.c: Include stor-layout.h.
1053 Include attribs.h.
1054 * cilk.c: Include stringpool.h.
1055 Include calls.h.
1056
38b7bc7f
JM
10572013-11-13 Joseph Myers <joseph@codesourcery.com>
1058
1059 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1060 * c-common.c (c_common_reswords): Add __auto_type.
1061 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1062
45b0be94
AM
10632013-11-12 Andrew MacLeod <amacleod@redhat.com>
1064
18f429e2
AM
1065 * c-common.c: Include gimplify.h.
1066 * c-gimplify.c: Likewise.
1067 * cilk.c: Likewise.
1068 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1069 * c-ubsan.c: Don't include gimple.h.
45b0be94 1070
582d9b50
JM
10712013-11-12 Joseph Myers <joseph@codesourcery.com>
1072
1073 * c-common.c (c_common_reswords): Add _Thread_local.
1074
6b28e197
JM
10752013-11-09 Joseph Myers <joseph@codesourcery.com>
1076
1077 * c-common.c (atomic_size_supported_p): New function.
1078 (resolve_overloaded_atomic_exchange)
1079 (resolve_overloaded_atomic_compare_exchange)
1080 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1081 Use it instead of comparing size with a local list of sizes.
1082
267bac10
JM
10832013-11-07 Andrew MacLeod <amacleod@redhat.com>
1084 Joseph Myers <joseph@codesourcery.com>
1085
1086 * c-common.h (enum rid): Add RID_ATOMIC.
1087 * c-common.c (c_common_reswords): Add _Atomic.
1088 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1089 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1090 * c-format.c (check_format_types): Check for extra _Atomic
1091 qualifiers in format argument.
1092 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1093 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1094
5157b91e
TB
10952013-11-06 Tobias Burnus <burnus@net-b.de>
1096
1097 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1098
6dbe0958
JM
10992013-11-06 Joseph Myers <joseph@codesourcery.com>
1100
1101 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1102 standards modes.
1103 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1104 to mean lack of IEEE 754 support.
1105
e8ff5196
TB
11062013-11-05 Tobias Burnus <burnus@net-b.de>
1107
1108 * c.opt (-Wdate-time): New option
1109 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1110
254a0760
JM
11112013-11-05 Joseph Myers <joseph@codesourcery.com>
1112
1113 * c-cppbuiltin.c (cpp_iec_559_value): Test
1114 flag_excess_precision_cmdline not flag_excess_precision.
1115
6d7f7e0a
TB
11162013-11-05 Tobias Burnus <burnus@net-b.de>
1117
1118 * c.opt (fopenmp-simd): New option.
1119 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1120 (omp_pragmas): ... this new struct.
1121 (c_pp_lookup_pragma): Also walk omp_pragmas.
1122 (init_pragma): Init pragmas for -fopenmp-simd.
1123
55a7f02f
MP
11242013-11-04 Marek Polacek <polacek@redhat.com>
1125
1126 PR c++/58979
1127 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1128
9193fb05
JM
11292013-11-04 Joseph Myers <joseph@codesourcery.com>
1130
1131 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1132 New functions.
1133 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1134
94159ecf
EB
11352013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1136
1137 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1138 (dump_ada_specs): Adjust prototype of second callback.
1139 * c-ada-spec.c (cpp_check): New global variable.
1140 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1141 (print_generic_ada_decl): Likewise.
1142 (has_static_fields): Change return type to bool and add guard.
1143 (has_nontrivial_methods): New predicate.
1144 (is_tagged_type): Change return type to bool.
1145 (separate_class_package): Call has_nontrivial_methods.
1146 (pp_ada_tree_identifier): Minor tweaks.
1147 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1148 (dump_ada_array_domains): Likewise.
1149 (dump_ada_array_type): Likewise.
1150 (dump_template_types): Remove cpp_check parameter and do not pass it to
1151 dump_generic_ada_node.
1152 (dump_ada_template): Likewise.
1153 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1154 recursively.
1155 (print_ada_methods): Change return type to integer. Remove cpp_check
1156 parameter and do not pass it down.
1157 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1158 dump_generic_ada_node.
1159 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1160 accessing methods.
1161 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1162 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1163 value of print_ada_methods.
1164 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1165 Set cpp_check to it before invoking dump_ada_nodes.
1166 (dump_ada_specs): Likewise.
1167
b906f4ca
MP
11682013-11-03 Marek Polacek <polacek@redhat.com>
1169
1170 * c-ubsan.c: Don't include hash-table.h.
1171 (ubsan_instrument_vla): New function.
1172 * c-ubsan.h: Declare it.
1173
5e20cdc9
DM
11742013-10-31 David Malcolm <dmalcolm@redhat.com>
1175
1176 Automated part of renaming of symtab_node_base to symtab_node.
1177
1178 Patch autogenerated by rename_symtab.py from
1179 https://github.com/davidmalcolm/gcc-refactoring-scripts
1180 revision 58bb219cc090b2f4516a9297d868c245495ee622
1181
1182 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1183 symtab_node_base to symtab_node.
1184
7057e645
ESR
11852013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1186
1187 Implement C++14 digit separators.
1188 * c-lex.c (interpret_float): Remove digit separators from scratch string
1189 before building real literal.
1190
193ea7bc
JJ
11912013-10-30 Jakub Jelinek <jakub@redhat.com>
1192
1193 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1194
939b37da
BI
11952013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1196
1197 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1198 fields.
1199 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1200 enabled.
1201 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1202 (insert_cilk_frame): New prototype.
1203 (cilk_init_builtins): Likewise.
1204 (gimplify_cilk_spawn): Likewise.
1205 (c_cilk_install_body_w_frame_cleanup): Likewise.
1206 (cilk_detect_spawn_and_unwrap): Likewise.
1207 (cilk_set_spawn_marker): Likewise.
1208 (build_cilk_sync): Likewise.
1209 (build_cilk_spawn): Likewise.
1210 * cilk.c: New file.
1211
67348ccc
DM
12122013-10-29 David Malcolm <dmalcolm@redhat.com>
1213
1214 Patch autogenerated by refactor_symtab.py from
1215 https://github.com/davidmalcolm/gcc-refactoring-scripts
1216 revision 58bb219cc090b2f4516a9297d868c245495ee622
1217
1218 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1219 to a true class hierarchy.
1220 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1221
d570872d
RS
12222013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1223
1224 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1225
98906124
JL
12262013-10-26 Jeff Law <law@redhat.com>
1227
1228 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1229 * c-family/c.opt: Ignore and warn for mudflap options.
1230
d73749df 12312013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
1232
1233 PR other/33426
1234 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1235 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1236
3f04b1bb
JM
12372013-10-23 Jason Merrill <jason@redhat.com>
1238
1239 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1240
acf0174b
JJ
12412013-10-11 Jakub Jelinek <jakub@redhat.com>
1242
acd15a28
JJ
1243 * c-common.h (omp_clause_mask::operator !=): New method.
1244 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1245 instead of if (mask & something) tests everywhere.
1246
acf0174b
JJ
1247 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1248 201307 instead of 201107.
1249 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1250 (c_common_attribute_table): Add "omp declare target" and
1251 "omp declare simd" attributes.
1252 (handle_omp_declare_target_attribute,
1253 handle_omp_declare_simd_attribute): New functions.
1254 * c-omp.c: Include c-pragma.h.
1255 (c_finish_omp_taskgroup): New function.
1256 (c_finish_omp_atomic): Add swapped argument, if true,
1257 build the operation first with rhs, lhs arguments and use NOP_EXPR
1258 build_modify_expr.
1259 (c_finish_omp_for): Add code argument, pass it down to make_code.
1260 (c_omp_split_clauses): New function.
1261 (c_split_parallel_clauses): Removed.
1262 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1263 c_omp_declare_simd_clauses_to_decls): New functions.
1264 * c-common.h (omp_clause_mask): New type.
1265 (OMP_CLAUSE_MASK_1): Define.
1266 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1267 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1268 omp_clause_mask::operator |, omp_clause_mask::operator &,
1269 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1270 omp_clause_mask::operator ==): New methods.
1271 (enum c_omp_clause_split): New.
1272 (c_finish_omp_taskgroup): New prototype.
1273 (c_finish_omp_atomic): Add swapped argument.
1274 (c_finish_omp_for): Add code argument.
1275 (c_omp_split_clauses): New prototype.
1276 (c_split_parallel_clauses): Removed.
1277 (c_omp_declare_simd_clauses_to_numbers,
1278 c_omp_declare_simd_clauses_to_decls): New prototypes.
1279 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1280 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1281 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1282 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1283 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1284 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1285 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1286 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1287 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1288 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1289 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1290 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1291 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1292 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1293 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1294 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1295 PRAGMA_OMP_CLAUSE_UNIFORM.
1296
826cacfe
MG
12972013-10-09 Marc Glisse <marc.glisse@inria.fr>
1298
1299 PR tree-optimization/20318
1300 * c-common.c (handle_returns_nonnull_attribute): New function.
1301 (c_common_attribute_table): Add returns_nonnull.
1302
2284b034
MG
13032013-10-03 Marc Glisse <marc.glisse@inria.fr>
1304
1305 PR c++/19476
1306 * c.opt (fcheck-new): Move to common.opt.
1307
b56e9788
MP
13082013-09-25 Marek Polacek <polacek@redhat.com>
1309 Jakub Jelinek <jakub@redhat.com>
1310
1311 PR sanitizer/58413
1312 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1313 an expression if we can prove it is correct.
1314 (ubsan_instrument_division): Likewise. Remove unnecessary
1315 check.
1316
ce6923c5
MP
13172013-09-18 Marek Polacek <polacek@redhat.com>
1318
1319 PR sanitizer/58411
1320 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1321 Declare it.
1322 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1323
fb5610fb
IS
13242013-09-14 Iain Sandoe <iain@codesourcery.com>
1325
1326 PR target/48094
1327 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1328 fobjc-gc, freplace-objc-classes): Accept for LTO.
1329
88b0e79e
JC
13302013-09-13 Jacek Caban <jacek@codeweavers.com>
1331
1332 * c-target.def: New hook
1333
c9b0866a
PC
13342013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1335
1336 PR c++/43452
1337 * c.opt (Wdelete-incomplete): Add.
1338
0af94e6f
JR
13392013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1340
1341 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1342 (vector_types_compatible_elements_p): New function.
1343 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1344 declaration.
1345 (vector_types_compatible_elements_p): Declare.
1346
7c26172c
GDR
13472013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1348
1349 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1350 a virtual member function.
1351 (pp_simple_type_specifier): Remove.
1352 (pp_c_type_specifier): Likewise.
1353 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1354 Rename from pp_c_type_specifier. Adjust.
1355 (c_pretty_printer::c_pretty_printer): Do not assign to
1356 simple_type_specifier.
1357
20059c8b
GDR
13582013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1359
1360 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1361 member function.
1362 (c_pretty_printer::storage_class_specifier): Likewise.
1363 (c_pretty_printer::initializer): Likewise.
1364 (pp_declaration): Remove.
1365 (pp_declaration_specifiers): Likewise.
1366 (pp_abstract_declarator): Likewise.
1367 (pp_declarator): Likewise.
1368 (pp_type_id): Likewise.
1369 (pp_statement): Likewise.
1370 (pp_constant): Likewise.
1371 (pp_id_expression): Likewise.
1372 (pp_primary_expression): Likewise.
1373 (pp_unary_expression): Likewise.
1374 (pp_multiplicative_expression): Likewise.
1375 (pp_conditional_expression): Likewise.
1376 (pp_assignment_expression): Likewise.
1377 (pp_expression): Likewise.
1378 (pp_c_type_id): Likewise.
1379 (pp_c_storage_class_specifier): Likewise.
1380 * c-pretty-print.c (pp_c_type_cast): Tidy.
1381 (pp_c_pointer): Likewise.
1382 (pp_c_type_specifier): Likewise.
1383 (pp_c_parameter_type_list): Likewise.
1384 (pp_c_function_definition): Likewise.
1385 (pp_c_init_declarator): Likewise.
1386 (pp_c_initializer_list): Likewise.
1387 (pp_c_constructor_elts): Likewise.
1388 (c_pretty_printer::direct_abstract_declarator): Likewise.
1389 (c_pretty_printer::declaration_specifiers): Likewise.
1390 (c_pretty_printer::primary_expression): Likewise.
1391 (c_pretty_printer::postfix_expression): Likewise.
1392 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1393 (c_pretty_printer::storage_class_specifier): Rename from
1394 pp_c_storage_class_specifier.
1395 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1396 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1397 storage_class_specifier, initializer, offset_list, flags.
1398
de5a5fa1
MP
13992013-08-30 Marek Polacek <polacek@redhat.com>
1400
1401 * c-ubsan.c: New file.
1402 * c-ubsan.h: New file.
1403
8f0e4d72
GDR
14042013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1405
1406 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1407 member function.
1408 (c_pretty_printer::declaration_specifiers): Likewise.
1409 (c_pretty_printer::declarator): Likewise.
1410 (c_pretty_printer::abstract_declarator): Likewise.
1411 (c_pretty_printer::direct_abstract_declarator): Likewise.
1412 (c_pretty_printer::direct_declarator): Likewise.
1413 (c_pretty_printer::function_specifier): Likewise.
1414 (pp_declaration): Adjust.
1415 (pp_declaration_specifiers): Likewise.
1416 (pp_abstract_declarator): Likewise.
1417 (pp_direct_declarator): Likewise.
1418 (pp_function_specifier): Likewise.
1419 (pp_direct_abstract_declarator): Remove as unused.
1420 (pp_c_declaration): Remove.
1421 (pp_c_declaration_specifiers): Likewise.
1422 (pp_c_declarator): Likewise.
1423 (pp_c_direct_declarator): Likewise.
1424 (pp_c_function_specifier): Likewise.
1425 (pp_c_direct_abstract_declarator): Likewise.
1426 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1427 from pp_c_abstract_declarator. Adjust.
1428 (c_pretty_printer::direct_abstract_declarator): Rename from
1429 pp_c_direct_abstract_declarator. Adjust.
1430 (c_pretty_printer::function_specifier): Rename from
1431 pp_c_function_specifier. Adjust.
1432 (c_pretty_printer::declaration_specifiers): Rename from
1433 pp_c_declaration_specifiers. Adjust.
1434 (c_pretty_printer::direct_declarator): Rename from
1435 pp_c_direct_declarator. Adjust.
1436 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1437 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1438 (c_pretty_printer::c_pretty_printer): Do not assign to
1439 declaration, declaration_specifiers, declarator,
1440 direct_declarator, direct_abstract_declarator, function_specifier.
1441
00d34d3a
GDR
14422013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1443
1444 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1445 virtual member function.
1446 (c_pretty_printer::multiplicative_expression): Likewise.
1447 (c_pretty_printer::conditional_expression): Likewise.
1448 (c_pretty_printer::assignment_expression): Likewise.
1449 (c_pretty_printer::expression): Likewise.
1450 (pp_unary_expression): Adjust.
1451 (pp_multiplicative_expression): Likewise.
1452 (pp_assignment_expression): Likewise.
1453 (pp_conditional_expression): Likewise.
1454 (pp_expression): Likewise.
1455 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1456 from pp_c_unary_expression. Adjust.
1457 (c_pretty_printer::multiplicative_expression): Rename from
1458 pp_c_multiplicative_expression. Adjust.
1459 (c_pretty_printer::conditional_expression): Rename from
1460 pp_c_conditional_expression. Adjust.
1461 (c_pretty_printer::assignment_expression): Rename from
1462 pp_c_assignment_expression. Adjust.
1463 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1464 (c_pretty_printer::c_pretty_printer): Do not assign to
1465 unary_expression, multiplicative_expression,
1466 conditional_expression, expression.
1467
fb22178f
GDR
14682013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1469
1470 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1471 virtual member function.
1472 (pp_postfix_expression): Adjust.
1473 (pp_c_postfix_expression): Remove.
1474 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1475 from pp_c_postfix_expression. Adjust.
1476 (c_pretty_printer::c_pretty_printer): Do not assign to
1477 postfix_expression.
1478
7ecc2600
GDR
14792013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1480
1481 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1482 virtua member function.
1483 (pp_primary_expression): Adjust.
1484 (pp_c_primary_expression): Remove.
1485 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1486 from pp_c_primary_expression. Adjust.
1487 (pp_c_initializer_list): Use pp_primary_expression.
1488 (c_pretty_printer::c_pretty_printer): Do not assign to
1489 primary_expression.
1490
0691175f
GDR
14912013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1492
1493 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1494 * c-pretty-print.c (M_): Remove.
1495 (c_pretty_printer::translate_string): Define.
1496 (pp_c_type_specifier): Use it.
1497 (pp_c_primary_expression): Likewise.
1498 (pp_c_expression): Likewise.
1499
66dfe4c4
GDR
15002013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1501
1502 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1503 virtual function.
1504 (pp_c_id_expression): Remove.
1505 (pp_id_expression): Adjust.
1506 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1507 pp_c_id_expression. Adjust.
1508 (pp_c_postfix_expression): Use pp_id_expression.
1509 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1510
ca43e9d5
GDR
15112013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1512
1513 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1514 member function.
1515 (pp_constant): Adjust.
1516 (pp_c_constant): Remove.
1517 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1518 pp_c_constant. Adjust.
1519 (pp_c_constant)
1520 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1521 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1522
da6ca2b5
GDR
15232013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1524
1525 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1526 (c_pretty_printer::c_pretty_printer): Declare.
1527 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1528 c_pretty_printer_init. Adjust.
1529 (print_c_tree): Do not call c_pretty_printer_init.
1530 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1531
65a372f4
AC
15322013-08-09 Arnaud Charlet <charlet@adacore.com>
1533
1534 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1535
fd9b0f32
PC
15362013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1537
1538 PR c++/58080
1539 * c-common.c (pointer_int_sum): Add bool parameter.
1540 * c-common.h (pointer_int_sum): Adjust declaration.
1541
e0aec1e9
GDR
15422013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1543
1544 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1545 c_pretty_printer variable.
1546
b066401f
GDR
15472013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1548
1549 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1550 (pp_base): Remove.
1551 (pp_c_base): Likewise. Adjust users.
1552 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1553 (pp_c_whitespace): Do not call pp_base.
1554 (pp_c_left_paren): Likewise.
1555 (pp_c_right_paren): Likewise.
1556 (pp_c_left_brace): Likewise.
1557 (pp_c_right_brace): Likewise.
1558 (pp_c_left_bracket): Likewise.
1559 (pp_c_right_bracket): Likewise.
1560 (pp_c_dot): Likewise.
1561 (pp_c_ampersand): Likewise.
1562 (pp_c_star): Likewise.
1563 (pp_c_arrow): Likewise.
1564 (pp_c_semicolon): Likewise.
1565 (pp_c_complement): Likewise.
1566 (pp_c_exclamation): Likewise.
1567 (pp_c_direct_declarator): Likewise.
1568 (pp_c_ws_string): Likewise.
1569 (pp_c_identifier): Likewise.
1570 (pp_c_statement): Likewise.
1571 (print_c_tree): Likewise.
1572
65e5a578
ESR
15732013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1574
1575 PR c++/58072
1576 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1577 provide useful error strings.
1578
137a1a27
GDR
15792013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1580
1581 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1582 printer functions instead of pp_string or operators and punctuators.
1583 (dump_generic_ada_node): Likewise.
1584 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1585 (pp_c_relational_expression): Likewise.
1586 (pp_c_logical_or_expression): Likewise.
1587
07838b13
GDR
15882013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1589
1590 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1591 functions instead of pp_character.
1592 (pp_ada_tree_identifier): Likewise.
1593 (dump_ada_double_name): Likewise.
1594 (dump_ada_function_declaration): Likewise.
1595 (dump_ada_array_domains): Likewise.
1596 (dump_template_types): Likewise.
1597 (dump_generic_ada_node): Likewise.
1598 (print_ada_declaration): Likewise.
1599 (print_ada_struct_decl): Likewise.
1600 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1601
433cc7b0
TT
16022013-07-23 Tom Tromey <tromey@redhat.com>
1603
1604 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1605 * c-common.c (c_common_reswords): Add _Generic.
1606
688010ba
OB
16072013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1608
1609 * c-common.c: Fix typos.
1610 * c-common.h: Likewise.
1611
2a99e5e6
LL
16122013-07-13 Lubos Lunak <l.lunak@suse.cz>
1613
1614 PR c++/55203
1615 * c-common.c (c_common_attribute_table): Add warn_unused.
1616 (handle_warn_unused_attribute): New.
1617
c26302d5
JJ
16182013-07-10 Jakub Jelinek <jakub@redhat.com>
1619
1620 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1621 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1622
dfeadaa0
PC
16232013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1624
1625 PR c++/57869
1626 * c.opt: Add Wconditionally-supported.
1627
6a2fa4b2
GS
16282013-07-08 Graham Stott <graham.stott@btinternet.com>
1629
1630 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1631 unused variables l_length and l_node.
1632
ecdbd01a 16332013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1634
1635 PR c/57821
1636 * c-common.c (complete_array_type): Delay folding first index
1637 like other indices. When folding, check for index overflow.
1638
bedc293e
MG
16392013-06-27 Marc Glisse <marc.glisse@inria.fr>
1640
1641 PR c++/57509
1642 * c-common.h (c_build_vec_perm_expr): New complain argument.
1643 * c-common.c (c_build_vec_perm_expr): Likewise.
1644 Use save_expr also in C++.
1645
604b2bfc
GDR
16462013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1647
1648 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1649 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1650 * c-opts.c (c_common_post_options): Likewise.
1651
dfeadaa0 16522013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
1653
1654 * array-notation-common.c (length_mismatch_in_expr): Changed the
1655 parameter type's from a dynamic array to a vec_tree. Also removed
1656 the size parameters.
1657 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1658 the change above.
1659
2ce86d2e
BI
16602013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1661
1662 * c-common.h (struct cilkplus_an_parts): New structure.
1663 (struct cilkplus_an_loop_parts): Likewise.
1664 (cilkplus_extract_an_triplets): New prototype.
1665 (fix_sec_implicit_args): Likewise.
1666 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1667 (fix_sec_implicit_args): Likewise.
604b2bfc 1668
07a6825b
BI
16692013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1670
1671 * array-notation-common.c (find_inv_trees): Removed an unwanted
1672 typecasting.
1673 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1674 enum rid to enum tree_code.
1675
08346abd
JH
16762013-06-11 Jan Hubicka <jh@suse.cz>
1677
1678 * c-common.c (handle_alias_ifunc_attribute): Do not set
1679 DECL_EXTERNAL for weakref variables.
1680 * c-pragma.c (handle_pragma_weak): Make sure aliases
1681 are not declared as external.
1682
d60f1706
BI
16832013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1684
1685 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1686 function from c/c-array-notation.c.
1687 (is_cilkplus_reduce_builtin): Likewise.
1688 (find_rank): Likewise.
1689 (extract_array_notation_exprs): Likewise.
1690 (replace_array_notations): Likewise.
1691 (find_inv_trees): Likewise.
1692 (replace_inv_trees): Likewise.
1693 (contains_array_notation_expr): Likewise.
1694 (find_correct_array_notation_type): Likewise.
1695 * c-common.h (struct inv_list): Moved this struct from the file
1696 c/c-array-notation.c and added a new field called additional tcodes.
1697 (length_mismatch_in_expr_p): New prototype.
1698 (is_cilkplus_reduce_builtin): Likewise.
1699 (find_rank): Likewise.
1700 (extract_array_notation_exprs): Likewise.
1701 (replace_array_notation): Likewise.
1702 (find_inv_trees): Likewise.
1703 (replace_inv_trees): Likewise.
1704 (find_correct_array_notation_type): Likewise.
dfeadaa0 1705
36536d79
BI
17062013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1707
1708 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1709 function array_notation_init_builtins is called.
1710 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1711 * c-common.def (ARRAY_NOTATION_REF): New tree.
1712 * c-common.h (build_array_notation_expr): New function declaration.
1713 (build_array_notation_ref): Likewise.
1714 (extract_sec_implicit_index_arg): New extern declaration.
1715 (is_sec_implicit_index_fn): Likewise.
1716 (ARRAY_NOTATION_CHECK): New define.
1717 (ARRAY_NOTATION_ARRAY): Likewise.
1718 (ARRAY_NOTATION_START): Likewise.
1719 (ARRAY_NOTATION_LENGTH): Likewise.
1720 (ARRAY_NOTATION_STRIDE): Likewise.
1721 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1722 ARRAY_NOTATION_REF.
1723 (pp_c_expression): Likewise.
1724 * c.opt (flag_enable_cilkplus): New flag.
1725 * array-notation-common.c: New file.
1726
f7716d57
JJ
17272013-05-14 Jakub Jelinek <jakub@redhat.com>
1728
1729 PR c++/57274
1730 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1731
a5e0cd1d
MG
17322013-05-10 Marc Glisse <marc.glisse@inria.fr>
1733
1734 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1735 vectors.
1736
f6bc1c4a
HS
17372013-05-07 Han Shen <shenhan@google.com>
1738
1739 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1740
3f12f6e9
SKS
17412013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1742
1743 * c-common.c (check_user_alignment): Emit error for negative values.
1744
61949153
PC
17452013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1746
1747 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1748
e93e18e9
PC
17492013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1750
1751 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1752 __GXX_EXPERIMENTAL_CXX1Y__.
1753
44d90fe1
PC
17542013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1755 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1756
1757 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1758 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1759 to simply use OPT_Wpointer_arith.
1760 (c_sizeof_or_alignof_type): Likewise.
1761
13f39b2e
PC
17622013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1763
1764 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1765
4b84d650
JJ
17662013-04-12 Jakub Jelinek <jakub@redhat.com>
1767
1768 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1769 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1770 specifiers.
1771
fb037b5d
SB
17722013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1773
1774 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1775
4e856798
PC
17762013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1777
1778 * c-common.c (pointer_int_sum): Remove dead code.
1779
4b1baac8
RS
17802013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1781
1782 PR middle-end/56524
1783 * c-common.c (handle_optimize_attribute): Don't call
1784 save_optabs_if_changed.
1785
0b50e654
JJ
17862013-03-05 Jakub Jelinek <jakub@redhat.com>
1787
1788 PR middle-end/56461
1789 * c-pch.c (pch_init): Free target_validity at the end.
1790
48c41403
JJ
17912013-03-04 Jakub Jelinek <jakub@redhat.com>
1792
1793 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1794
e664c61c
KS
17952013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1796 Jakub Jelinek <jakub@redhat.com>
1797
1798 PR sanitizer/56454
1799 * c-common.c (handle_no_sanitize_address_attribute): New function.
1800 (c_common_attribute_table): Add no_sanitize_address attribute.
1801 (handle_no_address_safety_analysis_attribute): Add
1802 no_sanitize_address attribute, not no_address_safety_analysis
1803 attribute.
1804
a475fd3d 18052013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1806
1807 PR target/52555
1808 * c-common.c (handle_optimize_attribute): Call
1809 save_optabs_if_changed.
1810
f6007d99
JJ
18112013-02-18 Jakub Jelinek <jakub@redhat.com>
1812 Steven Bosscher <steven@gcc.gnu.org>
1813
1814 PR pch/54117
1815 * c-opts.c (c_common_post_options): If debug info is enabled
1816 and non-dwarf*, refuse to load PCH files and when writing PCH
1817 file warn.
1818
cf35e2b1
JJ
18192013-02-05 Jakub Jelinek <jakub@redhat.com>
1820
1821 PR middle-end/56167
1822 * c-common.c (handle_error_attribute): Fix condition.
1823
32887460
JJ
18242013-01-30 Jakub Jelinek <jakub@redhat.com>
1825
1826 PR c++/55742
1827 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1828
5af057d8
JM
18292013-01-18 Jason Merrill <jason@redhat.com>
1830
1831 PR target/54908
1832 * c.opt (-fextern-tls-init): New.
1833 * c-opts.c (c_common_post_options): Handle it.
1834
cc83c823
JJ
18352013-01-09 Jakub Jelinek <jakub@redhat.com>
1836
1837 PR c/48418
1838 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1839 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1840 and is either negative or bigger or equal to type precision
1841 of the first operand.
1842
a859517f
MP
18432012-12-03 Marek Polacek <polacek@redhat.com>
1844
1845 PR c/55570
1846 * c-common.c (check_user_alignment): Swap order of tests,
1847 check TREE_CODE first.
1848
2d7aa578
ESR
18492012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1850
1851 PR c++/52654
1852 * c-common.h (overflow_type): New enum.
1853 (build_userdef_literal): Add overflow_type argument.
1854 (tree_userdef_literal): Add overflow_type.
1855 (USERDEF_LITERAL_OVERFLOW): New access macro.
1856 * c-common.c (build_userdef_literal): Add overflow_type
1857 argument.
1858 * c-lex.c (c_lex_with_flags): Add overflow_type to
1859 build_userdef_literal calls.
1860 (interpret_integer, interpret_float): Add overflow_type argument.
1861
cc3c4f62
RB
18622012-11-28 Richard Biener <rguenther@suse.de>
1863
1864 PR c/35634
1865 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1866 here and use a type with proper overflow behavior for types that would
1867 need to be promoted for the arithmetic.
1868
77bc5132
JJ
18692012-11-23 Jakub Jelinek <jakub@redhat.com>
1870
1871 PR sanitizer/55435
1872 * c-common.c (handle_no_address_safety_analysis_attribute): New
1873 function.
1874 (c_common_attribute_table): Add no_address_safety_analysis.
1875
5dc99c46
SB
18762012-11-16 Simon Baldwin <simonb@google.com>
1877
1878 * c.opt: Add f[no-]canonical-system-headers.
1879 * c-opts.c (c_common_handle_option): Handle
1880 OPT_fcanonical_system_headers.
1881
a4a0016d
ESR
18822012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1883
1884 PR c++/54413
1885 * c-opts.c (c_common_handle_option): Set new flags.
1886 * c.opt: Describe new flags.
1887
7dbb85a7
JM
18882012-11-09 Jason Merrill <jason@redhat.com>
1889
1890 * c.opt (Wabi-tag): New.
1891
ad7bac31
AK
18922012-11-09 Andi Kleen <ak@linux.intel.com>
1893
1894 PR 55139
1895 * c-common.c (get_atomic_generic_size): Mask with
1896 MEMMODEL_MASK
1897
7332899a
MLI
18982012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1899
1900 PR c/53063
1901 * c.opt (Wformat): Make it Alias Wformat=1.
1902 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1903 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1904 LangEnabledBy.
1905 (Wformat=): RejectNegative. Use LangEnabledBy.
1906 (Wnonnull): Use LangEnabledBy.
1907 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1908 * c-format.c (set_Wformat): Delete.
1909 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1910 (maybe_read_dollar_number): Likewise.
1911 (avoid_dollar_number): Likewise.
1912 (finish_dollar_format_checking): Likewise.
1913 (check_format_info): Likewise.
1914 (check_format_info_main): Likewise.
1915 (check_format_types): Likewise.
1916 (format_type_warning): Likewise.
1917 * c-common.c (int): Likewise.
1918 (check_function_sentinel): Likewise.
1919 * c-common.h (warn_format,set_Wformat): Do not declare here.
1920
34a180a6
MLI
19212012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1922
1923 PR c/53063
1924 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1925 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1926 Use LangEnabledBy.
1927 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1928 common.opt.
1929 (Wvariadic-macros): Init(1).
1930 * c-opts.c (c_common_handle_option): Do not handle them
1931 explicitly.
1932 (c_common_post_options): Likewise.
1933 (sanitize_cpp_opts): warn_unused_macros is now
1934 cpp_warn_unused_macros.
1935 (push_command_line_include): Likewise.
1936 * c-common.c (warn_unknown_pragmas): Do not define.
1937 * c-common.h (warn_unknown_pragmas): Do not declare.
1938
3f46d6a5
MLI
19392012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1940
1941 PR c/51294
1942 * c-common.c (conversion_warning): Handle conditional expressions.
1943
880661a4
JW
19442012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1945
1946 PR c++/54930
1947 * c.opt (Wreturn_local_addr): Define new option.
1948
4514a96b
JM
19492012-10-25 Jason Merrill <jason@redhat.com>
1950
f14edc1a
JM
1951 * c.opt (Wvirtual-move-assign): New.
1952
4514a96b
JM
1953 * c.opt (Winherited-variadic-ctor): New.
1954
93100c6b
MG
19552012-10-25 Marc Glisse <marc.glisse@inria.fr>
1956
1957 PR c++/54427
1958 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1959
1efcb8c6
JM
19602012-10-23 Joseph Myers <joseph@codesourcery.com>
1961
1962 * c-common.h (pch_cpp_save_state): Declare.
1963 * c-target.def (c_preinclude): New hook.
1964 * c-opts.c (done_preinclude): New.
1965 (push_command_line_include): Handle default preincluded header.
1966 (cb_file_change): Call pch_cpp_save_state when calling
1967 push_command_line_include.
1968 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1969 (pch_cpp_save_state): New.
1970 (pch_init): Call pch_cpp_save_state conditionally, instead of
1971 calling cpp_save_state.
1972
4a0ae68e
MLI
19732012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1974
1975 PR c/53063
1976 PR c/40989
1977 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1978 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1979 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1980 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1981 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1982 * c-opts.c (c_common_handle_option): Remove explicit handling from
1983 here.
1984 (c_common_post_options): Likewise.
1985
67e4210b
EB
19862012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1987
1988 * c-ada-spec.c (LOCATION_COL): Delete.
1989 (compare_location): New function.
1990 (compare_node): Use it.
1991 (compare_comment): Likewise.
1992
65d4f2cd
MLI
19932012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1994
1995 PR c/53063
1996 PR c/40989
1997 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1998 * c-opts.c (c_common_handle_option): Do not set them here. Add
1999 comment.
2000 (c_common_post_options): Likewise.
2001
909881cb
EB
20022012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2003
2004 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2005 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2006 Remove POINTER_TYPE handling, add large unsigned handling and use
2007 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2008
3a785c97
JJ
20092012-10-12 Jakub Jelinek <jakub@redhat.com>
2010
2011 PR c/54381
2012 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2013 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2014 locs and array of 3 trees instead of just single loc and single
2015 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2016 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2017 For *cmp* builtins that take two sources strings report warnings
2018 about first and second source, not about destination and source.
2019
5e54f81d
MG
20202012-10-12 Marc Glisse <marc.glisse@inria.fr>
2021
2022 PR c++/53055
2023 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2024
f5b02f1e
EB
20252012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2026
2027 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2028 declaring something coming from another file.
2029
b46dbc6c
AC
20302012-10-10 Arnaud Charlet <charlet@adacore.com>
2031
f5b02f1e 2032 PR ada/54845
b46dbc6c
AC
2033 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2034
5d9de0d0
PC
20352012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2036
2037 PR c++/54194
2038 * c-common.c (warn_about_parentheses): Add location_t parameter;
2039 use EXPR_LOC_OR_LOC.
2040 * c-common.h: Update declaration.
2041
a212e43f
MG
20422012-10-09 Marc Glisse <marc.glisse@inria.fr>
2043
2044 PR c++/54427
2045 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2046 more operations. Make error messages optional.
2047 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2048 (scalar_to_vector): Declare.
2049
b1db7f91
JM
20502012-10-08 Jason Merrill <jason@redhat.com>
2051
2052 * c-common.c (c_common_reswords): Add thread_local.
2053
e28d52cf
DS
20542012-10-08 Dodji Seketeli <dodji@redhat.com>
2055
2056 PR c++/53528 C++11 attribute support
2057 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2058 new functions.
2059 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2060 static function.
2061 (handle_aligned_attribute): In choose strictest alignment
2062 among many. Use new check_cxx_fundamental_alignment_constraints.
2063 (handle_transparent_union_attribute): In c++11 attribute syntax,
2064 don't look through typedefs.
2065
3b78de56
AC
20662012-10-04 Arnaud Charlet <charlet@adacore.com>
2067
2068 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2069 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2070 out of dumpfile.h.
2071
6040bb5f
DC
20722012-09-25 Dehao Chen <dehao@google.com>
2073
2074 PR middle-end/54645
3b78de56 2075 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
2076 map when read in the pch.
2077
0b07a57e
AC
20782012-09-18 Arnaud Charlet <charlet@adacore.com>
2079
2080 * c-ada-spec.c: Style fixes.
2081
da5182be
TQ
20822012-09-18 Thomas Quinot <quinot@adacore.com>
2083
2084 * c.opt (-fada-spec-parent): Define new command line switch.
2085 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2086 is specified, generate binding spec as a child of the specified unit.
2087
0ccb505d
PC
20882012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2089 Manuel López-Ibáñez <manu@gcc.gnu.org>
2090
2091 PR c++/53210
2092 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2093
c583af79
AC
20942012-08-23 Arnaud Charlet <charlet@adacore.com>
2095
2096 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2097 for pointers, and add missing Convention C pragma.
2098 (print_ada_struct_decl): Add missing aliased keyword.
2099 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2100
1a4049e7
JJ
21012012-08-17 Jakub Jelinek <jakub@redhat.com>
2102
2103 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2104 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2105 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2106 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2107 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2108
70b5e7dc
RG
21092012-08-10 Richard Guenther <rguenther@suse.de>
2110
2111 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2112
f8923f7e
SB
21132012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2114
2115 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2116 instead of separate pp_newline and pp_flush.
2117 (print_c_tree): Likewise.
2118
e45abe1f
RH
21192012-07-26 Richard Henderson <rth@redhat.com>
2120
2121 * c-common.c (handle_hot_attribute): Allow labels.
2122 (handle_cold_attribute): Likewise.
2123
332f1d24
JJ
21242012-07-20 Jakub Jelinek <jakub@redhat.com>
2125
2126 PR c++/28656
2127 * c-common.c (check_function_nonnull): Handle multiple nonnull
2128 attributes properly.
2129
7ee2468b
SB
21302012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2131
2132 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2133 * c-ada-spec.c: Likewise.
2134 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2135
ee7b28eb
SB
21362012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2137
2138 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2139 Remove code conditional on it.
2140
6bdf3519
SB
21412012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2142
2143 * c-gimplify.c: Do not include basic-block.h.
2144 * c-common.c: Do not include linfuncs.h.
2145
532aafad
SB
21462012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2147
2148 * c-common.h: Include tree.h.
2149
8d0d1915
JM
21502012-07-02 Jason Merrill <jason@redhat.com>
2151
2152 PR c++/53524
2153 * c-common.c (get_priority): Call default_conversion.
2154
fbc873ad
UB
21552012-07-01 Uros Bizjak <ubizjak@gmail.com>
2156
2157 * c-pch.c (c_common_write_pch): Remove unused variables.
2158
d4a10d0a
SB
21592012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2160
2161 * cppspec.c: Moved from gcc/ to here.
2162
6f3a2e23
KT
21632012-06-27 Kai Tietz <ktietz@redhat.com>
2164
2165 PR preprocessor/37215
2166 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2167
8ca92d04
SB
21682012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2169
2170 * c-common.h (c_common_print_pch_checksum): Remove.
2171 * c-pch.c: Do not include output.h.
2172 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2173 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2174 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2175 (struct c_pch_header): Remove.
2176 (get_ident): Update gpch version.
2177 (pch_init): Do not print executable_checksum to asm_out_file.
2178 Do not fail if there is no asm_out_file to read back from. Set
2179 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2180 (c_common_write_pch): Verify that nothing was written to asm_out_file
2181 since pch_init was called. Do not write a c_pch_header, and do not
2182 copy from asm_out_file to the PCH.
2183 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2184 the content of asm_out_file from the PCH.
2185 (c_common_print_pch_checksum): Remove.
2186 * c-opts.c (c_common_init): Print out executable_checksum directly.
2187
70f42967
SB
21882012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2189
2190 * c-target.def (objc_declare_unresolved_class_reference,
2191 objc_declare_class_definition): Add new hooks.
2192
a8781821
SB
21932012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2194
2195 * c-lex.c: Do not include output.h.
2196 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2197 Remove uses of ASM_OUTPUT_IDENT.
2198
9e1a8dd1
RR
21992012-06-15 Marc Glisse <marc.glisse@inria.fr>
2200
2201 PR c++/51033
2202 * c-common.h (c_build_vec_perm_expr): Move decl here.
2203 * c-common.c (c_build_vec_perm_expr): Move definition
2204 here.
2205
6f07a821
SB
22062012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2207
2208 * c.opt (fconserve-space): Turn into a no-op.
2209
9faeb493 22102012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
2211
2212 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2213 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2214 both the start and end of the function.
2215
a4b7d13c
SB
22162012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2217
2218 * c-common.c: Do not include output.h.
2219 * c-pragma.c: Likewise.
2220
c265f413
SA
22212012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2222
2223 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2224 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2225 (lang_decl_name): Handle namespace decls.
2226
be7a421e
SB
22272012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2228
2229 * c-ada-spec.c: Do not include output.h.
2230 * c-semantics.c: Likewise.
2231
65de6659
JM
22322012-05-29 Joseph Myers <joseph@codesourcery.com>
2233
2234 * c-common.c: Fix typo.
2235
ca5f4331
MM
22362012-05-29 Michael Matz <matz@suse.de>
2237
2238 * c-common.h (c_expand_decl): Remove prototype.
2239
4f7f7aca
MLI
22402012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2241
2242 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2243 * c-opts.c (c_common_handle_option): Remove code handling
2244 warn_missing_braces.
2245
4a792f9b
PC
22462012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2247
2248 PR c++/25137
2249 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2250 -Wmissing_braces.
2251
650dc14a
DS
22522012-05-22 Dodji Seketeli <dodji@redhat.com>
2253
2254 PR c++/53322
2255 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2256
9b095bf1
MLI
22572012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2258
2259 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2260 * c-opts.c (c_common_handle_option): Do not handle explicitly
2261 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2262
0b2c4be5
DS
22632012-05-16 Dodji Seketeli <dodji@redhat.com>
2264
2265 PR preprocessor/7263
2266 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2267 to cpp_classify_number. For diagnostics, use the precise location
2268 instead of the global input_location.
2269
a1bde5af
PC
22702012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2271
d02924ef 2272 PR c++/11856
a1bde5af
PC
2273 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2274
d1ede5f4
BS
22752012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2276
a1bde5af 2277 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 2278
f2bc201f
MLI
22792012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2280
2281 PR 53063
2282 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2283 Wreorder): Use LangEnabledBy.
2284 * c-opts.c (c_common_handle_option): Do not enable them
2285 explicitly. Call lang-specific generated functions.
2286 (c_common_post_options): Do not set them here.
2287
95744782
MLI
22882012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2289
2290 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2291 Wmissing-field-initializers,Wmissing-parameter-type,
2292 Wold-style-declaration,Woverride-init): Use EnabledBy.
2293 * c-opts.c (c_common_post_options): Do not set here explicitly.
2294
7d5a5747
MLI
22952012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2296
2297 PR 53063
2298 * c-opts.c (c_common_handle_option): Use handle_generated_option
2299 to enable sub-options.
2300
5a3c9cf2
PC
23012012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2302
2303 PR c++/53158
2304 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2305
3ac8781c
RG
23062012-05-10 Richard Guenther <rguenther@suse.de>
2307
2308 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2309 adjust commentary about TYPE_IS_SIZETYPE types.
2310
1e537948
MLI
23112012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2312
2313 PR c++/53261
2314 * c-common.c (warn_logical_operator): Check that argument of
2315 integer_zerop is not NULL.
2316
f2c4a785
MLI
23172012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2318
2319 PR c/43772
2320 * c-common.c (warn_logical_operator): Do not warn if either side
2321 is already true or false.
2322
50f305ca
MLI
23232012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2324
2325 PR c/51712
2326 * c-common.c (expr_original_type): New.
2327 (shorten_compare): Do not warn for enumeration types.
2328
0c3641b0
MLI
23292012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2330
2331 * c.opt (fpermissive): Add Var(flag_permissive).
2332
7edaa4d2
MG
23332012-04-30 Marc Glisse <marc.glisse@inria.fr>
2334
2335 PR c++/51033
2336 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2337 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2338
b9c8da34
DS
23392012-04-30 Dodji Seketeli <dodji@redhat.com>
2340
2341 Add -Wvarargs option
2342 * c.opt (Wvarargs): Define new option.
2343
e6c69da0
MLI
23442012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2345
2346 * c-common.c (check_function_arguments): Replace
2347 Wmissing-format-attribute with Wsuggest-attribute=format.
2348
90137d8f
MLI
23492012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2350
2351 * c.opt (Wsuggest-attribute=format): New. Alias of
2352 Wmissing-format-attribute.
2353 * c-format.c (decode_format_type): Replace
2354 Wmissing-format-attribute with Wsuggest-attribute=format.
2355 (check_function_format): Likewise.
2356
9faeb493 23572012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
2358
2359 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2360 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2361 * c.opt: Add Wliteral-suffix.
2362
c1771a20
MLI
23632012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2364
2365 PR c/44774
2366 * c.opt (Wpedantic): New.
2367 (pedantic): Alias Wpedantic.
2368 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2369 (c_common_post_options): Likewise.
2370 (sanitize_cpp_opts): Likewise.
2371 * c-lex.c (interpret_float): Likewise.
2372 * c-format.c (check_format_types): Likewise.
2373 * c-common.c (pointer_int_sum): Likewise.
2374 (c_sizeof_or_alignof_type): Likewise.
2375 (c_add_case_label): Likewise.
2376 (c_do_switch_warnings): Likewise.
2377 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2378
04b391c1
JM
23792012-04-15 Jason Merrill <jason@redhat.com>
2380
2381 PR c++/52818
2382 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2383 (C_STD_NAME): Distinguish between C++98 and C++11.
2384
ac868f29
EB
23852012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2386
2387 PR target/52624
2388 * c-common.h (uint16_type_node): Rename into...
2389 (c_uint16_type_node): ...this.
2390 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2391 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2392
fd4116f4
MLI
23932012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2394
2395 * c-common.c (warn_if_unused_value): Move definition to here.
2396 * c-common.h (warn_if_unused_value): Move declaration to here.
2397
573ac65e
WB
23982012-03-23 William Bader <williambader@hotmail.com>
2399
2400 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2401
552b8185
JM
24022012-03-20 Jason Merrill <jason@redhat.com>
2403
2404 * c-common.h (enum cxx_dialect): Add cxx1y.
2405 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2406 test.
2407 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2408 * c-opts.c (c_common_post_options): Likewise.
2409 (set_std_cxx1y): New.
2410 (c_common_handle_option): Call it.
2411 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2412
04398fa8
PC
24132012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2414
2415 PR c++/14710
2416 * c.opt ([Wuseless-cast]): Add.
2417
d2a12ae7
RG
24182012-03-16 Richard Guenther <rguenther@suse.de>
2419
2420 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2421
a12bf402
MLI
24222012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2423
2424 PR c++/44783
2425 * c.opt (ftemplate-backtrace-limit) Add.
2426
5c30094f
RO
24272012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2428
2429 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2430 handling.
2431 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2432 (init_pragma): Don't register extern_prefix.
2433
21fa2faf
RG
24342012-03-12 Richard Guenther <rguenther@suse.de>
2435
2436 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2437 (builtin_type_for_size): Likewise.
2438
e3793c6f
JJ
24392012-02-13 Jakub Jelinek <jakub@redhat.com>
2440
2441 PR c++/52215
2442 * c-common.c (sync_resolve_params): Don't decide whether to convert
2443 or not based on TYPE_SIZE comparison, convert whenever arg_type
2444 is unsigned INTEGER_TYPE.
2445
93286335
PC
24462012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2447
2448 PR c/52118
2449 * c.opt ([Wunused-local-typedefs]): Fix description.
2450
7a421706
MS
24512012-01-24 Mike Stump <mikestump@comcast.net>
2452
2453 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2454 exactly.
2455
ba9b1f11
RG
24562012-01-18 Richard Guenther <rguenther@suse.de>
2457
2458 * c-opts.c (c_common_post_options): Reset LTO flags if
2459 we are about to generate a PCH.
2460
465406be
PC
24612012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2462
2463 PR c++/51777
2464 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2465 use pp_unsigned_wide_integer.
2466
aee15221
RG
24672012-01-10 Richard Guenther <rguenther@suse.de>
2468
2469 PR middle-end/51806
2470 * c-opts.c (c_common_handle_option): Move -Werror handling
2471 to language independent code.
2472
5720c0dc
RG
24732012-01-05 Richard Guenther <rguenther@suse.de>
2474
2475 PR middle-end/51764
2476 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2477 from common.opt.
2478
73ac190a
PC
24792011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2480
2481 PR c++/51316
2482 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2483 of array types with an unknown bound.
2484
48b0b196
JM
24852011-12-20 Joseph Myers <joseph@codesourcery.com>
2486
2487 * c-common.c (flag_isoc99): Update comment to refer to C11.
2488 (flag_isoc1x): Change to flag_isoc11.
2489 * c-common.h (flag_isoc99): Update comment to refer to C11.
2490 (flag_isoc1x): Change to flag_isoc11.
2491 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2492 C11.
2493 * c-opts.c (set_std_c1x): Change to set_std_c11.
2494 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2495 Call set_std_c11.
2496 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2497 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2498 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2499 standard.
2500 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2501 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2502 (std=gnu1x): Make alias of std=gnu11.
2503
d58d6eb5
JM
25042011-12-19 Jason Merrill <jason@redhat.com>
2505
2506 PR c++/51228
2507 * c-common.c (handle_transparent_union_attribute): Check the first
2508 field if the type is complete.
2509
b3908fcc
JW
25102011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2511
2512 PR libstdc++/51365
2513 * c-common.c (RID_IS_FINAL): Add.
2514 * c-common.h (RID_IS_FINAL): Add.
2515
fea3ca91
IS
25162011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2517
2518 * c.opt (fgnu-runtime): Provide full description.
2519 (fnext-runtime): Likewise.
2520 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2521
62bad7cd
AM
25222011-11-28 Andrew MacLeod <amacleod@redhat.com>
2523
2524 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2525 predefines in one place. Add LOCK_FREE predefines.
2526 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2527 new func.
2528
c466c4ff
AM
25292011-11-24 Andrew MacLeod <amacleod@redhat.com>
2530
2531 PR c/51256
9faeb493 2532 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2533 conditions
9faeb493
UB
2534 (resolve_overloaded_atomic_exchange,
2535 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2536 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2537 error_mark_node for error conditions.
9faeb493 2538
a5952633
RG
25392011-11-08 Richard Guenther <rguenther@suse.de>
2540
2541 PR middle-end/51010
2542 c-family/
2543
0a35513e
AH
25442011-11-07 Richard Henderson <rth@redhat.com>
2545 Aldy Hernandez <aldyh@redhat.com>
2546 Torvald Riegel <triegel@redhat.com>
2547
2548 Merged from transactional-memory.
2549
2550 * c-common.c (handle_tm_wrap_attribute,
2551 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2552 (struct c_common_reswords): Added __transaction* keywords.
2553 (struct c_common_attribute_table): Added transaction* and tm_regparm
2554 attributes.
2555 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2556 masks.
2557 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2558 find_tm_attribute): Declare.
2559
6d87092d
JM
25602011-11-07 Jason Merrill <jason@redhat.com>
2561
2562 PR c++/35688
2563 * c-common.c, c-common.h: Revert yesterday's changes.
2564
8e7860a1
JM
25652011-11-06 Jason Merrill <jason@redhat.com>
2566
2567 PR c++/35688
2568 * c-common.c (decl_has_visibility_attr): Split out from...
2569 (c_determine_visibility): ...here.
2570 * c-common.h: Declare it.
2571
d19fa6b5
JM
25722011-11-06 Joseph Myers <joseph@codesourcery.com>
2573
2574 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2575 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2576 type.
2577 (check_user_alignment): New. Split out of
2578 handle_aligned_attribute. Disallow integer constants with
2579 noninteger types. Conditionally allow zero.
2580 (handle_aligned_attribute): Use check_user_alignment.
2581 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2582
86951993
AM
25832011-11-06 Andrew MacLeod <amacleod@redhat.com>
2584 Richard Henderson <rth@redhat.com>
2585
2586 Merged from cxx-mem-model.
2587
2588 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2589 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2590 parameters that are the same type size.
2591 (get_atomic_generic_size): New. Find size of generic
2592 atomic function parameters and do typechecking.
2593 (add_atomic_size_parameter): New. Insert size into parameter list.
2594 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2595 either __atomic_exchange_n or external library call.
9faeb493 2596 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 2597 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 2598 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
2599 __atomic_load_n or an external library call.
2600 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2601 __atomic_store_n or an external library call.
2602 (resolve_overloaded_builtin): Handle new __atomic builtins.
2603
cf9e9959
EB
26042011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2605
2606 PR c++/50608
2607 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2608 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2609 <INDIRECT_REF>: Return the argument.
2610 <ARRAY_REF>: Remove special code for negative offset.
2611 Call fold_build_pointer_plus instead of size_binop.
2612 (fold_offsetof): Remove STOP_REF argument and adjust.
2613 * c-common.h (fold_offsetof_1): Declare.
2614 (fold_offsetof): Remove STOP_REF argument.
2615
25339f10
JM
26162011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2617
2618 PR c++/50810
2619 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2620 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2621 Wnarrowing for C++0x and C++98.
2622 * c.opt ([Wnarrowing]): Update.
2623
89401152
PC
26242011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2625
2626 PR c++/44277
2627 * c.opt: Add Wzero-as-null-pointer-constant.
2628
97e3ad20
JM
26292011-10-31 Jason Merrill <jason@redhat.com>
2630
15694fdd
JM
2631 * c.opt (-fdeduce-init-list): Off by default.
2632
97e3ad20
JM
2633 PR c++/50920
2634 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2635 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2636 and -Wc++11-compat.
2637 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2638
fb9120e3
RAV
26392011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2640
2641 PR c++/30066
2642 * c.opt (fvisibility-inlines-hidden): Description change.
2643
3ce4f9e4
ESR
26442011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2645
2646 Implement C++11 user-defined literals.
2647 * c-common.c (build_userdef_literal): New.
2648 * c-common.def: New tree code.
2649 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2650 * c-lex.c (interpret_float): Add suffix parm.
2651 (c_lex_with_flags): Build literal tokens.
2652
5f53c243
PC
26532011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2654
2655 PR c++/50841
2656 Revert:
2657 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2658
2659 PR c++/50810
2660 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2661 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2662 Wnarrowing for C++0x and C++98.
2663 * c.opt ([Wnarrowing]): Update.
2664
263734e1
PC
26652011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2666
2667 PR c++/50810
2668 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2669 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2670 Wnarrowing for C++0x and C++98.
2671 * c.opt ([Wnarrowing]): Update.
2672
d2e312d7
PC
26732011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2674
2675 PR c++/45385
2676 * c-common.c (conversion_warning): Remove code looking for
2677 artificial operands.
2678
d17687f6
DS
26792011-10-18 Dodji Seketeli <dodji@redhat.com>
2680
2681 PR bootstrap/50760
2682 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 2683 !NO_IMPLICIT_EXTERN_C.
d17687f6 2684
fc8396e9
PC
26852011-10-17 Michael Spertus <mike_spertus@symantec.com>
2686
2687 * c-common.c (c_common_reswords): Add __bases,
2688 __direct_bases.
2689 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2690
26912011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2692
2693 PR c++/50757
2694 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2695
847e697a
TT
26962011-10-15 Tom Tromey <tromey@redhat.com>
2697 Dodji Seketeli <dodji@redhat.com>
2698
2699 * c.opt (fdebug-cpp): New option.
2700 * c-opts.c (c_common_handle_option): Handle the option.
2701 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2702 output stream in parameter. Factorized from ...
2703 (maybe_print_line): ... this. Dump location debug information when
2704 -fdebug-cpp is in effect.
2705 (print_line_1): New static function. Takes an output stream in
2706 parameter. Factorized from ...
2707 (print_line): ... here. Dump location information when -fdebug-cpp
2708 is in effect.
2709 (scan_translation_unit): Dump location information when
2710 -fdebug-cpp is in effect.
2711
92582b75
TT
27122011-10-15 Tom Tromey <tromey@redhat.com>
2713 Dodji Seketeli <dodji@redhat.com>
2714
2715 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2716 without argument.
2717 * c-opts.c (c_common_handle_option)<case
2718 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2719 cases. Handle -ftrack-macro-expansion with and without argument.
2720
46427374
TT
27212011-10-15 Tom Tromey <tromey@redhat.com>
2722 Dodji Seketeli <dodji@redhat.com>
2723
2724 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2725 (print_line, cb_define, do_line_change): Adjust to avoid touching
2726 the internals of struct line_map. Use the public API instead.
2727 * c-pch.c (c_common_read_pch): Likewise.
2728 * c-lex.c (fe_file_change): Likewise.
2729
fc8396e9
PC
27302011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2731
2732 PR c++/17212
2733 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2734
27352011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2736
2737 PR c++/33067
2738 * c-pretty-print.c (pp_c_floating_constant): Output
2739 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2740
e79983f4
MM
27412011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2742
2743 * c-common.c (def_builtin_1): Delete old interface with two
2744 parallel arrays to hold standard builtin declarations, and replace
2745 it with a function based interface that can support creating
2746 builtins on the fly in the future. Change all uses, and poison
2747 the old names. Make sure 0 is not a legitimate builtin index.
2748 * c-omp.c (c_finish_omp_barrier): Ditto.
2749 (c_finish_omp_taskwait): Ditto.
2750 (c_finish_omp_flush): Ditto.
2751
6637388f
TG
27522011-10-11 Tristan Gingold <gingold@adacore.com>
2753
2754 * c.opt: (fallow-parameterless-variadic-functions): New.
2755
3797cb21
DS
27562011-09-08 Dodji Seketeli <dodji@redhat.com>
2757
2758 PR c++/33255 - Support -Wunused-local-typedefs warning
2759 * c-common.h (struct c_language_function::local_typedefs): New
2760 field.
9faeb493
UB
2761 (record_locally_defined_typedef, maybe_record_typedef_use)
2762 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 2763 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
2764 (maybe_record_typedef_use)
2765 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
2766 * c.opt: Declare new -Wunused-local-typedefs flag.
2767
693ddb1b
EB
27682011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2769
2770 PR middle-end/50266
2771 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2772 computations.
2773
830c740f
RG
27742011-09-05 Richard Guenther <rguenther@suse.de>
2775
2776 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2777 of integer_minus_one_node for empty array upper bounds.
2778
892a371f
DS
27792011-08-28 Dodji Seketeli <dodji@redhat.com>
2780
2781 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2782 it's the first time it's being called on this main TU.
2783
0e3fdb48
RB
27842011-08-24 Richard Guenther <rguenther@suse.de>
2785
2786 PR c/49396
2787 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2788
27892011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
2790
2791 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2792 defined in cpp_init_builtins and c_cpp_builtins.
2793
d4a83c10
JM
27942011-08-19 Joseph Myers <joseph@codesourcery.com>
2795
2796 * c-common.c (c_common_reswords): Add __builtin_complex.
2797 * c-common.h (RID_BUILTIN_COMPLEX): New.
2798
bbceee64
JM
27992011-08-18 Joseph Myers <joseph@codesourcery.com>
2800
2801 * c-common.c (c_common_reswords): Add _Noreturn.
2802 (keyword_is_function_specifier): Handle RID_NORETURN.
2803 * c-common.h (RID_NORETURN): New.
2804
0e3a99ae
AS
28052011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2806
2807 * c-common.c (unsafe_conversion_p): New function. Check if it is
2808 unsafe to convert an expression to the type.
2809 (conversion_warning): Adjust, use unsafe_conversion_p.
2810 * c-common.h (unsafe_conversion_p): New function declaration.
2811
20906c66
JJ
28122011-08-02 Jakub Jelinek <jakub@redhat.com>
2813
2814 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2815 (c_finish_omp_taskyield): New prototype.
2816 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2817 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2818 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2819 or RHS1 have side-effects, evaluate those too in the right spot,
2820 if it is a decl and LHS is also a decl, error out if they
2821 aren't the same.
2822 (c_finish_omp_taskyield): New function.
2823 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2824 * c-pragma.c (omp_pragmas): Add taskyield.
2825 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2826 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2827 PRAGMA_OMP_CLAUSE_MERGEABLE.
2828
770e5a2e
DS
28292011-07-25 Dodji Seketeli <dodji@redhat.com>
2830
2831 * c-common.h (set_underlying_type): Remove parm name from
2832 declaration.
2833
1baae426
RG
28342011-07-25 Romain Geissler <romain.geissler@gmail.com>
2835
2836 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 2837
fcb21722
JM
28382011-07-22 Jason Merrill <jason@redhat.com>
2839
76f86d00
JM
2840 PR c++/49793
2841 * c.opt (Wnarrowing): New.
2842
3a636414
JM
2843 PR c++/30112
2844 * c-common.h: Declare c_linkage_bindings.
2845 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2846
fcb21722
JM
2847 PR c++/49813
2848 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2849 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2850 as flag_isoc99 for 'restrict'.
2851 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2852
02614448
ILT
28532011-07-21 Ian Lance Taylor <iant@google.com>
2854
2855 PR middle-end/49705
2856 * c-common.c (c_disable_warnings): New static function.
2857 (c_enable_warnings): New static function.
2858 (c_fully_fold_internal): Change local unused_p to bool. Call
2859 c_disable_warnings and c_enable_warnings rather than change
2860 c_inhibit_evaluation_warnings.
2861
34429675
JM
28622011-07-20 Jason Merrill <jason@redhat.com>
2863
2864 PR c++/6709 (DR 743)
2865 PR c++/42603 (DR 950)
2866 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2867 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2868 (CPP_DECLTYPE): New.
2869 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2870
5d49b6a7
RG
28712011-07-19 Richard Guenther <rguenther@suse.de>
2872
2873 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2874 * c-omp.c (c_finish_omp_for): Likewise.
2875
e84a58ff
EB
28762011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2877
2878 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2879 body on the next line.
2880
329af3c7
JM
28812011-07-08 Jason Merrill <jason@redhat.com>
2882
4063e61b
JM
2883 PR c++/45437
2884 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2885
329af3c7
JM
2886 PR c++/49673
2887 * c-common.c (c_apply_type_quals_to_decl): Don't check
2888 TYPE_NEEDS_CONSTRUCTING.
2889
1a072294
RG
28902011-07-06 Richard Guenther <rguenther@suse.de>
2891
2892 * c-common.c (c_common_nodes_and_builtins):
2893 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2894
fce5dddd
RG
28952011-07-05 Richard Guenther <rguenther@suse.de>
2896
2897 * c-common.c (c_common_nodes_and_builtins): Build all common
2898 tree nodes first.
2899
45d439ac
JJ
29002011-06-27 Jakub Jelinek <jakub@redhat.com>
2901
56300785
JJ
2902 * c-common.h (c_tree_chain_next): New static inline function.
2903
45d439ac
JJ
2904 * c-common.c (check_builtin_function_arguments): Handle
2905 BUILT_IN_ASSUME_ALIGNED.
2906
e0a8ecf2
AM
29072011-06-21 Andrew MacLeod <amacleod@redhat.com>
2908
2909 * c-common.c: Add sync_ or SYNC__ to builtin names.
2910 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
2911
29122011-06-20 Pierre Vittet <piervit@pvittet.com>
2913
2914 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2915 handler.
2916 (gen_pragma_handler): New union.
2917 (internal_pragma_handler): New type.
2918 (c_register_pragma_with_data)
2919 (c_register_pragma_with_expansion_and_data): New functions.
2920
2921 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2922 (c_register_pragma, c_register_pragma_with_expansion)
2923 (c_invoke_pragma_handler): Changed to work with
2924 internal_pragma_handler.
2925 (c_register_pragma_with_data)
2926 (c_register_pragma_with_expansion_and_data): New functions.
2927
677f3fa8
JM
29282011-06-14 Joseph Myers <joseph@codesourcery.com>
2929
2930 * c-common.c: Include common/common-target.h.
2931 (handle_section_attribute): Use
2932 targetm_common.have_named_sections.
2933 * c-cppbuiltin.c: Include common/common-target.h.
2934 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2935
d7fc8c14
RG
29362011-06-10 Richard Guenther <rguenther@suse.de>
2937
2938 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2939 to print a IDENTIFIER_NODE.
2940
10e48e39
RO
29412011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2942 Joseph Myers <joseph@codesourcery.com>
2943
2944 * c.opt (fbuilding-libgcc): New option.
2945 * c-cppbuiltin.c (c_cpp_builtins): Define
2946 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2947
6976ae51
JM
29482011-06-07 Jason Merrill <jason@redhat.com>
2949
3ff60975
JM
2950 * c-common.c (max_tinst_depth): Lower default to 900.
2951
6976ae51
JM
2952 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2953
009db074
RG
29542011-06-07 Richard Guenther <rguenther@suse.de>
2955
2956 * c-common.c (c_common_nodes_and_builtins): Do not set
2957 size_type_node or call set_sizetype.
2958
b4592b92
DS
29592011-06-07 Dodji Seketeli <dodji@redhat.com>
2960
2961 PR debug/49130
2962 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2963 type when using pointer comparison to compare types.
b4592b92 2964
014ab419
JW
29652011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2966
2967 * c.opt: Add -Wdelete-non-virtual-dtor.
2968 * c-opts.c (c_common_handle_option): Include it in -Wall.
2969
4f60111f
NF
29702011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2971
2972 PR bootstrap/49190
2973
2974 Revert:
2975 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2976
2977 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2978 not tree_common.
2979
4cc4f2f4
JJ
29802011-05-27 Jakub Jelinek <jakub@redhat.com>
2981
2982 PR c++/49165
2983 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2984 C++ don't call c_common_truthvalue_conversion on void type arms.
2985
38e01f9e
NF
29862011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2987
2988 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2989 (stmt_list_stack): Define.
2990 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2991 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2992
92e948a8
NF
29932011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2994
2995 * c-common.c (warning_candidate_p): Check for BLOCKs.
2996
a2fc3e63
NF
29972011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2998
2999 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3000 not tree_common.
3001
0957c029
JJ
30022011-05-25 Jakub Jelinek <jakub@redhat.com>
3003
3004 * c-common.c (def_fn_type): Remove extra va_end.
3005
828fb3ba
JM
30062011-05-23 Jason Merrill <jason@redhat.com>
3007
3008 PR c++/48106
3009 * c-common.c (c_common_get_narrower): New.
3010 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3011
dde05067
NF
30122011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3013
3014 * c-common.h (check_function_arguments): Tweak prototype of
3015 check_function_arguments.
3016 * c-common.c (check_function_arguments): Likewise. Adjust
3017 calls to check_function_nonnull, check_function_format, and
3018 check_function_sentinel.
3019 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3020 separate attributes and typelist arguments. Use
3021 FOREACH_FUNCTION_ARGS to iterate over argument types.
3022
3c0d13bf
PC
30232011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3024
3025 * c-common.c (c_common_reswords): Reorder.
3026 * c-common.h (rid): Likewise.
3027
8242dd04
NF
30282011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3029
3030 * c-common.c (def_fn_type): Don't call build_function_type, call
3031 build_function_type_array or build_varargs_function_type_array
3032 instead.
3033 (c_common_nodes_and_builtins): Likewise.
3034
3d528853
NF
30352011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3036
3037 * c-common.c (c_add_case_label): Omit the loc argument to
3038 build_case_label.
3039 * c-common.h (build_case_label): Remove.
3040 * c-semantics.c (build_case_label): Remove.
3041
a04a722b
JM
30422011-05-05 Joseph Myers <joseph@codesourcery.com>
3043
3044 * c-objc.h (objc_start_method_definition): Update prototype.
3045 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3046
e19a18d4
NF
30472011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3048
3049 * c-common.c (check_main_parameter_types): Reindent. Don't use
3050 TYPE_ARG_TYPES directly.
3051 (handle_nonnull_attribute): Likewise.
3052 (sync_resolve_params): Likewise.
3053 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3054 to check_format_string.
3055 (handle_format_attribute): Likewise.
3056 (check_format_string): Take a function type to examine instead of
3057 a type list. Use a function_arg_iterator to step through argument
3058 types.
3059
c62c040f
RG
30602011-05-04 Richard Guenther <rguenther@suse.de>
3061
3062 * c-common.c (fix_string_type): Use size_int for index type bounds.
3063 (start_fname_decls): Do not pass NULL to build_int_cst.
3064 (c_init_attributes): Likewise.
3065 * c-lex.c (c_lex_with_flags): Likewise.
3066
c12ff9d8
JM
30672011-04-27 Jason Merrill <jason@redhat.com>
3068
3069 * c-common.c (make_tree_vector_from_list): New.
3070 * c-common.h: Declare it.
3071
304dfbe3
RG
30722011-04-26 Richard Guenther <rguenther@suse.de>
3073
3074 PR preprocessor/48248
3075 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3076 for output size with -P.
3077
3c0d13bf
PC
30782011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3079
3080 * c-common.c (struct c_common_resword): Add __underlying_type.
3081 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3082
04695783
JM
30832011-04-20 Jim Meyering <meyering@redhat.com>
3084
3085 * c-format.c (init_dollar_format_checking): Remove useless
3086 if-before-free.
3087
0dc33c3c
NP
30882011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3089
3090 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 3091 (objc_detect_field_duplicates): New.
0dc33c3c 3092 * stub-objc.c: Likewise.
3c0d13bf 3093
c59633d9
NP
30942011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3095
3096 * stub-objc.c (objc_declare_protocols): Renamed to
3097 objc_declare_protocol.
3098 * c-objc.h: Likewise.
3c0d13bf 3099
32dabdaf
NP
31002011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3101
3102 * stub-objc.c (objc_declare_class): Updated argument name.
3103
81f653d6
NF
31042011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3105
3106 * c-common.h (c_common_init_ts): Declare.
3107 * c-common.c (c_common_init_ts): Define.
3108
eb345401
NP
31092011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3110
3111 * c-objc.h (objc_build_message_expr): Updated prototype.
3112 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 3113
a358e188
MJ
31142011-04-12 Martin Jambor <mjambor@suse.cz>
3115
3116 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3117 of cgraph_node.
3118
e6313a78
RG
31192011-04-11 Richard Guenther <rguenther@suse.de>
3120
3121 * c-common.c (complete_array_type): Build a range type of
3122 proper type.
3123
dcf0c47e
NF
31242011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3125
3126 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3127 (handle_type_generic_attribute): Likewise.
3128
1ee44b26
JM
31292011-04-07 Jason Merrill <jason@redhat.com>
3130
3131 PR c++/48450
3132 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3133 conversion from C++0x scoped enum.
3134
acce4e77
JM
31352011-04-06 Joseph Myers <joseph@codesourcery.com>
3136
3137 * c-target-def.h: New file.
3138 * c-target.def: New file.
3139 * c-target.h: New file.
3140 * c-common.c (targetcm): Don't define here.
3141 * c-common.h (default_handle_c_option): Declare.
3142 * c-format.c: Include c-target.h instead of target.h.
3143 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3144 include tm.h.
3145 (default_handle_c_option): Move from targhooks.c.
3146
e2eefb55
JJ
31472011-03-29 Jakub Jelinek <jakub@redhat.com>
3148
3149 PR preprocessor/48248
3150 * c-ppoutput.c (print): Add src_file field.
3151 (init_pp_output): Initialize it.
3152 (maybe_print_line): Don't optimize by adding up to 8 newlines
3153 if map->to_file and print.src_file are different file.
3154 (print_line): Update print.src_file.
3155
ba78087b
KT
31562011-03-25 Kai Tietz <ktietz@redhat.com>
3157
3158 * c-ada-spec.c (compare_comment): Use filename_cmp
3159 instead of strcmp for filename.
3160
0edf1bb2
JL
31612011-03-25 Jeff Law <law@redhat.com>
3162
3163 * c-family/c-common.c (def_fn_type): Add missing va_end.
3164
c7dc8804
JM
31652011-03-25 Jason Merrill <jason@redhat.com>
3166
3167 * c.opt: Add -std=c++03.
3168
d1d879b1
EB
31692011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3170
3171 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3172
62d784f7
KT
31732011-03-17 Kai Tietz
3174
3175 PR target/12171
5050afdf
KT
3176 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3177 Display allowed attributes for function pointer types.
3178 (pp_c_attributes_display): New function to display
3179 attributes having affects_type_identity flag set to true.
3180 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3181
62d784f7
KT
3182 * c-common.c (c_common_attribute_table):
3183 Add new element.
3184 (c_common_format_attribute_table): Likewise.
3185
82d37118
JM
31862011-03-18 Jason Merrill <jason@redhat.com>
3187
49a000c3
JM
3188 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3189 * c-common.h: Don't declare it here.
3190 * c-common.c: Or define it here.
3191 * c-opts.c (c_common_handle_option): Or set it here.
3192
82d37118
JM
3193 PR c++/35315
3194 * c-common.c (handle_transparent_union_attribute): Don't
3195 make a duplicate type in C++.
3196
17bc631c
JM
31972011-03-15 Jason Merrill <jason@redhat.com>
3198
3199 * c-common.c (max_constexpr_depth): New.
3200 * c-common.h: Declare it.
3201 * c-opts.c (c_common_handle_option): Set it.
3202 * c.opt (fconstexpr-depth): New option.
3203
1b9b91a6
JM
32042011-03-11 Jason Merrill <jason@redhat.com>
3205
f231b5ff
JM
3206 * c-common.c (attribute_takes_identifier_p): Add missing const.
3207
1b9b91a6
JM
3208 PR c++/46803
3209 * c-common.c (attribute_takes_identifier_p): Assume that an
3210 unknown attribute takes an identifier.
3211
a19e4d44
NF
32122011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3213
3214 PR c/47786
3215 * c-common.c (c_type_hash): Call list_length instead of iterating
3216 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3217
982d62f6
JJ
32182011-02-19 Jakub Jelinek <jakub@redhat.com>
3219
3220 PR c/47809
3221 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3222
0a256240
NP
32232011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3224
3225 * c.opt (fobjc-abi-version=) New.
3226 (fobjc-nilcheck): New.
3227
ba9e6dd5
NF
32282011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3229
3230 PR c++/46890
3231 * c-common.h (keyword_is_decl_specifier): Declare.
3232 * c-common.c (keyword_is_decl_specifier): Define.
3233 (keyword_is_function_specifier): New function.
3234
7273813a
JJ
32352011-01-26 Jakub Jelinek <jakub@redhat.com>
3236
3237 PR c/47473
3238 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3239 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3240 REAL_TYPE.
3241
908ef79b
AC
32422011-01-26 Arnaud Charlet <charlet@adacore.com>
3243
3244 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3245
237e9384
JJ
32462011-01-26 Jakub Jelinek <jakub@redhat.com>
3247
3248 PR pch/47430
3249 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3250 after init_c_lex if pch_file is set.
3251
47ea1edf
DK
32522011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3253
d4dba752 3254 PR c++/43601
47ea1edf
DK
3255 * c.opt (-fkeep-inline-dllexport): New switch.
3256
2aa9c6ae
RG
32572011-01-12 Richard Guenther <rguenther@suse.de>
3258
3259 PR middle-end/32511
3260 * c-common.c (handle_weak_attribute): Warn instead of error
3261 on declaring an inline function weak.
3262
7bd11157
TT
32632011-01-05 Tom Tromey <tromey@redhat.com>
3264
3265 * c-common.h (lvalue_error): Update.
3266 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3267 not error.
3268
0e66e494 32692010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 3270
b4f588c4
NP
3271 PR objc/47075
3272 * c-objc.h (objc_finish_message_expr): Added argument to
3273 prototype.
3274
f4da8dce
NF
32752010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3276
3277 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3278 Use prototype_p.
3279
46270f14
NP
32802010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3281
3282 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 3283 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 3284
4816c593
NF
32852010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3286
3287 * c-common.h (readonly_error): Declare.
3288 * c-common.c (readonly_error): Define.
3289
7a6daeb0
NF
32902010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3291
3292 * c-common.h (invalid_indirection_error): Declare.
3293 * c-common.c (invalid_indirection_error): Define.
3294
892f6119
RG
32952010-12-03 Richard Guenther <rguenther@suse.de>
3296
3297 PR c/46745
3298 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3299 (pp_c_unary_expression): Likewise.
3300 (pp_c_expression): Likewise.
3301
6c39e757
NP
33022010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3303
3304 * c-common.h (objc_finish_function): New.
3305 (objc_non_volatilized_type): Removed.
3306 (objc_type_quals_match): Removed.
3307 * stub-objc.c (objc_finish_function): New.
3308 (objc_non_volatilized_type): Removed.
3309 (objc_type_quals_match): Removed.
9faeb493 3310
7c475d11
JM
33112010-11-30 Joseph Myers <joseph@codesourcery.com>
3312
3313 * c-common.h (parse_optimize_options): Declare.
3314 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3315 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3316
71f3e391
JM
33172010-11-29 Joseph Myers <joseph@codesourcery.com>
3318
3319 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3320 GET_ENVIRONMENT.
3321 * c-pch.c (O_BINARY): Don't define here.
3322 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3323
d5fabb58
JM
33242010-11-25 Joseph Myers <joseph@codesourcery.com>
3325
3326 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3327 targetm.except_unwind_info.
3328
299404a1
JM
33292010-11-23 Joseph Myers <joseph@codesourcery.com>
3330
3331 * c-opts.c (c_common_handle_option): Pass location to
3332 set_struct_debug_option.
3333
c98cd5bf
JM
33342010-11-23 Joseph Myers <joseph@codesourcery.com>
3335
3336 * c-common.c (visibility_options): Move from ../opts.c.
3337 * c-common.h (struct visibility_flags, visibility_options):
3338 Declare here.
3339 * c-opts.c (finish_options): Rename to c_finish_options.
3340 (c_common_init): Update call to finish_options.
3341
a9546771
NP
33422010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3343
3344 PR objc/34033
3345 * c-lex.c (lex_string): Check that each string in an Objective-C
3346 string concat sequence starts with either one or zero '@', and
3347 that there are no spurious '@' signs at the end.
3348
24a57808
JM
33492010-11-20 Joseph Myers <joseph@codesourcery.com>
3350
3351 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3352 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3353 HANDLE_PRAGMA_VISIBILITY.
3354 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3355 HANDLE_PRAGMA_VISIBILITY): Don't define.
3356 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3357
a9aa2c3a
NF
33582010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3359
3360 PR c++/16189
3361 PR c++/36888
3362 PR c++/45331
3363 * c-common.h (keyword_begins_type_specifier): Declare.
3364 (keyword_is_storage_class_specifier): Declare.
3365 (keyword_is_type_qualifier): Declare.
3366 * c-common.c (keyword_begins_type_specifier): New function.
3367 (keyword_is_storage_class_specifier): New function.
3368 (keyword_is_type_qualifier): Declare.
3369
5386338c
JM
33702010-11-19 Joseph Myers <joseph@codesourcery.com>
3371
3372 PR c/46547
3373 * c-common.c (in_late_binary_op): Define.
3374 (c_common_truthvalue_conversion): Check in_late_binary_op before
3375 calling c_save_expr.
3376 * c-common.h (in_late_binary_op): Declare.
3377
69ccdddb
JM
33782010-11-19 Joseph Myers <joseph@codesourcery.com>
3379
3380 * c-opts.c (c_common_handle_option): Update calls to
3381 set_struct_debug_option.
3382
6b192a09
NP
33832010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3384
3385 * c-common.h (objc_declare_protocols): Added additional argument.
3386 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 3387
fb52b50a
NF
33882010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3389
3390 PR c/33193
3391 * c-common.h (build_real_imag_expr): Declare.
3392 * c-semantics.c (build_real_imag_expr): Define.
3393
b37421c6
JM
33942010-11-17 Joseph Myers <joseph@codesourcery.com>
3395
3396 * c-opts.c (c_common_parse_file): Take no arguments.
3397 * c-common.h (c_common_parse_file): Update prototype.
3398
07078664
JJ
33992010-11-16 Jakub Jelinek <jakub@redhat.com>
3400
3401 PR c++/46401
3402 * c-common.c (warning_candidate_p): Don't track non-const calls
3403 or STRING_CSTs.
3404
c6a13190
ILT
34052010-11-15 Ian Lance Taylor <iant@google.com>
3406
3407 * c-lex.c (init_c_lex): Set macro debug callbacks if
3408 flag_dump_go_spec is set.
3409
925e8657
NP
34102010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3411
3412 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3413 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3414
bb0a9581
NF
34152010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3416
3417 PR preprocessor/45038
3418 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3419 dialects.
3420
c5fa0890
JM
34212010-11-12 Joseph Myers <joseph@codesourcery.com>
3422
3423 * c-common.h (c_family_lang_mask): Declare.
3424 * c-opts.c (c_family_lang_mask): Make extern.
3425 * c-pragma.c (handle_pragma_diagnostic): Use
3426 control_warning_option.
3427
a4d8c676
JM
34282010-11-12 Joseph Myers <joseph@codesourcery.com>
3429
3430 * c-common.c (parse_optimize_options): Update call to
3431 decode_options.
3432 * c-common.h (c_common_handle_option): Update prototype.
3433 * c-opts.c (c_common_handle_option): Take location_t parameter and
3434 pass it to other functions.
3435
f954bd2c
JM
34362010-11-11 Joseph Myers <joseph@codesourcery.com>
3437
3438 * c-opts.c (warning_as_error_callback): Remove.
3439 (c_common_initialize_diagnostics): Don't call
3440 register_warning_as_error_callback.
3441 (c_common_handle_option): Handle -Werror=normalized= here.
3442
d8a07487
JM
34432010-11-10 Joseph Myers <joseph@codesourcery.com>
3444
3445 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3446 in diagnostic.
3447 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3448 letter.
3449 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3450 Remove trailing '.' from diagnostics.
3451 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3452
d5478783
JM
34532010-11-10 Joseph Myers <joseph@codesourcery.com>
3454
3455 * c-common.c (parse_optimize_options): Pass global_dc to
3456 decode_options.
3457 * c-opts.c (c_common_handle_option): Pass &global_options to
3458 set_Wstrict_aliasing.
3459 * c.opt (v): Don't mark Common or document here.
3460
91ebb981
IS
34612010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3462
3463 PR target/44981
3464 * c-format.c (format_type): New type gcc_objc_string_format_type.
3465 (valid_stringptr_type_p): New.
3466 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3467 (check_format_string): Pass expected type, use
91ebb981
IS
3468 valid_stringptr_type_p (), check that the format string types are
3469 consistent with the format specification.
3470 (decode_format_attr): Warn if NSString is used outside objective-c.
3471 (format_types_orig): Add NSString.
3472 (format_name): New.
3473 (format_flags): New.
3474 (check_format_arg): Handle format strings requiring an external parser.
3475 first_target_format_type: New variable.
3476 (handle_format_attribute): Set up first_target_format_type, pass the
3477 expected format arg string type to check_format_string().
3478 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3479 * stub-objc.c (objc_string_ref_type_p): New.
3480 (objc_check_format_arg): New.
3481
bede2adc
NP
34822010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3483
9faeb493 3484 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3485 * c-common.h (objc_build_class_component_ref): New.
3486 * stub-objc.c (objc_build_class_component_ref): New.
3487
9a179d01
NP
34882010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3489
3490 * c.opt (Wproperty-assign-default): New option.
3491
22d8d616
NP
34922010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3493
3494 Implemented -fobjc-std=objc1 flag.
3495 * c.opt (fobjc-std=objc1): New option.
3496
2debdb4f
NP
34972010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3498
3499 Implemented format and noreturn attributes for Objective-C methods.
3500 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3501 attribute for Objective-C methods.
3502
ec52b111
JM
35032010-10-31 Jason Merrill <jason@redhat.com>
3504
3505 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3506 EXPR_LOC_OR_HERE.
3507
46a88c12
NP
35082010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3509
3510 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3511 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3512 (objc_add_property_declaration): Removed arguments for copies and
3513 ivar.
3514 (objc_build_getter_call): Renamed to
3515 objc_maybe_build_component_ref.
3516 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3517 (objc_is_property_ref): New.
3518 * c-common.c (c_common_reswords): Removed copies and ivar.
3519 * stub-objc.c (objc_add_property_declaration): Removed arguments
3520 for copies and ivar.
3521 (objc_build_getter_call): Renamed to
3522 objc_maybe_build_component_ref.
3523 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3524 (objc_is_property_ref): New.
9faeb493 3525
1e4bf85b
AC
35262010-10-29 Arnaud Charlet <charlet@adacore.com>
3527 Matthew Gingell <gingell@adacore.com>
3528
3529 * c-ada-spec.c (separate_class_package): New function.
3530 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3531 name of their enclosing package.
3532 (print_ada_declaration): Use separate_class_package.
3533
81f0bab2
JM
35342010-10-27 Jason Merrill <jason@redhat.com>
3535
2b08f2c5
JM
3536 * c-common.c (c_common_reswords): Add __is_literal_type.
3537 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3538
81f0bab2
JM
3539 * c-common.c (check_case_value): Remove special C++ code.
3540
200290f2
NP
35412010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3542
3543 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3544 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3545 and RID_LAST_PATTR.
3546 (objc_add_property_declaration): Added additional arguments.
3547 (objc_property_attribute_kind): Removed.
3548 (objc_set_property_attr): Removed.
3549 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3550 copy and nonatomic.
3551 * stub-objc.c (objc_add_property_declaration): Added additional
3552 arguments.
3553 (objc_set_property_attr): Removed.
9faeb493 3554
f614132b
NP
35552010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3556
3557 * c-common.h (objc_add_property_variable): Renamed to
3558 objc_add_property_declaration. Added location argument.
3559 * stub-objc.c (objc_add_property_variable): Same change.
3560
b8a18805
NP
35612010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3562
3563 * c-common.h (objc_maybe_printable_name): New.
3564 * stub-objc.c (objc_maybe_printable_name): New.
3565
30cd1c5d
AS
35662010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3567 Andrew Pinski <pinskia@gmail.com>
3568
3569 * c-common.h (c_common_mark_addressable_vec): Declare.
3570 * c-common.c (c_common_mark_addressable_vec): New function.
3571
249a82c4
NP
35722010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3573
3574 * c-common.h (objc_set_method_type): Removed.
3575 (objc_add_method_declaration): Added boolean argument.
3576 (objc_start_method_definition): Same change.
3577 (objc_build_method_signature): Same change.
3578 * stub-objc.c (objc_set_method_type): Removed.
3579 (objc_add_method_declaration): Added boolean argument.
3580 (objc_start_method_definition): Same change.
3581 (objc_build_method_signature): Same change.
3582
977e30bc
NP
35832010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3584
3585 * c-common.h (finish_file): Removed.
3586 (objc_write_global_declarations): New.
3587 * c-opts.c (c_common_parse_file): Do not call finish_file.
3588 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3589
da57d1b9
NP
35902010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3591
3592 Implemented parsing @synthesize and @dynamic for
3593 Objective-C/Objective-C++.
3594 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3595 (objc_add_synthesize_declaration): New.
3596 (objc_add_dynamic_declaration): New.
3597 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3598 * stub-objc.c (objc_add_synthesize_declaration): New.
3599 (objc_add_dynamic_declaration): New.
9faeb493 3600
0069111f
MM
36012010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3602
3603 PR target/46041
3604 * c-cppbuiltin.c (mode_has_fma): Move function here from
3605 builtins.c. Don't use the fma optab, instead just use the
3606 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3607 using -save-temps.
3608
e426b47b
NP
36092010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3610
3611 Merge from 'apple/trunk' branch on FSF servers.
0069111f 3612
e426b47b
NP
3613 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3614
9faeb493 3615 Radar 4330422
e426b47b
NP
3616 * c-common.h (objc_non_volatilized_type): New declaration
3617 * stub-objc.c (objc_non_volatilized_type): New stub.
3618
90fbfdc3
NP
36192010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3620
e426b47b 3621 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
3622
3623 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3624
9faeb493 3625 Radar 4133425
90fbfdc3 3626 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 3627 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 3628
c37d8c30
IS
36292010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3630
3631 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3632 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3633 (objc_ivar_visibility_kind): New enum.
3634 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 3635 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
3636 visibility enum.
3637
1b1562a5
MM
36382010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3639
3640 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3641 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3642 has the appropriate fma builtins.
3643 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3644
668ea4b1
IS
36452010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3646
1b1562a5 3647 merge from FSF apple 'trunk' branch.
668ea4b1 3648 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 3649
668ea4b1
IS
3650 Radars 4436866, 4505126, 4506903, 4517826
3651 * c-common.c (c_common_resword): Define @property and its attributes.
3652 * c-common.h: Define property attribute enum entries.
3653 (OBJC_IS_PATTR_KEYWORD): New.
3654 (objc_property_attribute_kind): New enum.
3655 Declare objc_set_property_attr (), objc_add_property_variable (),
3656 objc_build_getter_call () and objc_build_setter_call ().
3657 * stub-objc.c (objc_set_property_attr): New stub.
3658 (objc_add_property_variable): Likewise.
3659 (objc_build_getter_call): Likewise.
3660 (objc_build_setter_call) Likewise.
1b1562a5 3661
a1178b30
IS
36622010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3663
1b1562a5 3664 merge from FSF apple 'trunk' branch.
a1178b30
IS
3665 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3666
3667 Radar 3803157 (method attributes)
3668 * c-common.c (handle_deprecated_attribute): Recognize
3669 objc methods as valid declarations.
3670 * c-common.h: Declare objc_method_decl ().
1b1562a5 3671 * stub-objc.c (objc_method_decl): New stub.
a1178b30 3672
a75bfaa6
JM
36732010-10-08 Joseph Myers <joseph@codesourcery.com>
3674
3675 * c-common.c (parse_optimize_options): Call
3676 decode_cmdline_options_to_array_default_mask before
3677 decode_options. Update arguments to decode_options.
3678 * c-common.h (c_common_init_options_struct): Declare.
3679 * c-opts.c (c_common_init_options_struct): New. Split out from
3680 c_common_init_options.
3681
f05b9d93
NP
36822010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3683
3684 Implemented fast enumeration for Objective-C.
3685 * c-common.h (objc_finish_foreach_loop): New.
3686 * stub-objc.c (objc_finish_foreach_loop): New.
3687
1ebe4b4f
JM
36882010-10-05 Joseph Myers <joseph@codesourcery.com>
3689
3690 * c-common.h (struct diagnostic_context): Don't declare here.
3691 (c_common_initialize_diagnostics): Declare using
3692 diagnostic_context typedef.
3693 * c-opts.c (c_common_handle_option): Pass global_dc to
3694 handle_generated_option.
3695
d4d24ba4
JM
36962010-10-04 Joseph Myers <joseph@codesourcery.com>
3697
3698 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3699 handle_generated_option.
3700
478a1c5b
ILT
37012010-10-03 Ian Lance Taylor <iant@google.com>
3702
3703 * c.opt (-fplan9-extensions): New option.
3704
82a1c2fe
FXC
37052010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3706
3707 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3708 Remove.
3709 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3710 of duplicating code.
3711
92902b1b
IS
37122010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3713
3714 * c-common.c: Add two new entries for @optional
3715 and @required keywords.
3716
3717 merge from FSF 'apple/trunk' branch.
3718 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3719
3720 Radar 4386773
3721 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3722 objective-c keywords.
3723 (objc_set_method_opt): New declaration.
3724 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 3725
46625112
JM
37262010-09-30 Joseph Myers <joseph@codesourcery.com>
3727
3728 * c-common.c (handle_optimize_attribute): Pass &global_options to
3729 cl_optimization_save and cl_optimization_restore.
3730 * c-opts.c (c_common_handle_option): Pass &global_options to
3731 handle_generated_option.
3732 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3733 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3734 &global_options to cl_optimization_restore.
3735
49b91f05
NP
37362010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3737
3738 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3739 Objective-C/Objective-C++ keywords.
3740
13ed556f 37412010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 3742
9faeb493
UB
3743 Merge from 'apple/trunk' branch on FSF servers.
3744
a6341d57
NP
3745 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3746
3747 Radar 4281748
3748 * c-common.h (objc_check_global_decl): New declaration.
3749 * stub-objc.c (objc_check_global_decl): New stub.
3750
f0036cca
JM
37512010-09-29 Joseph Myers <joseph@codesourcery.com>
3752
3753 * c.opt: Don't use VarExists.
3754
e3339d0f
JM
37552010-09-29 Joseph Myers <joseph@codesourcery.com>
3756
3757 * c-common.c (c_cpp_error): Update names of diagnostic_context
3758 members.
3759 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3760 cl_optimization members.
3761 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3762 sanitize_cpp_opts, finish_options): Update names of cpp_options
3763 members.
3764
1973201f
NP
37652010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3766
3767 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3768 (objc_is_reserved_word): Removed.
3769 * c-common.c: Updated comments.
3770 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3771 objc_is_reserved_word.
3772 * stub-objc.c (objc_is_reserved_word): Removed.
3773
f7e71da5
IS
37742010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3775
9faeb493 3776 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
3777 include attributes.
3778 (objc_start_method_definition): Likewise.
3779 (objc_build_keyword_decl): Likewise.
3780 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3781 (objc_start_method_definition): Likewise.
3782 (objc_build_keyword_decl): Likewise.
3783
c165dca7
IS
37842010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3785
3786 * c-common.h (objc_start_class_interface): Adjust prototype.
3787 (objc_start_category_interface): Likewise.
3788 (objc_start_protocol): Likewise.
3789 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3790 (objc_start_class_interface): Likewise.
3791 (objc_start_category_interface): Likewise.
3792
7458026b
ILT
37932010-09-27 Ian Lance Taylor <iant@google.com>
3794
3795 * c-common.c (c_common_attribute_table): Add no_split_stack.
3796 (handle_no_split_stack_attribute): New static function.
3797
b581b85b
NP
37982010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3799
9faeb493 3800 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
3801
3802 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3803
9faeb493 3804 Radar 4229905
b581b85b
NP
3805 * c-common.h (objc_have_common_type): New declaration.
3806 * stub-objc.c (objc_have_common_type): New stub.
3807
3808 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3809
3810 Radar 4154928
3811 * c-common.h (objc_common_type): New prototype.
9faeb493 3812 * stub-objc.c (objc_common_type): New stub.
b581b85b 3813
46a4da10
JH
38142010-09-24 Jan Hubicka <jh@suse.cz>
3815
3816 * c-common.c (handle_leaf_attribute): New function.
3817 (struct attribute_spec c_common_att): Add leaf.
3818
e200444e
JM
38192010-09-22 Joseph Myers <joseph@codesourcery.com>
3820
3821 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3822 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3823 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3824 -include-barrier, -include-directory, -include-directory=,
3825 -include-directory-after, -include-directory-after=,
3826 -include-prefix, -include-prefix=, -include-with-prefix,
3827 -include-with-prefix=, -include-with-prefix-after,
3828 -include-with-prefix-after=, -include-with-prefix-before,
3829 -include-with-prefix-before=, -no-integrated-cpp,
3830 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3831 -output=, -pedantic, -pedantic-errors, -preprocess,
3832 -print-missing-file-dependencies, -trace-includes, -traditional,
3833 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3834 -user-dependencies, -verbose, -write-dependencies,
3835 -write-user-dependencies, no-integrated-cpp, traditional): New.
3836
29a80ea6
NP
38372010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3838
3839 PR objc/23710
ac1fc2fc
NP
3840 * c-common.h (objc_start_method_definition): Return bool instead
3841 of void.
3842 * stub-objc.c (objc_start_method_definition): Return bool instead
3843 of void.
3844
38452010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3846
3847 PR objc/25965
3848 * c-common.h (objc_get_interface_ivars): New declaration.
3849 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 3850
de621752
ILT
38512010-09-15 Ian Lance Taylor <iant@google.com>
3852
3853 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 3854 messages. Remove period at end of warning message.
de621752 3855
ba885ec5
NS
38562010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3857
3858 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3859 (handle_alias_attribute): ... here.
3860 (handle_ifunc_attribute): New.
3861
c5ee1358
MM
38622010-09-06 Mark Mitchell <mark@codesourcery.com>
3863
3864 * c-common.h (do_warn_double_promotion): Declare.
3865 * c-common.c (do_warn_double_promotion): Define.
3866
0a0b3574
MM
38672010-09-05 Mark Mitchell <mark@codesourcery.com>
3868
3869 * c.opt (Wdouble-promotion): New.
3870
d1779886
JM
38712010-09-02 Joseph Myers <joseph@codesourcery.com>
3872
3873 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3874 fvtable-thunks, fxref): Mark no longer supported in help text.
3875
2d2bd949
JM
38762010-09-02 Joseph Myers <joseph@codesourcery.com>
3877
3878 * c.opt (Wimport, fall-virtual, falt-external-templates,
3879 fdefault-inline, fenum-int-equiv, fexternal-templates,
3880 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3881 fname-mangling-version-, fnew-abi, fnonnull-objects,
3882 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3883 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3884 applicable.
3885 (fhandle-exceptions): Mark with Alias and Warn.
3886 * c-opts.c (c_common_handle_option): Don't handle options marked
3887 as ignored.
3888
5de8299c
JM
38892010-09-02 Joseph Myers <joseph@codesourcery.com>
3890
3891 * c.opt (Wcomments, Werror-implicit-function-declaration,
3892 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3893 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3894 aliases.
3895 * c-common.c (option_codes): Use OPT_Wcomment instead of
3896 OPT_Wcomments.
3897 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3898 Don't handle options marked as aliases.
3899
0ceb0201
RG
39002010-08-25 Richard Guenther <rguenther@suse.de>
3901
3902 * c-common.c (c_common_get_alias_set): Remove special
3903 handling for pointers.
3904
ac47786e
NF
39052010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3906
3907 * c-common.c: Use FOR_EACH_VEC_ELT.
3908 * c-gimplify.c: Likewise.
3909 * c-pragma.c: Likewise.
3910
c878765b
JM
39112010-08-16 Joseph Myers <joseph@codesourcery.com>
3912
3913 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3914 RejectDriver.
3915 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3916 RejectDriver.
3917 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3918 instead of OPT_MDX and OPT_MMDX.
3919
603349bf
JM
39202010-08-16 Joseph Myers <joseph@codesourcery.com>
3921
3922 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3923
644fa7ac
JM
39242010-08-12 Joseph Myers <joseph@codesourcery.com>
3925
3926 * c.opt (MD, MMD): Change to MDX and MMDX.
3927 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3928
481e1176
JM
39292010-08-11 Joseph Myers <joseph@codesourcery.com>
3930
3931 * c-opts.c (c_common_handle_option): Call handle_generated_option
3932 instead of handle_option.
3933
ac8dc9f7
NF
39342010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3935
3936 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3937 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3938
4f8c876d
NF
39392010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3940
3941 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3942 (pending_redefine_extname): Change type to a VEC.
3943 (add_to_renaming_pragma_list): Update for new type of
3944 pending_redefine_extname.
ac8dc9f7 3945 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3946
3b0c690e
AC
39472010-08-04 Arnaud Charlet <charlet@adacore.com>
3948
3949 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3950 visited.
3951 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3952 decide whether a type has already been declared/seen.
3953 Do not go to the original type.
3954 (dump_nested_types): New parameter forward.
3955 Generate forward declaration if needed and mark type as visited.
3956 (print_ada_declaration): Call dump_nested_types if not already done.
3957 Mark types as visited.
3958
1890bccc
JM
39592010-08-03 Joseph Myers <joseph@codesourcery.com>
3960
3961 * c.opt (-print-pch-checksum): Remove option.
3962 * c-opts.c (c_common_handle_option): Don't handle
3963 OPT_print_pch_checksum.
3964
5f20c657
JM
39652010-07-27 Joseph Myers <joseph@codesourcery.com>
3966
3967 * c-common.h (c_common_handle_option): Update prototype and return
3968 value type.
3969 * c-opts.c (c_common_handle_option): Update prototype and return
3970 value type. Update calls to handle_option and
3971 enable_warning_as_error.
3972
f551f80c
JJ
39732010-07-27 Jakub Jelinek <jakub@redhat.com>
3974
3975 PR c/45079
3976 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3977
61ff2bdc
JM
39782010-07-27 Joseph Myers <joseph@codesourcery.com>
3979
3980 * c-common.h (c_common_missing_argument): Remove.
3981 * c-opts.c (c_common_missing_argument): Remove.
3982 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3983 idirafter, imacros, include, isysroot, isystem, iquote): Add
3984 MissingArgError.
3985 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3986
7a9bf9a4
JM
39872010-07-27 Joseph Myers <joseph@codesourcery.com>
3988
3989 * c-common.h (c_common_option_lang_mask,
3990 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3991 New.
3992 (c_common_init_options): Update prototype.
3993 * c-opts.c (c_common_option_lang_mask): New.
3994 (c_common_initialize_diagnostics): Split out of
3995 c_common_init_options.
3996 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3997 New.
3998 (c_common_init_options): Update prototype. Use decoded options in
3999 search for -lang-asm.
4000
910ad8de
NF
40012010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4002
4003 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4004 * c-format.c: Likewise.
4005
718f9c0f
MLI
40062010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4007
4008 * c-common.h: Include diagnostic-core.h. Error if already
4009 included.
4010 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4011
4d451982
MLI
40122010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4013
4014 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
4015 Do not include expr.h
4016 (vector_mode_valid_p): Move here.
4017
119fe915
SB
40182010-06-21 DJ Delorie <dj@redhat.com>
4019
4020 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4021 allow these pragmas anywhere.
4022
40232010-06-14 Jakub Jelinek <jakub@redhat.com>
4024
4025 PR bootstrap/44509
4026 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4027 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4028 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4029 ggc_strdup instead of xstrdup.
4030
40312010-06-10 Jakub Jelinek <jakub@redhat.com>
4032
4033 * c-cppbuiltin.c: Include cpp-id-data.h.
4034 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4035 (lazy_hex_fp_value): New function.
4036 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4037
6662d794
MLI
40382010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4039
4040 * c-gimplify.c: Do not include tree-flow.h
4041
38f8b050
JR
40422010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4043
4044 PR other/44034
4045 * c-common.c: Rename targetm member:
4046 targetm.enum_va_list -> targetm.enum_va_list_p
4047
9589f23e
AS
40482010-06-28 Anatoly Sokolov <aesok@post.ru>
4049
4050 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4051
3b06d379
SB
40522010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4053
4054 * c-cppbuiltin.c: Do not include except.h.
4055
d166d4c3
AK
40562010-06-24 Andi Kleen <ak@linux.intel.com>
4057
9faeb493
UB
4058 * c-common.c (warn_for_omitted_condop): New.
4059 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 4060
70cb8be6
JM
40612010-06-21 Joseph Myers <joseph@codesourcery.com>
4062
4063 * c.opt (lang-objc): Remove.
4064 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4065
a4c97feb
JR
40662010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4067
4068 * c-opts.c: Include "tm_p.h".
4069
6e2f1956
JM
40702010-06-20 Joseph Myers <joseph@codesourcery.com>
4071
4072 * c-common.c (parse_optimize_options): Update call to
4073 decode_options.
4074
bc87224e
NF
40752010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4076
4077 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4078 new type of types_used_by_cur_var_decl.
4079
b49cf425
JR
40802010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4081
4082 PR bootstrap/44512
4083 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4084 for C++ standard compliance.
4085
59f9c2ed
JM
40862010-06-16 Jason Merrill <jason@redhat.com>
4087
4088 * c.opt: Add -Wnoexcept.
4089
33766b66
RG
40902010-06-16 Richard Guenther <rguenther@suse.de>
4091
4092 PR c/44555
4093 * c-common.c (c_common_truthvalue_conversion): Remove
4094 premature and wrong optimization concering ADDR_EXPRs.
4095
eff7e30c
AC
40962010-06-15 Arnaud Charlet <charlet@adacore.com>
4097
4098 * c-ada-spec.c (dump_sloc): Remove column info.
4099 (is_simple_enum): New function.
4100 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4101 enum types when relevant.
4102
6312e84d
MLI
41032010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4104
9faeb493 4105 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
4106 location.
4107
1cb42611
JM
41082010-06-10 Joseph Myers <joseph@codesourcery.com>
4109
4110 * c-opts.c (c_common_handle_option): Don't handle
4111 OPT_fshow_column.
4112
a9429e29
LB
41132010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4114
4115 * c-pragma.c (push_alignment): Use typed GC allocation.
4116 (handle_pragma_push_options): Likewise.
4117
4118 * c-common.c (parse_optimize_options): Likewise.
4119
4120 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4121 option.
4122
5498f011
JM
41232010-06-07 Joseph Myers <joseph@codesourcery.com>
4124
4125 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4126 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4127 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4128 flag_signed_bitfields, warn_strict_null_sentinel,
4129 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4130 flag_gen_declaration, flag_no_gnu_keywords,
4131 flag_implement_inlines, flag_implicit_templates,
4132 flag_implicit_inline_templates, flag_optional_diags,
4133 flag_elide_constructors, flag_default_inline, flag_rtti,
4134 flag_conserve_space, flag_access_control, flag_check_new,
4135 flag_new_for_scope, flag_weak, flag_working_directory,
4136 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4137 flag_enforce_eh_specs, flag_threadsafe_statics,
4138 flag_pretty_templates): Remove.
4139 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4140 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4141 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4142 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4143 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4144 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4145 flag_no_gnu_keywords, flag_implement_inlines,
4146 flag_implicit_templates, flag_implicit_inline_templates,
4147 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4148 flag_rtti, flag_conserve_space, flag_access_control,
4149 flag_check_new, flag_new_for_scope, flag_weak,
4150 flag_working_directory, flag_use_cxa_atexit,
4151 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4152 flag_threadsafe_statics, flag_pretty_templates,
4153 warn_strict_null_sentinel): Remove.
4154 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4155 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4156 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4157 fimplicit-inline-templates, fimplicit-templates,
4158 flax-vector-conversions, fms-extensions, fnil-receivers,
4159 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4160 frtti, fshort-double, fshort-enums, fshort-wchar,
4161 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4162 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4163 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4164 gen-decls, undef): Use Var.
4165 (fdefault-inline, foptional-diags): Document as doing nothing.
4166 * c-opts.c (c_common_handle_option): Remove cases for options now
4167 using Var. Mark ignored options as such.
4168
39dabefd
SB
41692010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4170
9faeb493 4171 * c-common.c: Moved to here from parent directory.
39dabefd
SB
4172 * c-common.def: Likewise.
4173 * c-common.h: Likewise.
4174 * c-cppbuiltin.c: Likewise.
4175 * c-dump.c: Likewise.
4176 * c-format.c: Likewise.
4177 * c-format.h : Likewise.
4178 * c-gimplify.c: Likewise.
4179 * c-lex.c: Likewise.
4180 * c-omp.c: Likewise.
4181 * c.opt: Likewise.
4182 * c-opts.c: Likewise.
4183 * c-pch.c: Likewise.
4184 * c-ppoutput.c: Likewise.
4185 * c-pragma.c: Likewise.
4186 * c-pragma.h: Likewise.
4187 * c-pretty-print.c: Likewise.
4188 * c-pretty-print.h: Likewise.
4189 * c-semantics.c: Likewise.
4190 * stub-objc.c: Likewise.
4191
4192 * c-common.c: Include gt-c-family-c-common.h.
4193 * c-pragma.c: Include gt-c-family-c-pragma.h.
4194\f
23a5b65a 4195Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
4196
4197Copying and distribution of this file, with or without modification,
4198are permitted in any medium without royalty provided the copyright
4199notice and this notice are preserved.