]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
gcc/ada/
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
3754d046 12014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2
3 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
4 enum from machine_mode.
5
1140c305 62014-10-28 Andrew MacLeod <amacleod@redhat.com>
7
8 * c-family/c-common.c: Adjust include files.
9 * c-family/c-gimplify.c: Ditto.
10 * c-family/cilk.c: Ditto.
11 * c-family/c-pragma.c: Ditto.
12 * c-family/c-ubsan.c: Ditto.
13
94ea8568 142014-10-27 Andrew MacLeod <amacleod@redhat.com>
15
16 * c-gimplify.c: Adjust include files.
17
32ecf960 182014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
19
20 PR c++/53061
21 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
22 c_common_initialize_diagnostics.
23 * c-common.h: Likewise.
24
85fecbe2 252014-10-24 Marek Polacek <polacek@redhat.com>
26
27 PR c/56980
28 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
29 print "struct"/"union"/"enum" for typedefed names.
30
e7ec033a 312014-10-23 Marek Polacek <polacek@redhat.com>
32
33 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
34 in unsigned type.
35
c2598081 362014-10-22 Jakub Jelinek <jakub@redhat.com>
37 Yury Gribov <y.gribov@samsung.com>
38
39 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
40 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
41 instead of flag_sanitize_recover as bool flag.
42
acebb7e2 432014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
44
45 * cilk.c: Revert previous change.
46
6115016c 472014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
48
49 PR c/63307
50 * cilk.c: Include vec.h.
51 (struct cilk_decls): New structure.
52 (wrapper_parm_cb): Split this function to...
53 (fill_decls_vec): ...this...
54 (create_parm_list): ...and this.
55 (compare_decls): New function.
56 (for_local_cb): Remove.
57 (wrapper_local_cb): Ditto.
58 (build_wrapper_type): For now first traverse and fill vector of
59 declarations then sort it and then deal with sorted vector.
60 (cilk_outline): Ditto.
61 (declare_one_free_variable): Ditto.
62
e610d2b2 632014-10-17 Marek Polacek <polacek@redhat.com>
64
65 * c-opts.c (c_common_post_options): Set warn_implicit_int.
66 * c.opt (Wimplicit-int): Initialize to -1.
67
a3020f2f 682014-10-16 Andrew MacLeod <amacleod@redhat.com>
69
70 * c-pragma.c: Adjust include files.
71 * c-semantics.c: Likewise.
72
926ddd2c 732014-10-16 DJ Delorie <dj@redhat.com>
74
75 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
76 multiples of bytes.
77
b0542e7c 782014-10-14 Jason Merrill <jason@redhat.com>
79
80 PR c++/63455
81 * c-common.h (CPP_PREPARSED_EXPR): New.
82 (N_CP_TTYPES): Adjust.
83
b2601928 842014-10-15 Marek Polacek <polacek@redhat.com>
85
86 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
87
9f75f026 882014-10-14 DJ Delorie <dj@redhat.com>
89
90 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
91 types, not just __int128.
92 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
93 types, not just __int128.
94 (cpp_atomic_builtins): Round pointer sizes up.
95 (type_suffix): Use type precision, not specific types.
96 * c-common.c (c_common_reswords): Remove __int128 special case.
97 (c_common_type_for_size): Check for all __intN types, not just
98 __int128.
99 (c_common_type_for_mode): Likewise.
100 (c_common_signed_or_unsigned_type): Likewise.
101 (c_build_bitfield_integer_type): Likewise.
102 (c_common_nodes_and_builtins): Likewise.
103 (keyword_begins_type_specifier): Likewise.
104 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
105 __intN variants.
106
2ef51f0e 1072014-10-12 Trevor Saunders <tsaunders@mozilla.com>
108
109 * c-common.c: Use hash_table instead of hashtab.
110
5b8257e3 1112014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
112
113 * c-family/c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
114 C++11 section.
115
5e84569c 1162014-10-03 Marc Glisse <marc.glisse@inria.fr>
117
118 PR c++/54427
119 PR c++/57198
120 PR c++/58845
121 * c-common.c (warn_logical_operator): Punt for vectors.
122
f6751ff2 1232014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
124
125 Implement SD-6: SG10 Feature Test Recommendations
126 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
127 macros and the __has_header macro.
128
c33e051d 1292014-09-30 Jason Merrill <jason@redhat.com>
130
f76a9aa8 131 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
132 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
133 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
134
717e52f9 135 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
136 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
137
c33e051d 138 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
139 * c-common.c (c_common_reswords): Remove __is_convertible_to.
140
5213d6c9 1412014-09-24 Marek Polacek <polacek@redhat.com>
142
143 PR c/61405
144 PR c/53874
145 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
146
6b722052 1472014-09-23 Andi Kleen <ak@linux.intel.com>
148
149 * c-common.c (handle_no_reorder_attribute): New function.
150 (c_common_attribute_table): Add no_reorder attribute.
151
0cb69d12 1522014-09-22 Joseph Myers <joseph@codesourcery.com>
153
154 * c-cppbuiltin.c (c_cpp_builtins): Define
155 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
156 modes.
157
168dfbf0 1582014-09-18 Joseph Myers <joseph@codesourcery.com>
159
160 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
161 for supported floating-point modes.
162
b83705f4 1632014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
164
165 * c.opt (Wpsabi): Use LangEnabledBy.
166 * c-opts.c (c_common_handle_option): Do not handle here.
167
d5957f0d 1682014-09-12 Joseph Myers <joseph@codesourcery.com>
169
170 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
171 macros for floating-point modes.
172
bae6edff 1732014-09-11 Marc Glisse <marc.glisse@inria.fr>
174
175 PR target/58757
176 * c-cppbuiltin.c (builtin_define_float_constants): Correct
177 __*_DENORM_MIN__ without denormals.
178
73a69d02 1792014-09-10 Jakub Jelinek <jakub@redhat.com>
180
181 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
182 ubsan_instrument_vla, ubsan_instrument_return): Adjust
183 ubsan_create_data callers.
184 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
185 index is constant or BIT_AND_EXPR with constant mask and is
186 small enough for the bound.
187 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
188 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
189
7ff8db31 1902014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
191
192 * c.opt: Add CppReason to various flags.
193 (Wdate-time): Re-sort.
194 * c-common.c: Include c-common.h earlier.
195 (struct reason_option_codes_t): Delete.
196 (c_option_controlling_cpp_error): Prefix global type and struct
197 with cpp_.
198
bcc1f37e 1992014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
200
201 * c.opt (Wnormalized): New.
202 (Wnormalized=): Use Enum and Reject Negative.
203 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
204
b660d3c6 2052014-09-08 Joseph Myers <joseph@codesourcery.com>
206
207 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
208 digits of floating-point modes if -fbuilding-libgcc.
209
325b8c3c 2102014-09-05 Joseph Myers <joseph@codesourcery.com>
211
212 * c-cppbuiltin.c (c_cpp_builtins): Also define
213 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
214 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
215 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
216 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
217 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
218 __LIBGCC_STACK_GROWS_DOWNWARD__,
219 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
220 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
221 __LIBGCC_DWARF_FRAME_REGISTERS__,
222 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
223 __LIBGCC_STACK_POINTER_REGNUM__ and
224 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
225 (builtin_define_with_value): Handle backslash-escaping in string
226 macro values.
227
1e074e77 2282014-09-05 Richard Biener <rguenther@suse.de>
229
230 PR middle-end/63148
231 * c-format.c (check_format_arg): Properly handle
232 effectively signed POINTER_PLUS_EXPR offset.
233
04afd878 2342014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
235
236 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
237 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
238 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
239 and Init.
240 * c-opts.c (c_common_handle_option): Do not handle here.
241 (sanitize_cpp_opts): Likewise.
242 * c-common.c (struct reason_option_codes_t): Handle
243 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
244
a3f448f0 2452014-09-03 Marek Polacek <polacek@redhat.com>
246
247 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
248
40750995 2492014-09-02 Jakub Jelinek <jakub@redhat.com>
250 Balaji V. Iyer <balaji.v.iyer@intel.com>
251 Igor Zamyatin <igor.zamyatin@intel.com>
252
253 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
254 * c-common.c (c_common_reswords): Added _Cilk_for.
255 * c-common.h (enum rid): Added RID_CILK_FOR.
256 (cilk_for_number_of_iterations): Add declaration.
257 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
258 CILK_FOR.
259 * c-pragma.c (init_pragma): Register "grainsize" pragma.
260 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
261
f0fbe519 2622014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
263
264 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
265 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
266 Wundef): Use CPP, Var and Init.
267 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
268
a7d2e480 2692014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
270
271 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
272 * c-opts.c (c_common_handle_option): Do not handle here.
273
c35e53f1 2742014-08-25 Jason Merrill <jason@redhat.com>
275
276 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
277 -std=c++14 and -std=gnu++14, rather than the reverse.
278 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
279 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
280 * c-common.h (cxx_dialect): Remove cxx1y.
281
4e454776 2822014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
283
284 * c-common.h (enum cxx_dialect): Add cxx14.
285 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
286 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
287 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
288
af1a80f2 2892014-08-22 Jason Merrill <jason@redhat.com>
290
291 * c.opt (std=gnu++17): Fix alias.
292
dc6229e8 2932014-08-22 Marek Polacek <polacek@redhat.com>
294
295 PR c++/62199
296 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
297 check for vector types. Drop LHS argument.
298 * c-common.h (warn_logical_not_parentheses): Adjust.
299
ba7f7c88 3002014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
301
302 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
303 (Wmultichar): Likewise.
304 (Wdate-time): Use C-family languages instead of Common. Use CPP
305 and Var.
306 * c-opts.c (c_common_handle_option): Do not handle the above
307 options here.
308 (sanitize_cpp_opts): Likewise.
309
399d4f80 3102014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
311
312 PR fortran/44054
313 * c-opts.c: Include tree-diagnostics.h.
314 (c_diagnostic_finalizer): New.
315 (c_common_initialize_diagnostics): Use it.
316
1babed5f 3172014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
318
319 PR preprocessor/51303
320 * c-common.c (struct reason_option_codes_t option_codes):
321 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
322
3636964b 3232014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
324
325 PR c/60975
326 PR c/53063
327 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
328 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
329 (c_common_post_options): Call init_global_opts_from_cpp.
330 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
331
78bf4156 3322014-08-19 Marek Polacek <polacek@redhat.com>
333
334 PR c++/62153
335 * c-common.c (maybe_warn_bool_compare): New function.
336 * c-common.h (maybe_warn_bool_compare): Declare.
337 * c.opt (Wbool-compare): New option.
338
508ea33a 3392014-08-19 Marek Polacek <polacek@redhat.com>
340
341 * c.opt (Wc99-c11-compat): New option.
342
806fe15e 3432014-08-19 Marek Polacek <polacek@redhat.com>
344
345 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
346 to warn_c90_c99_compat.
347 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
348 to -1.
349
6c867de1 3502014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
351 Steven Bosscher <steven@gcc.gnu.org>
352
353 PR c/52952
354 * c-format.c: Add extra_arg_loc and format_string_loc to struct
355 format_check_results.
356 (check_function_format): Use true and add comment for boolean
357 argument.
358 (finish_dollar_format_checking): Use explicit location when warning.
359 (check_format_info): Likewise.
360 (check_format_arg): Set extra_arg_loc and format_string_loc.
361 (check_format_info_main): Use explicit location when warning.
362 (check_format_types): Pass explicit location.
363 (format_type_warning): Likewise.
364
dc8078a3 3652014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
366
367 PR fortran/44054
368 * c-format.c: Handle Fortran flags.
369
d271ec7e 3702014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
371
372 PR other/61962
373 * array-notation-common.c (find_rank): Added handling for other
374 types of references.
375
890c2e2f 3762014-08-10 Marek Polacek <polacek@redhat.com>
377
378 PR c/51849
379 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
380 * c.opt (Wc90-c99-compat): Add option.
381
7149db5f 3822014-08-07 Trevor Saunders <tsaunders@mozilla.com>
383
384 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
385
2d2f6a15 3862014-08-03 Marek Polacek <polacek@redhat.com>
387
388 * c-common.c (check_case_value): Add location_t parameter. Use it.
389 (c_add_case_label): Pass loc to check_case_value.
390
06ecf488 3912014-08-02 Trevor Saunders <tsaunders@mozilla.com>
392
393 * cilk.c: Use hash_map instead of pointer_map.
394
431205b7 3952014-08-02 Trevor Saunders <tsaunders@mozilla.com>
396
397 * c-gimplify.c: Use hash_set instead of pointer_set.
398
3394c80c 3992014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
400
401 PR middle-end/61455
402 * array-notation-common.c (extract_array_notation_exprs): Handling
403 of DECL_EXPR added.
404
392dee1e 4052014-08-01 Jakub Jelinek <jakub@redhat.com>
406
407 * c-common.h (min_align_of_type): Removed prototype.
408 * c-common.c (min_align_of_type): Removed.
409 * c-ubsan.h (ubsan_maybe_instrument_reference,
410 ubsan_maybe_instrument_member_call): New prototypes.
411 * c-ubsan.c: Include stor-layout.h and builtins.h.
412 (ubsan_maybe_instrument_reference_or_call,
413 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
414 functions.
415
f22a2cb7 4162014-07-31 Marc Glisse <marc.glisse@inria.fr>
417
418 PR c++/60517
419 * c.opt (-Wreturn-local-addr): Move to common.opt.
420
87b0198f 4212014-07-30 Jason Merrill <jason@redhat.com>
422
423 PR c++/61659
424 PR c++/61687
425 Revert:
426 * c.opt (-fuse-all-virtuals): New.
427
74691f46 4282014-07-30 Tom Tromey <tromey@redhat.com>
429
430 PR c/59855
431 * c.opt (Wdesignated-init): New option.
432 * c-common.c (c_common_attribute_table): Add "designated_init".
433 (handle_designated_init): New function.
434
9140d56f 4352014-07-24 Marek Polacek <polacek@redhat.com>
436
437 PR c/57653
438 * c-opts.c (c_finish_options): If -imacros is in effect, return.
439
a09c5cc2 4402014-07-16 Dodji Seketeli <dodji@redhat.com>
441
442 PR preprocessor/60723 - missing system-ness marks for macro tokens
443 * c-ppoutput.c (struct print::prev_was_system_token): New data
444 member.
445 (init_pp_output): Initialize it.
446 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
447 (do_line_change): Return a flag saying if a line marker was
448 emitted or not.
449 (scan_translation_unit): Detect if the system-ness of the token we
450 are about to emit is different from the one of the previously
451 emitted token. If so, emit a line marker. Avoid emitting useless
452 adjacent line markers. Avoid emitting line markers for tokens
453 originating from the expansion of built-in macros.
454 (scan_translation_unit_directives_only): Adjust.
455
2b25b62f 4562014-07-15 Marek Polacek <polacek@redhat.com>
457
458 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
459 TYPE_MAX_VALUE is NULL.
460
305d96bc 4612014-07-14 Jakub Jelinek <jakub@redhat.com>
462
463 PR middle-end/61294
464 * c.opt (Wmemset-transposed-args): New warning.
465
8ea4660d 4662014-07-10 Jason Merrill <jason@redhat.com>
467
468 PR c++/61659
469 PR c++/61687
470 * c.opt (-fuse-all-virtuals): New.
471
cd480f3d 4722014-07-09 Richard Biener <rguenther@suse.de>
473
474 PR c-family/61741
475 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
476 using unsigned arithmetic if overflow does not wrap instead of
477 if overflow is undefined.
478
87d59e72 4792014-07-06 Marek Polacek <polacek@redhat.com>
480
481 PR c/6940
482 * c.opt (Wsizeof-array-argument): New option.
483
d69521d8 4842014-07-03 Jakub Jelinek <jakub@redhat.com>
485
486 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
487 comments->count <= 1, as comments->entries might be NULL.
488
1207866e 4892014-07-01 Marek Polacek <polacek@redhat.com>
490
491 * c.opt (Wint-conversion): New option.
492
7a6bbb76 4932014-07-01 Marek Polacek <polacek@redhat.com>
494
495 PR c/58286
496 * c.opt (Wincompatible-pointer-types): New option.
497
9d4eeb52 4982014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
499
500 PR c++/51400
501 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
502 Do not discard TYPE_QUALS of type.
503
4b53bc0f 5042014-06-26 Jason Merrill <jason@redhat.com>
505
506 * c-common.h (enum cxx_dialect): Add cxx1z.
507 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
508 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
509
a8a8d4ea 5102014-06-26 Teresa Johnson <tejohnson@google.com>
511
512 * c-common.h (get_dump_info): Declare.
513 * c-gimplify.c (c_genericize): Use saved dump files.
514 * c-opts.c (c_common_parse_file): Begin and end dumps
515 once around parsing invocation.
516 (get_dump_info): New function.
517
1f6be080 5182014-06-23 Marek Polacek <polacek@redhat.com>
519 Andrew MacLeod <amacleod@redhat.com>
520
521 PR c/61553
522 * c-common.c (get_atomic_generic_size): Don't segfault if the
523 type doesn't have a size.
524
5ef6b660 5252014-06-20 Marek Polacek <polacek@redhat.com>
526
527 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
528 (ubsan_walk_array_refs_r): New function.
529 (c_genericize): Instrument array bounds.
530 * c-ubsan.c: Include "internal-fn.h".
531 (ubsan_instrument_division): Mark instrumented arrays as having
532 side effects. Adjust ubsan_type_descriptor call.
533 (ubsan_instrument_shift): Likewise.
534 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
535 (ubsan_instrument_bounds): New function.
536 (ubsan_array_ref_instrumented_p): New function.
537 (ubsan_maybe_instrument_array_ref): New function.
538 * c-ubsan.h (ubsan_instrument_bounds): Declare.
539 (ubsan_array_ref_instrumented_p): Declare.
540 (ubsan_maybe_instrument_array_ref): Declare.
541
5422014-06-20 Hale Wang <hale.wang@arm.com>
3ccd1e6e 543
544 PR lto/61123
545 * c.opt (fshort-enums): Add to LTO.
546 * c.opt (fshort-wchar): Likewise.
547
78438f31 5482014-06-16 Marek Polacek <polacek@redhat.com>
549
550 PR c/60439
551 * c.opt (Wswitch-bool): Add Var.
552
5fddcf34 5532014-06-12 Jakub Jelinek <jakub@redhat.com>
554
555 PR middle-end/61486
556 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
557 #pragma omp target teams or
558 #pragma omp {,target }teams distribute simd.
559
74b777e5 5602014-06-12 Jason Merrill <jason@redhat.com>
561
562 * c.opt (Wabi=, fabi-compat-version): New.
563 * c-opts.c (c_common_handle_option): Handle -Wabi=.
564 (c_common_post_options): Handle flag_abi_compat_version default.
565 Disallow -fabi-compat-version=1.
566 * c-common.h (abi_version_crosses): New.
567
738a6bda 5682014-06-11 Jan Hubicka <hubicka@ucw.cz>
569
570 * c-family/c-common.c (handle_section_attribute): Update handling for
571 section names that are no longer trees.
572
cf5f881f 5732014-06-10 Jakub Jelinek <jakub@redhat.com>
574
575 PR fortran/60928
576 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
577 (omp_pragmas): ... back here.
578
32dc1512 5792014-06-05 Marek Polacek <polacek@redhat.com>
580
581 PR c/49706
582 * c-common.c (warn_logical_not_parentheses): New function.
583 * c-common.h (warn_logical_not_parentheses): Declare.
584 * c.opt (Wlogical-not-parentheses): New option.
585
f61a9bc2 5862014-06-04 Marek Polacek <polacek@redhat.com>
587
588 PR c/30020
589 * c-common.c (check_case_bounds): Add location parameter.
590 Use it.
591 (c_add_case_label): Pass loc to check_case_bounds.
592
c69ec07d 5932014-06-03 Marek Polacek <polacek@redhat.com>
594
595 PR c/60439
596 * c.opt (Wswitch-bool): New option.
597
3c77ca67 5982014-05-22 Thomas Schwinge <thomas@codesourcery.com>
599
68a2c870 600 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
601 Remove prototypes.
602 (record_types_used_by_current_var_decl): Move prototype to where
603 it belongs.
604
3c77ca67 605 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
606 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
607 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
608
3ab4693e 6092014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
610
611 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
612 * c-common.c (c_common_nodes_and_builtins): Don't initialize
613 void_zero_node.
614 * c-pretty-print.c (pp_c_void_constant): New function.
615 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
616 (c_pretty_printer::expression): Handle VOID_CST.
617 * cilk.c (extract_free_variables): Likewise.
618 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
619 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
620
25a27413 6212014-05-17 Trevor Saunders <tsaunders@mozilla.com>
622
623 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
624 * c-pragma.c (push_alignment): Adjust.
625 (handle_pragma_push_options): Likewise.
626
3e5a8b00 6272014-05-09 Marek Polacek <polacek@redhat.com>
628
629 PR c/50459
630 * c-common.c (check_user_alignment): Return -1 if alignment is error
631 node.
632 (handle_aligned_attribute): Don't call default_conversion on
633 FUNCTION_DECLs.
634 (handle_vector_size_attribute): Likewise.
635 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
636 (handle_sentinel_attribute): Call default_conversion and allow even
637 integral types as an argument.
638
c2c4ae8d 6392014-05-08 Marek Polacek <polacek@redhat.com>
640
641 PR c/61053
642 * c-common.c (min_align_of_type): New function factored out from...
643 (c_sizeof_or_alignof_type): ...here.
644 * c-common.h (min_align_of_type): Declare.
645
2026249a 6462014-05-08 Marek Polacek <polacek@redhat.com>
647
648 PR c/61077
649 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
650 parameter type of main.
651
33c8dcfe 6522014-05-07 DJ Delorie <dj@redhat.com>
653
654 * c-cppbuiltin.c (print_bits_of_hex): New.
655 (builtin_define_type_minmax): Print values using hex so as not to
656 require a pre-computed list of string values.
657
960d5a55 6582014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
659 Mike Stump <mikestump@comcast.net>
660 Richard Sandiford <rdsandiford@googlemail.com>
661
662 * c-ada-spec.c: Include wide-int.h.
663 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
664 (dump_generic_ada_node): Use wide-int interfaces.
665 * c-common.c: Include wide-int-print.h.
666 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
667 (pointer_int_sum): Use wide-int interfaces.
668 (c_common_nodes_and_builtins): Use make_int_cst.
669 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
670 (handle_alloc_size_attribute): Use wide-int interfaces.
671 (get_nonnull_operand): Likewise.
672 * c-format.c (get_constant): Use tree_fits_uhwi_p.
673 * c-lex.c: Include wide-int.h.
674 (narrowest_unsigned_type): Take a widest_int rather than two
675 HOST_WIDE_INTs.
676 (narrowest_signed_type): Likewise.
677 (interpret_integer): Update accordingly. Use wide-int interfaces.
678 (lex_charconst): Use wide-int interfaces.
679 * c-pretty-print.c: Include wide-int.h.
680 (pp_c_integer_constant): Use wide-int interfaces.
681 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
682 INT_CST_LT_UNSIGNED.
683
bbb88b31 6842014-05-06 Richard Biener <rguenther@suse.de>
685
686 * c-opts.c (c_common_post_options): For -freestanding,
687 -fno-hosted and -fno-builtin disable pattern recognition
688 if not enabled explicitely.
689
022d4718 6902014-05-02 Marek Polacek <polacek@redhat.com>
691
692 * c.opt (Wsizeof-pointer-memaccess): Describe option.
693
e4ab2ef3 6942014-05-01 Marek Polacek <polacek@redhat.com>
695
696 PR c/43245
697 * c.opt (Wdiscarded-qualifiers): Add.
698
52cc0072 6992014-04-30 Marek Polacek <polacek@redhat.com>
700
701 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
702 INT_MIN / -1 sanitization only for integer types.
703
4a026b48 7042014-04-25 Marek Polacek <polacek@redhat.com>
705
706 PR c/18079
707 * c-common.c (handle_noinline_attribute): Warn if the attribute
708 conflicts with always_inline attribute.
709 (handle_always_inline_attribute): Warn if the attribute conflicts
710 with noinline attribute.
711
90e645fa 7122014-04-25 Marek Polacek <polacek@redhat.com>
713
714 PR c/60156
715 * c-common.c (check_main_parameter_types): Warn about variadic main.
716
db103ea4 7172014-04-24 Mike Stump <mikestump@comcast.net>
718
719 * c.opt (Wshadow-ivar): Default to on.
720
06511efd 7212014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
722
723 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
724
cdf34fca 7252014-04-23 Marek Polacek <polacek@redhat.com>
726
727 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
728
7311d7c1 7292014-04-22 Jakub Jelinek <jakub@redhat.com>
730
731 PR sanitizer/60275
732 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
733 if flag_sanitize_undefined_trap_on_error.
734 (ubsan_instrument_division, ubsan_instrument_shift,
735 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
736 if !flag_sanitize_recover.
737
c1917557 7382014-04-22 Marc Glisse <marc.glisse@inria.fr>
739
740 PR libstdc++/43622
741 * c-common.c (registered_builtin_types): Make non-static.
742 * c-common.h (registered_builtin_types): Declare.
743
b2ca6510 7442014-04-14 Richard Biener <rguenther@suse.de>
745 Marc Glisse <marc.glisse@inria.fr>
746
747 PR c/60819
748 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
749 apply may-alias the scalar pointer type when applicable.
750
855372a3 7512014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
752
753 PR middle-end/60467
754 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
755 as possible argument for Cilk_spawn.
756
4012a986 7572014-04-11 Tobias Burnus <burnus@net-b.de>
758
759 PR c/60194
760 * c.opt (Wformat-signedness): Add
761 * c-format.c(check_format_types): Use it.
762
0d284870 7632014-04-11 Jason Merrill <jason@redhat.com>
764
765 PR c++/57926
766 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
767 default_conversion for an array argument.
768
a34c1231 7692014-04-08 Marek Polacek <polacek@redhat.com>
770
771 PR sanitizer/60745
772 * c-ubsan.c: Include asan.h.
773 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
774
a35a8e18 7752014-04-03 Nathan Sidwell <nathan@codesourcery.com>
776
777 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
778
b23e42b6 7792014-04-02 Marek Polacek <polacek@redhat.com>
780
781 * c-common.h (c_expand_expr): Remove declaration.
782
5a672e62 7832014-03-28 Jakub Jelinek <jakub@redhat.com>
784
785 PR c++/60689
786 * c-common.c (add_atomic_size_parameter): When creating new
787 params vector, push the size argument first.
788
d4d068c0 7892014-03-26 Jakub Jelinek <jakub@redhat.com>
790
791 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
792 ubsan_instrument_vla, ubsan_instrument_return): Adjust
793 ubsan_create_data callers.
794
446bdf5f 7952014-03-22 Jakub Jelinek <jakub@redhat.com>
796
797 PR debug/60603
798 * c-opts.c (c_finish_options): Restore cb_file_change call to
799 <built-in>.
800
8895f0a3 8012014-03-13 Jakub Jelinek <jakub@redhat.com>
802
803 PR middle-end/36282
804 * c-pragma.c (apply_pragma_weak): Only look at
805 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
806 DECL_ASSEMBLER_NAME_SET_P (decl).
807 (maybe_apply_pending_pragma_weaks): Exit early if
808 vec_safe_is_empty (pending_weaks) rather than only when
809 !pending_weaks.
810 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
811 set assembler name back to NULL afterwards.
812
7a5da2cd 8132014-03-11 Jason Merrill <jason@redhat.com>
814
815 * c.opt: Add -std=gnu++14.
816
95093889 8172014-03-11 Ian Bolton <ian.bolton@arm.com>
818
819 * c-opts.c (c_common_post_options): Don't override
820 -ffp-contract=fast if unsafe-math-optimizations is on.
821
c9a24b37 8222014-03-08 Paulo Matos <paulo@matos-sorge.com>
823
824 * c.opt: Enable LTO FE for fshort-double.
825
3f6dba6e 8262014-03-07 Jason Merrill <jason@redhat.com>
827
828 * c.opt: Add -std=c++14.
829
3bfdc94f 8302014-03-06 Marek Polacek <polacek@redhat.com>
831
832 PR c/60197
833 * cilk.c (contains_cilk_spawn_stmt): New function.
834 (contains_cilk_spawn_stmt_walker): Likewise.
835 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
836 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
837
8b3a6a4c 8382014-03-03 Jakub Jelinek <jakub@redhat.com>
839
840 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
841 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
842 even when flag_preprocess_only.
843
734ec290 8442014-02-26 Jason Merrill <jason@redhat.com>
845
846 PR c++/59231
847 PR c++/11586
848 * c-common.c (shorten_compare): Don't check
849 c_inhibit_evaluation_warnings.
850
81aec8b8 8512014-02-19 Jakub Jelinek <jakub@redhat.com>
852
d1081017 853 PR c/37743
854 * c-common.c (c_common_nodes_and_builtins): When initializing
855 c_uint{16,32,64}_type_node, also set corresponding
856 uint{16,32,64}_type_node to the same value.
857
81aec8b8 858 PR c++/60267
859 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
860 for PRAGMA_IVDEP if flag_preprocess_only.
861
312243bb 8622014-02-12 Jakub Jelinek <jakub@redhat.com>
863
864 PR c/60101
865 * c-common.c (merge_tlist): If copy is true, call new_tlist,
866 if false, add ADD itself, rather than vice versa.
867 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
868 copy. For SAVE_EXPR, only call merge_tlist once.
869
237e78b1 8702014-02-08 Jakub Jelinek <jakub@redhat.com>
871
872 PR middle-end/60092
873 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
874 and tree_to_uhwi.
875 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
876 functions.
877 (c_common_attribute_table): Add alloc_align and assume_aligned
878 attributes.
879
76fdceeb 8802014-02-06 Marek Polacek <polacek@redhat.com>
881
882 PR c/60087
883 * c-common.c (warn_for_sign_compare): Call warning_at with location
884 instead of warning.
885
4a4dea42 8862014-02-05 Marek Polacek <polacek@redhat.com>
887
888 PR c/53123
889 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
890 statement.
891
ec704957 8922014-02-04 Marek Polacek <polacek@redhat.com>
893
894 PR c/60036
895 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
896 SAVE_EXPR.
897
caf62483 8982014-02-03 Marc Glisse <marc.glisse@inria.fr>
899
900 PR c++/53017
901 PR c++/59211
902 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
903 handle_vector_size_attribute, handle_nonnull_attribute): Call
904 default_conversion on the attribute argument.
905 (handle_nonnull_attribute): Increment the argument number.
906
ec761d5a 9072014-01-31 Marek Polacek <polacek@redhat.com>
908
909 PR c/59963
910 * c-common.c (add_atomic_size_parameter): Pass vNULL to
911 build_function_call_vec.
912 (resolve_overloaded_builtin): Likewise.
913 * c-common.h (build_function_call_vec): Adjust declaration.
914
22a75734 9152014-01-30 Marek Polacek <polacek@redhat.com>
916
917 PR c/59940
918 * c-common.h (unsafe_conversion_p): Adjust declaration.
919 (warnings_for_convert_and_check): Likewise.
920 (convert_and_check): Likewise.
921 * c-common.c (unsafe_conversion_p): Add location parameter. Call
922 expansion_point_location_if_in_system_header on it.
923 (warnings_for_convert_and_check): Add location parameter. Call
924 expansion_point_location_if_in_system_header on it. Use it.
925 (convert_and_check): Add location parameter. Use it.
926 (conversion_warning): Likewise.
927 (c_add_case_label): Adjust convert_and_check calls.
928 (scalar_to_vector): Adjust unsafe_conversion_p calls.
929
a89e6c15 9302014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
931
932 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
933 flag_cilkplus.
934 * c-pragma.c (init_pragma): Likewise.
935 * c.opt: Likewise.
936
2623625f 9372014-01-23 Marek Polacek <polacek@redhat.com>
938
939 PR c/59846
940 * c-common.c (shorten_compare): Add location_t parameter.
941 * c-common.h (shorten_binary_op): Adjust declaration.
942
46da3601 9432014-01-23 Marek Polacek <polacek@redhat.com>
944
945 PR c/58346
946 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
947 * c-common.h: Declare it.
948
c9743c6a 9492014-01-20 Eric Botcazou <ebotcazou@adacore.com>
950
951 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
952 * c-ada-spec.c (dump_ads): Likewise.
953 (cpp_check): Likewise.
954 (dump_ada_specs): Likewise.
955
9562014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
36e33c6a 957
958 PR c++/49718
959 * c-common.c (handle_no_instrument_function_attribute): Allow
960 no_instrument_function attribute in class member
961 definition/declaration.
962
1248c663 9632014-01-15 Jakub Jelinek <jakub@redhat.com>
964
965 PR c/58943
966 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
967 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
968 being COMPOUND_EXPR.
969 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
970 operand a SAVE_EXPR and second MODIFY_EXPR.
971
6e5c480b 9722014-01-09 Jakub Jelinek <jakub@redhat.com>
973
974 PR target/58115
975 * c-pch.c (c_common_write_pch): Call
976 prepare_target_option_nodes_for_pch.
977
3aea1f79 9782014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
979
980 Update copyright years
981
e4f22041 9822014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
983
984 * array-notation-common.c, c-cilkplus.c: Use the standard form for
985 the copyright notice.
986
7fb0fe24 9872013-12-28 Eric Botcazou <ebotcazou@adacore.com>
988
989 * c-ada-spec.c (print_constructor): New function.
990 (print_destructor): Retrieve the origin of the destructor.
991 (print_ada_declaration): Revamp handling of constructors/destructors.
992
468088ac 9932013-12-23 Stuart Hastings <stuart@apple.com>
994 Bill Maddox <maddox@google.com>
995 Jason Merrill <jason@redhat.com>
996
997 * c.opt: Add -fdeclone-ctor-dtor.
998 * c-opts.c (c_common_post_options): Default to on iff -Os.
999
74acc703 10002013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1001
1002 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1003 attribute.
1004 * c-pragma.h (enum pragma_cilk_clause): Remove.
1005 (enum pragma_omp_clause): Added the following fields:
1006 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1007 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1008 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1009 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1010 PRAGMA_CILK_CLAUSE_UNIFORM.
1011
1012
433e804e 10132013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1014
1015 * cilk.c (cilk_outline): Made this function non-static.
1016 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1017 (create_cilk_wrapper): Added a new parameter: a function pointer.
1018 (c_install_body_w_frame_cleanup): Remove
1019 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1020 * c-common.h (cilk_outline): New prototype.
1021 (gimplify_cilk_spawn): Removed two parameters.
1022 (cilk_install_body_with_frame_cleanup): New prototype.
1023 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1024 CILK_SPAWN_STMT case.
1025
5bcc7e60 10262013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1027
e66325ea 1028 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1029
5bcc7e60 1030 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1031 (int_array_type_node): Remove.
1032 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1033
0b26ec77 10342013-12-05 Marek Polacek <polacek@redhat.com>
1035
1036 PR c/52023
1037 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1038 [ADJUST_FIELD_ALIGN].
1039
a179a7dc 10402013-12-04 Joseph Myers <joseph@codesourcery.com>
1041
1042 PR c/52023
1043 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1044 and check field alignment if set.
1045 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1046 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1047
137559b2 10482013-12-04 Jakub Jelinek <jakub@redhat.com>
1049 Marek Polacek <polacek@redhat.com>
1050
1051 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1052 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1053
648fd348 10542013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1055
1056 PR c/59309
1057 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1058 arguments.
1059
253e1cae 10602013-11-29 Jakub Jelinek <jakub@redhat.com>
1061
1062 PR c/59280
1063 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1064 goto invalid. If it is error_mark_node, don't issue further
1065 diagnostics.
1066
3e398f5b 10672013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1068
1069 * c.opt (Wopenmp-simd): New.
1070
020bc656 10712013-11-22 Jakub Jelinek <jakub@redhat.com>
1072
1073 * c-ubsan.h (ubsan_instrument_return): New prototype.
1074 * c-ubsan.c (ubsan_instrument_return): New function.
1075
bc61cadb 10762013-11-22 Andrew MacLeod <amacleod@redhat.com>
1077
1078 * c-common.c: Add required include files from gimple.h.
1079 * c-gimplify.c: Likewise
1080 * cilk.c: Likewise
1081
3df42822 10822013-11-22 David Malcolm <dmalcolm@redhat.com>
1083
1084 * c-common.c (unsafe_conversion_p): Remove use of
1085 EXPR_LOC_OR_HERE macro.
1086 (conversion_warning): Likewise.
1087 (warnings_for_convert_and_check): Likewise.
1088 (warn_for_collisions_1): Likewise.
1089 (shorten_compare): Likewise, and remove use of in_system_header
1090 macro, using the location from the former.
1091 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1092 (cb_def_pragma): Remove use of in_system_header macro.
1093 (lex_string): Likewise.
1094 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1095
8c53c46c 10962013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1097 Mike Stump <mikestump@comcast.net>
1098 Richard Sandiford <rdsandiford@googlemail.com>
1099
1100 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1101 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1102 tree_fits_shwi_p or tree_fits_uhwi_p.
1103 (dump_generic_ada_node): Likewise.
1104 * c-format.c (check_format_arg): Likewise.
1105 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1106
5200ef07 11072013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1108
1109 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1110
ca9d7d74 11112013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1112
1113 PR c/53001
1114 * c-common.c (unsafe_conversion_p): Make this function
1115 return an enumeration with more detail.
1116 (conversion_warning): Use the new return type of
1117 unsafe_conversion_p to separately warn either about conversions
1118 that lower floating point number precision or about the other
1119 kinds of conversions.
1120 * c-common.h (enum conversion_safety): New enumeration.
1121 (unsafe_conversion_p): switching return type to
1122 conversion_safety enumeration.
1123 * c.opt: Adding new warning -Wfloat-conversion and
1124 enabling it with -Wconversion.
1125
0391a567 11262013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1127
1128 * c-opts.c: Include plugin.h.
1129 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1130
19b928d9 11312013-11-19 Marek Polacek <polacek@redhat.com>
1132
1133 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1134 call.
1135 (ubsan_instrument_shift): Likewise.
1136 (ubsan_instrument_vla): Likewise.
1137
aa59f000 11382013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1139
1140 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1141 cast to unsigned type.
1142
08f817b3 11432013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1144
1145 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1146 tree_low_cst.
1147 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1148 rather than tree_low_cst.
1149
6a0712d4 11502013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1151
1152 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1153 tree_to_uhwi throughout.
1154
fcb97e84 11552013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1156
1157 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1158 tree_low_cst (..., 0) with tree_to_shwi throughout.
1159
cd4547bf 11602013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1161
1162 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1163 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1164
35ec552a 11652013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1166
1167 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1168 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1169
f2697631 11702013-11-15 Aldy Hernandez <aldyh@redhat.com>
1171
1172 * c-cilkplus.c: New file.
1173 * c-common.c (readonly_error): Add location argument.
1174 * c-common.h (readonly_error): Same.
1175 (c_finish_cilk_clauses): Protoize.
1176 (c_check_cilk_loop): Same.
1177 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1178 Do not fail on error_mark_node.
1179 Abstract increment canonicalization to here...
1180 (c_omp_for_incr_canonicalize_ptr): New.
1181 c-pragma.c (init_pragma): Register "simd" pragma.
1182 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1183 (enum pragma_cilk_clause): New.
1184
0aa8c34e 11852013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1186
1187 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1188 wchar_type and host_integerp checks.
1189
e795d6e1 11902013-11-14 Andrew MacLeod <amacleod@redhat.com>
1191
1192 * c-common.c: Likewise.
1193 * c-gimplify.c: Likewise.
1194 * cilk.c: Likewise.
1195
9ed99284 11962013-11-14 Diego Novillo <dnovillo@google.com>
1197
1198 * c-common.c: Include fold-const.h.
1199 Include stor-layout.h.
1200 Include calls.h.
1201 Include stringpool.h.
1202 Include attribs.h.
1203 Include varasm.h.
1204 Include trans-mem.h.
1205 * c-cppbuiltin.c: Include stor-layout.h.
1206 Include stringpool.h.
1207 * c-format.c: Include stringpool.h.
1208 * c-lex.c: Include stringpool.h.
1209 Include stor-layout.h.
1210 * c-pragma.c: Include stringpool.h.
1211 Include attribs.h.
1212 Include varasm.h.
1213 Include gcc-symtab.h.
1214 * c-pretty-print.c: Include stor-layout.h.
1215 Include attribs.h.
1216 * cilk.c: Include stringpool.h.
1217 Include calls.h.
1218
4fba5eb9 12192013-11-13 Joseph Myers <joseph@codesourcery.com>
1220
1221 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1222 * c-common.c (c_common_reswords): Add __auto_type.
1223 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1224
a8783bee 12252013-11-12 Andrew MacLeod <amacleod@redhat.com>
1226
e795d6e1 1227 * c-common.c: Include gimplify.h.
1228 * c-gimplify.c: Likewise.
1229 * cilk.c: Likewise.
1230 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1231 * c-ubsan.c: Don't include gimple.h.
a8783bee 1232
d184e0c0 12332013-11-12 Joseph Myers <joseph@codesourcery.com>
1234
1235 * c-common.c (c_common_reswords): Add _Thread_local.
1236
a056826c 12372013-11-09 Joseph Myers <joseph@codesourcery.com>
1238
1239 * c-common.c (atomic_size_supported_p): New function.
1240 (resolve_overloaded_atomic_exchange)
1241 (resolve_overloaded_atomic_compare_exchange)
1242 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1243 Use it instead of comparing size with a local list of sizes.
1244
b560fabd 12452013-11-07 Andrew MacLeod <amacleod@redhat.com>
1246 Joseph Myers <joseph@codesourcery.com>
1247
1248 * c-common.h (enum rid): Add RID_ATOMIC.
1249 * c-common.c (c_common_reswords): Add _Atomic.
1250 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1251 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1252 * c-format.c (check_format_types): Check for extra _Atomic
1253 qualifiers in format argument.
1254 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1255 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1256
5b1a0622 12572013-11-06 Tobias Burnus <burnus@net-b.de>
1258
1259 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1260
4f8f4cb8 12612013-11-06 Joseph Myers <joseph@codesourcery.com>
1262
1263 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1264 standards modes.
1265 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1266 to mean lack of IEEE 754 support.
1267
9148bda3 12682013-11-05 Tobias Burnus <burnus@net-b.de>
1269
1270 * c.opt (-Wdate-time): New option
1271 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1272
08c5f4d5 12732013-11-05 Joseph Myers <joseph@codesourcery.com>
1274
1275 * c-cppbuiltin.c (cpp_iec_559_value): Test
1276 flag_excess_precision_cmdline not flag_excess_precision.
1277
c630ef93 12782013-11-05 Tobias Burnus <burnus@net-b.de>
1279
1280 * c.opt (fopenmp-simd): New option.
1281 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1282 (omp_pragmas): ... this new struct.
1283 (c_pp_lookup_pragma): Also walk omp_pragmas.
1284 (init_pragma): Init pragmas for -fopenmp-simd.
1285
7354a89b 12862013-11-04 Marek Polacek <polacek@redhat.com>
1287
1288 PR c++/58979
1289 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1290
4c866b9b 12912013-11-04 Joseph Myers <joseph@codesourcery.com>
1292
1293 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1294 New functions.
1295 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1296
e2a6a333 12972013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1298
1299 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1300 (dump_ada_specs): Adjust prototype of second callback.
1301 * c-ada-spec.c (cpp_check): New global variable.
1302 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1303 (print_generic_ada_decl): Likewise.
1304 (has_static_fields): Change return type to bool and add guard.
1305 (has_nontrivial_methods): New predicate.
1306 (is_tagged_type): Change return type to bool.
1307 (separate_class_package): Call has_nontrivial_methods.
1308 (pp_ada_tree_identifier): Minor tweaks.
1309 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1310 (dump_ada_array_domains): Likewise.
1311 (dump_ada_array_type): Likewise.
1312 (dump_template_types): Remove cpp_check parameter and do not pass it to
1313 dump_generic_ada_node.
1314 (dump_ada_template): Likewise.
1315 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1316 recursively.
1317 (print_ada_methods): Change return type to integer. Remove cpp_check
1318 parameter and do not pass it down.
1319 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1320 dump_generic_ada_node.
1321 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1322 accessing methods.
1323 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1324 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1325 value of print_ada_methods.
1326 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1327 Set cpp_check to it before invoking dump_ada_nodes.
1328 (dump_ada_specs): Likewise.
1329
2c4c3477 13302013-11-03 Marek Polacek <polacek@redhat.com>
1331
1332 * c-ubsan.c: Don't include hash-table.h.
1333 (ubsan_instrument_vla): New function.
1334 * c-ubsan.h: Declare it.
1335
452659af 13362013-10-31 David Malcolm <dmalcolm@redhat.com>
1337
1338 Automated part of renaming of symtab_node_base to symtab_node.
1339
1340 Patch autogenerated by rename_symtab.py from
1341 https://github.com/davidmalcolm/gcc-refactoring-scripts
1342 revision 58bb219cc090b2f4516a9297d868c245495ee622
1343
1344 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1345 symtab_node_base to symtab_node.
1346
4d6f7dd4 13472013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1348
1349 Implement C++14 digit separators.
1350 * c-lex.c (interpret_float): Remove digit separators from scratch string
1351 before building real literal.
1352
06cfe805 13532013-10-30 Jakub Jelinek <jakub@redhat.com>
1354
1355 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1356
d037099f 13572013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1358
1359 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1360 fields.
1361 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1362 enabled.
1363 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1364 (insert_cilk_frame): New prototype.
1365 (cilk_init_builtins): Likewise.
1366 (gimplify_cilk_spawn): Likewise.
1367 (c_cilk_install_body_w_frame_cleanup): Likewise.
1368 (cilk_detect_spawn_and_unwrap): Likewise.
1369 (cilk_set_spawn_marker): Likewise.
1370 (build_cilk_sync): Likewise.
1371 (build_cilk_spawn): Likewise.
1372 * cilk.c: New file.
1373
02774f2d 13742013-10-29 David Malcolm <dmalcolm@redhat.com>
1375
1376 Patch autogenerated by refactor_symtab.py from
1377 https://github.com/davidmalcolm/gcc-refactoring-scripts
1378 revision 58bb219cc090b2f4516a9297d868c245495ee622
1379
1380 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1381 to a true class hierarchy.
1382 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1383
31fe10fd 13842013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1385
1386 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1387
b1c06ff9 13882013-10-26 Jeff Law <law@redhat.com>
1389
1390 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1391 * c-family/c.opt: Ignore and warn for mudflap options.
1392
48a972c8 13932013-10-24 Tobias Burnus <burnus@net-b.de>
4644b593 1394
1395 PR other/33426
1396 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1397 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1398
546a04b1 13992013-10-23 Jason Merrill <jason@redhat.com>
1400
1401 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1402
bc7bff74 14032013-10-11 Jakub Jelinek <jakub@redhat.com>
1404
d62c713e 1405 * c-common.h (omp_clause_mask::operator !=): New method.
1406 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1407 instead of if (mask & something) tests everywhere.
1408
bc7bff74 1409 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1410 201307 instead of 201107.
1411 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1412 (c_common_attribute_table): Add "omp declare target" and
1413 "omp declare simd" attributes.
1414 (handle_omp_declare_target_attribute,
1415 handle_omp_declare_simd_attribute): New functions.
1416 * c-omp.c: Include c-pragma.h.
1417 (c_finish_omp_taskgroup): New function.
1418 (c_finish_omp_atomic): Add swapped argument, if true,
1419 build the operation first with rhs, lhs arguments and use NOP_EXPR
1420 build_modify_expr.
1421 (c_finish_omp_for): Add code argument, pass it down to make_code.
1422 (c_omp_split_clauses): New function.
1423 (c_split_parallel_clauses): Removed.
1424 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1425 c_omp_declare_simd_clauses_to_decls): New functions.
1426 * c-common.h (omp_clause_mask): New type.
1427 (OMP_CLAUSE_MASK_1): Define.
1428 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1429 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1430 omp_clause_mask::operator |, omp_clause_mask::operator &,
1431 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1432 omp_clause_mask::operator ==): New methods.
1433 (enum c_omp_clause_split): New.
1434 (c_finish_omp_taskgroup): New prototype.
1435 (c_finish_omp_atomic): Add swapped argument.
1436 (c_finish_omp_for): Add code argument.
1437 (c_omp_split_clauses): New prototype.
1438 (c_split_parallel_clauses): Removed.
1439 (c_omp_declare_simd_clauses_to_numbers,
1440 c_omp_declare_simd_clauses_to_decls): New prototypes.
1441 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1442 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1443 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1444 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1445 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1446 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1447 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1448 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1449 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1450 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1451 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1452 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1453 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1454 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1455 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1456 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1457 PRAGMA_OMP_CLAUSE_UNIFORM.
1458
d7dcba40 14592013-10-09 Marc Glisse <marc.glisse@inria.fr>
1460
1461 PR tree-optimization/20318
1462 * c-common.c (handle_returns_nonnull_attribute): New function.
1463 (c_common_attribute_table): Add returns_nonnull.
1464
0b7282f1 14652013-10-03 Marc Glisse <marc.glisse@inria.fr>
1466
1467 PR c++/19476
1468 * c.opt (fcheck-new): Move to common.opt.
1469
51f553af 14702013-09-25 Marek Polacek <polacek@redhat.com>
1471 Jakub Jelinek <jakub@redhat.com>
1472
1473 PR sanitizer/58413
1474 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1475 an expression if we can prove it is correct.
1476 (ubsan_instrument_division): Likewise. Remove unnecessary
1477 check.
1478
05f893e1 14792013-09-18 Marek Polacek <polacek@redhat.com>
1480
1481 PR sanitizer/58411
1482 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1483 Declare it.
1484 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1485
236ce1d1 14862013-09-14 Iain Sandoe <iain@codesourcery.com>
1487
1488 PR target/48094
1489 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1490 fobjc-gc, freplace-objc-classes): Accept for LTO.
1491
f9f68d35 14922013-09-13 Jacek Caban <jacek@codeweavers.com>
1493
1494 * c-target.def: New hook
1495
ba2f764e 14962013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1497
1498 PR c++/43452
1499 * c.opt (Wdelete-incomplete): Add.
1500
73437615 15012013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1502
1503 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1504 (vector_types_compatible_elements_p): New function.
1505 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1506 declaration.
1507 (vector_types_compatible_elements_p): Declare.
1508
95af4c75 15092013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1510
1511 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1512 a virtual member function.
1513 (pp_simple_type_specifier): Remove.
1514 (pp_c_type_specifier): Likewise.
1515 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1516 Rename from pp_c_type_specifier. Adjust.
1517 (c_pretty_printer::c_pretty_printer): Do not assign to
1518 simple_type_specifier.
1519
eaab24b9 15202013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1521
1522 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1523 member function.
1524 (c_pretty_printer::storage_class_specifier): Likewise.
1525 (c_pretty_printer::initializer): Likewise.
1526 (pp_declaration): Remove.
1527 (pp_declaration_specifiers): Likewise.
1528 (pp_abstract_declarator): Likewise.
1529 (pp_declarator): Likewise.
1530 (pp_type_id): Likewise.
1531 (pp_statement): Likewise.
1532 (pp_constant): Likewise.
1533 (pp_id_expression): Likewise.
1534 (pp_primary_expression): Likewise.
1535 (pp_unary_expression): Likewise.
1536 (pp_multiplicative_expression): Likewise.
1537 (pp_conditional_expression): Likewise.
1538 (pp_assignment_expression): Likewise.
1539 (pp_expression): Likewise.
1540 (pp_c_type_id): Likewise.
1541 (pp_c_storage_class_specifier): Likewise.
1542 * c-pretty-print.c (pp_c_type_cast): Tidy.
1543 (pp_c_pointer): Likewise.
1544 (pp_c_type_specifier): Likewise.
1545 (pp_c_parameter_type_list): Likewise.
1546 (pp_c_function_definition): Likewise.
1547 (pp_c_init_declarator): Likewise.
1548 (pp_c_initializer_list): Likewise.
1549 (pp_c_constructor_elts): Likewise.
1550 (c_pretty_printer::direct_abstract_declarator): Likewise.
1551 (c_pretty_printer::declaration_specifiers): Likewise.
1552 (c_pretty_printer::primary_expression): Likewise.
1553 (c_pretty_printer::postfix_expression): Likewise.
1554 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1555 (c_pretty_printer::storage_class_specifier): Rename from
1556 pp_c_storage_class_specifier.
1557 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1558 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1559 storage_class_specifier, initializer, offset_list, flags.
1560
9e46467d 15612013-08-30 Marek Polacek <polacek@redhat.com>
1562
1563 * c-ubsan.c: New file.
1564 * c-ubsan.h: New file.
1565
36a8d9b9 15662013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1567
1568 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1569 member function.
1570 (c_pretty_printer::declaration_specifiers): Likewise.
1571 (c_pretty_printer::declarator): Likewise.
1572 (c_pretty_printer::abstract_declarator): Likewise.
1573 (c_pretty_printer::direct_abstract_declarator): Likewise.
1574 (c_pretty_printer::direct_declarator): Likewise.
1575 (c_pretty_printer::function_specifier): Likewise.
1576 (pp_declaration): Adjust.
1577 (pp_declaration_specifiers): Likewise.
1578 (pp_abstract_declarator): Likewise.
1579 (pp_direct_declarator): Likewise.
1580 (pp_function_specifier): Likewise.
1581 (pp_direct_abstract_declarator): Remove as unused.
1582 (pp_c_declaration): Remove.
1583 (pp_c_declaration_specifiers): Likewise.
1584 (pp_c_declarator): Likewise.
1585 (pp_c_direct_declarator): Likewise.
1586 (pp_c_function_specifier): Likewise.
1587 (pp_c_direct_abstract_declarator): Likewise.
1588 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1589 from pp_c_abstract_declarator. Adjust.
1590 (c_pretty_printer::direct_abstract_declarator): Rename from
1591 pp_c_direct_abstract_declarator. Adjust.
1592 (c_pretty_printer::function_specifier): Rename from
1593 pp_c_function_specifier. Adjust.
1594 (c_pretty_printer::declaration_specifiers): Rename from
1595 pp_c_declaration_specifiers. Adjust.
1596 (c_pretty_printer::direct_declarator): Rename from
1597 pp_c_direct_declarator. Adjust.
1598 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1599 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1600 (c_pretty_printer::c_pretty_printer): Do not assign to
1601 declaration, declaration_specifiers, declarator,
1602 direct_declarator, direct_abstract_declarator, function_specifier.
1603
30635c2e 16042013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1605
1606 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1607 virtual member function.
1608 (c_pretty_printer::multiplicative_expression): Likewise.
1609 (c_pretty_printer::conditional_expression): Likewise.
1610 (c_pretty_printer::assignment_expression): Likewise.
1611 (c_pretty_printer::expression): Likewise.
1612 (pp_unary_expression): Adjust.
1613 (pp_multiplicative_expression): Likewise.
1614 (pp_assignment_expression): Likewise.
1615 (pp_conditional_expression): Likewise.
1616 (pp_expression): Likewise.
1617 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1618 from pp_c_unary_expression. Adjust.
1619 (c_pretty_printer::multiplicative_expression): Rename from
1620 pp_c_multiplicative_expression. Adjust.
1621 (c_pretty_printer::conditional_expression): Rename from
1622 pp_c_conditional_expression. Adjust.
1623 (c_pretty_printer::assignment_expression): Rename from
1624 pp_c_assignment_expression. Adjust.
1625 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1626 (c_pretty_printer::c_pretty_printer): Do not assign to
1627 unary_expression, multiplicative_expression,
1628 conditional_expression, expression.
1629
027d08ed 16302013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1631
1632 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1633 virtual member function.
1634 (pp_postfix_expression): Adjust.
1635 (pp_c_postfix_expression): Remove.
1636 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1637 from pp_c_postfix_expression. Adjust.
1638 (c_pretty_printer::c_pretty_printer): Do not assign to
1639 postfix_expression.
1640
f873303a 16412013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1642
1643 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1644 virtua member function.
1645 (pp_primary_expression): Adjust.
1646 (pp_c_primary_expression): Remove.
1647 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1648 from pp_c_primary_expression. Adjust.
1649 (pp_c_initializer_list): Use pp_primary_expression.
1650 (c_pretty_printer::c_pretty_printer): Do not assign to
1651 primary_expression.
1652
08e3e481 16532013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1654
1655 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1656 * c-pretty-print.c (M_): Remove.
1657 (c_pretty_printer::translate_string): Define.
1658 (pp_c_type_specifier): Use it.
1659 (pp_c_primary_expression): Likewise.
1660 (pp_c_expression): Likewise.
1661
1fc4a87f 16622013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1663
1664 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1665 virtual function.
1666 (pp_c_id_expression): Remove.
1667 (pp_id_expression): Adjust.
1668 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1669 pp_c_id_expression. Adjust.
1670 (pp_c_postfix_expression): Use pp_id_expression.
1671 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1672
a6cb161b 16732013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1674
1675 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1676 member function.
1677 (pp_constant): Adjust.
1678 (pp_c_constant): Remove.
1679 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1680 pp_c_constant. Adjust.
1681 (pp_c_constant)
1682 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1683 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1684
eed6bc21 16852013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1686
1687 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1688 (c_pretty_printer::c_pretty_printer): Declare.
1689 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1690 c_pretty_printer_init. Adjust.
1691 (print_c_tree): Do not call c_pretty_printer_init.
1692 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1693
df558d2e 16942013-08-09 Arnaud Charlet <charlet@adacore.com>
1695
1696 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1697
42f9a786 16982013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1699
1700 PR c++/58080
1701 * c-common.c (pointer_int_sum): Add bool parameter.
1702 * c-common.h (pointer_int_sum): Adjust declaration.
1703
f874ddad 17042013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1705
1706 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1707 c_pretty_printer variable.
1708
a94db6b0 17092013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1710
1711 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1712 (pp_base): Remove.
1713 (pp_c_base): Likewise. Adjust users.
1714 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1715 (pp_c_whitespace): Do not call pp_base.
1716 (pp_c_left_paren): Likewise.
1717 (pp_c_right_paren): Likewise.
1718 (pp_c_left_brace): Likewise.
1719 (pp_c_right_brace): Likewise.
1720 (pp_c_left_bracket): Likewise.
1721 (pp_c_right_bracket): Likewise.
1722 (pp_c_dot): Likewise.
1723 (pp_c_ampersand): Likewise.
1724 (pp_c_star): Likewise.
1725 (pp_c_arrow): Likewise.
1726 (pp_c_semicolon): Likewise.
1727 (pp_c_complement): Likewise.
1728 (pp_c_exclamation): Likewise.
1729 (pp_c_direct_declarator): Likewise.
1730 (pp_c_ws_string): Likewise.
1731 (pp_c_identifier): Likewise.
1732 (pp_c_statement): Likewise.
1733 (print_c_tree): Likewise.
1734
1898176c 17352013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1736
1737 PR c++/58072
1738 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1739 provide useful error strings.
1740
70d60d1d 17412013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1742
1743 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1744 printer functions instead of pp_string or operators and punctuators.
1745 (dump_generic_ada_node): Likewise.
1746 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1747 (pp_c_relational_expression): Likewise.
1748 (pp_c_logical_or_expression): Likewise.
1749
dda4f0ec 17502013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1751
1752 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1753 functions instead of pp_character.
1754 (pp_ada_tree_identifier): Likewise.
1755 (dump_ada_double_name): Likewise.
1756 (dump_ada_function_declaration): Likewise.
1757 (dump_ada_array_domains): Likewise.
1758 (dump_template_types): Likewise.
1759 (dump_generic_ada_node): Likewise.
1760 (print_ada_declaration): Likewise.
1761 (print_ada_struct_decl): Likewise.
1762 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1763
7aa04c8d 17642013-07-23 Tom Tromey <tromey@redhat.com>
1765
1766 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1767 * c-common.c (c_common_reswords): Add _Generic.
1768
a04e8d62 17692013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1770
1771 * c-common.c: Fix typos.
1772 * c-common.h: Likewise.
1773
a96c3cc1 17742013-07-13 Lubos Lunak <l.lunak@suse.cz>
1775
1776 PR c++/55203
1777 * c-common.c (c_common_attribute_table): Add warn_unused.
1778 (handle_warn_unused_attribute): New.
1779
da31536d 17802013-07-10 Jakub Jelinek <jakub@redhat.com>
1781
1782 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1783 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1784
839f2f70 17852013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1786
1787 PR c++/57869
1788 * c.opt: Add Wconditionally-supported.
1789
73f353d0 17902013-07-08 Graham Stott <graham.stott@btinternet.com>
1791
1792 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1793 unused variables l_length and l_node.
1794
21ebaa24 17952013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
f5298614 1796
1797 PR c/57821
1798 * c-common.c (complete_array_type): Delay folding first index
1799 like other indices. When folding, check for index overflow.
1800
68ea4406 18012013-06-27 Marc Glisse <marc.glisse@inria.fr>
1802
1803 PR c++/57509
1804 * c-common.h (c_build_vec_perm_expr): New complain argument.
1805 * c-common.c (c_build_vec_perm_expr): Likewise.
1806 Use save_expr also in C++.
1807
60777f69 18082013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1809
1810 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1811 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1812 * c-opts.c (c_common_post_options): Likewise.
1813
839f2f70 18142013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
50acebe0 1815
1816 * array-notation-common.c (length_mismatch_in_expr): Changed the
1817 parameter type's from a dynamic array to a vec_tree. Also removed
1818 the size parameters.
1819 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1820 the change above.
1821
e9331eab 18222013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1823
1824 * c-common.h (struct cilkplus_an_parts): New structure.
1825 (struct cilkplus_an_loop_parts): Likewise.
1826 (cilkplus_extract_an_triplets): New prototype.
1827 (fix_sec_implicit_args): Likewise.
1828 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1829 (fix_sec_implicit_args): Likewise.
60777f69 1830
a9c99fc4 18312013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1832
1833 * array-notation-common.c (find_inv_trees): Removed an unwanted
1834 typecasting.
1835 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1836 enum rid to enum tree_code.
1837
f2526cce 18382013-06-11 Jan Hubicka <jh@suse.cz>
1839
1840 * c-common.c (handle_alias_ifunc_attribute): Do not set
1841 DECL_EXTERNAL for weakref variables.
1842 * c-pragma.c (handle_pragma_weak): Make sure aliases
1843 are not declared as external.
1844
09970d67 18452013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1846
1847 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1848 function from c/c-array-notation.c.
1849 (is_cilkplus_reduce_builtin): Likewise.
1850 (find_rank): Likewise.
1851 (extract_array_notation_exprs): Likewise.
1852 (replace_array_notations): Likewise.
1853 (find_inv_trees): Likewise.
1854 (replace_inv_trees): Likewise.
1855 (contains_array_notation_expr): Likewise.
1856 (find_correct_array_notation_type): Likewise.
1857 * c-common.h (struct inv_list): Moved this struct from the file
1858 c/c-array-notation.c and added a new field called additional tcodes.
1859 (length_mismatch_in_expr_p): New prototype.
1860 (is_cilkplus_reduce_builtin): Likewise.
1861 (find_rank): Likewise.
1862 (extract_array_notation_exprs): Likewise.
1863 (replace_array_notation): Likewise.
1864 (find_inv_trees): Likewise.
1865 (replace_inv_trees): Likewise.
1866 (find_correct_array_notation_type): Likewise.
839f2f70 1867
3c6d4197 18682013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1869
1870 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1871 function array_notation_init_builtins is called.
1872 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1873 * c-common.def (ARRAY_NOTATION_REF): New tree.
1874 * c-common.h (build_array_notation_expr): New function declaration.
1875 (build_array_notation_ref): Likewise.
1876 (extract_sec_implicit_index_arg): New extern declaration.
1877 (is_sec_implicit_index_fn): Likewise.
1878 (ARRAY_NOTATION_CHECK): New define.
1879 (ARRAY_NOTATION_ARRAY): Likewise.
1880 (ARRAY_NOTATION_START): Likewise.
1881 (ARRAY_NOTATION_LENGTH): Likewise.
1882 (ARRAY_NOTATION_STRIDE): Likewise.
1883 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1884 ARRAY_NOTATION_REF.
1885 (pp_c_expression): Likewise.
1886 * c.opt (flag_enable_cilkplus): New flag.
1887 * array-notation-common.c: New file.
1888
8e71dad2 18892013-05-14 Jakub Jelinek <jakub@redhat.com>
1890
1891 PR c++/57274
1892 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1893
432dd330 18942013-05-10 Marc Glisse <marc.glisse@inria.fr>
1895
1896 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1897 vectors.
1898
b156ec37 18992013-05-07 Han Shen <shenhan@google.com>
1900
1901 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1902
1a087624 19032013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1904
1905 * c-common.c (check_user_alignment): Emit error for negative values.
1906
1638c736 19072013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1908
1909 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1910
949dbf93 19112013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1912
1913 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1914 __GXX_EXPERIMENTAL_CXX1Y__.
1915
9205a6cc 19162013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1917 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1918
1919 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1920 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1921 to simply use OPT_Wpointer_arith.
1922 (c_sizeof_or_alignof_type): Likewise.
1923
05d0bce1 19242013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1925
1926 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1927
41609f8b 19282013-04-12 Jakub Jelinek <jakub@redhat.com>
1929
1930 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1931 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1932 specifiers.
1933
c671dc4f 19342013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1935
1936 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1937
ba125576 19382013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1939
1940 * c-common.c (pointer_int_sum): Remove dead code.
1941
9d3fa937 19422013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1943
1944 PR middle-end/56524
1945 * c-common.c (handle_optimize_attribute): Don't call
1946 save_optabs_if_changed.
1947
5ceebb21 19482013-03-05 Jakub Jelinek <jakub@redhat.com>
1949
1950 PR middle-end/56461
1951 * c-pch.c (pch_init): Free target_validity at the end.
1952
18eeed2b 19532013-03-04 Jakub Jelinek <jakub@redhat.com>
1954
1955 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1956
a9196da9 19572013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1958 Jakub Jelinek <jakub@redhat.com>
1959
1960 PR sanitizer/56454
1961 * c-common.c (handle_no_sanitize_address_attribute): New function.
1962 (c_common_attribute_table): Add no_sanitize_address attribute.
1963 (handle_no_address_safety_analysis_attribute): Add
1964 no_sanitize_address attribute, not no_address_safety_analysis
1965 attribute.
1966
15c27dda 19672013-02-18 Aldy Hernandez <aldyh@redhat.com>
08c7d04b 1968
1969 PR target/52555
1970 * c-common.c (handle_optimize_attribute): Call
1971 save_optabs_if_changed.
1972
19426fe1 19732013-02-18 Jakub Jelinek <jakub@redhat.com>
1974 Steven Bosscher <steven@gcc.gnu.org>
1975
1976 PR pch/54117
1977 * c-opts.c (c_common_post_options): If debug info is enabled
1978 and non-dwarf*, refuse to load PCH files and when writing PCH
1979 file warn.
1980
df936998 19812013-02-05 Jakub Jelinek <jakub@redhat.com>
1982
1983 PR middle-end/56167
1984 * c-common.c (handle_error_attribute): Fix condition.
1985
ae0c3984 19862013-01-30 Jakub Jelinek <jakub@redhat.com>
1987
1988 PR c++/55742
1989 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1990
1c4973d7 19912013-01-18 Jason Merrill <jason@redhat.com>
1992
1993 PR target/54908
1994 * c.opt (-fextern-tls-init): New.
1995 * c-opts.c (c_common_post_options): Handle it.
1996
7c834436 19972013-01-09 Jakub Jelinek <jakub@redhat.com>
1998
1999 PR c/48418
2000 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2001 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2002 and is either negative or bigger or equal to type precision
2003 of the first operand.
2004
5abaa10a 20052012-12-03 Marek Polacek <polacek@redhat.com>
2006
2007 PR c/55570
2008 * c-common.c (check_user_alignment): Swap order of tests,
2009 check TREE_CODE first.
2010
324ca377 20112012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2012
2013 PR c++/52654
2014 * c-common.h (overflow_type): New enum.
2015 (build_userdef_literal): Add overflow_type argument.
2016 (tree_userdef_literal): Add overflow_type.
2017 (USERDEF_LITERAL_OVERFLOW): New access macro.
2018 * c-common.c (build_userdef_literal): Add overflow_type
2019 argument.
2020 * c-lex.c (c_lex_with_flags): Add overflow_type to
2021 build_userdef_literal calls.
2022 (interpret_integer, interpret_float): Add overflow_type argument.
2023
b4c4a429 20242012-11-28 Richard Biener <rguenther@suse.de>
2025
2026 PR c/35634
2027 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2028 here and use a type with proper overflow behavior for types that would
2029 need to be promoted for the arithmetic.
2030
d413ffdd 20312012-11-23 Jakub Jelinek <jakub@redhat.com>
2032
2033 PR sanitizer/55435
2034 * c-common.c (handle_no_address_safety_analysis_attribute): New
2035 function.
2036 (c_common_attribute_table): Add no_address_safety_analysis.
2037
52bc861d 20382012-11-16 Simon Baldwin <simonb@google.com>
2039
2040 * c.opt: Add f[no-]canonical-system-headers.
2041 * c-opts.c (c_common_handle_option): Handle
2042 OPT_fcanonical_system_headers.
2043
2dd00636 20442012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2045
2046 PR c++/54413
2047 * c-opts.c (c_common_handle_option): Set new flags.
2048 * c.opt: Describe new flags.
2049
d4701f6c 20502012-11-09 Jason Merrill <jason@redhat.com>
2051
2052 * c.opt (Wabi-tag): New.
2053
72d65da9 20542012-11-09 Andi Kleen <ak@linux.intel.com>
2055
2056 PR 55139
2057 * c-common.c (get_atomic_generic_size): Mask with
2058 MEMMODEL_MASK
2059
77a357e3 20602012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2061
2062 PR c/53063
2063 * c.opt (Wformat): Make it Alias Wformat=1.
2064 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2065 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2066 LangEnabledBy.
2067 (Wformat=): RejectNegative. Use LangEnabledBy.
2068 (Wnonnull): Use LangEnabledBy.
2069 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2070 * c-format.c (set_Wformat): Delete.
2071 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2072 (maybe_read_dollar_number): Likewise.
2073 (avoid_dollar_number): Likewise.
2074 (finish_dollar_format_checking): Likewise.
2075 (check_format_info): Likewise.
2076 (check_format_info_main): Likewise.
2077 (check_format_types): Likewise.
2078 (format_type_warning): Likewise.
2079 * c-common.c (int): Likewise.
2080 (check_function_sentinel): Likewise.
2081 * c-common.h (warn_format,set_Wformat): Do not declare here.
2082
45efa6b9 20832012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2084
2085 PR c/53063
2086 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2087 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2088 Use LangEnabledBy.
2089 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2090 common.opt.
2091 (Wvariadic-macros): Init(1).
2092 * c-opts.c (c_common_handle_option): Do not handle them
2093 explicitly.
2094 (c_common_post_options): Likewise.
2095 (sanitize_cpp_opts): warn_unused_macros is now
2096 cpp_warn_unused_macros.
2097 (push_command_line_include): Likewise.
2098 * c-common.c (warn_unknown_pragmas): Do not define.
2099 * c-common.h (warn_unknown_pragmas): Do not declare.
2100
0e4e775a 21012012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2102
2103 PR c/51294
2104 * c-common.c (conversion_warning): Handle conditional expressions.
2105
8b447d3f 21062012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2107
2108 PR c++/54930
2109 * c.opt (Wreturn_local_addr): Define new option.
2110
f4a61754 21112012-10-25 Jason Merrill <jason@redhat.com>
2112
ecb10e6a 2113 * c.opt (Wvirtual-move-assign): New.
2114
f4a61754 2115 * c.opt (Winherited-variadic-ctor): New.
2116
7b463b19 21172012-10-25 Marc Glisse <marc.glisse@inria.fr>
2118
2119 PR c++/54427
2120 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2121
6adc88f8 21222012-10-23 Joseph Myers <joseph@codesourcery.com>
2123
2124 * c-common.h (pch_cpp_save_state): Declare.
2125 * c-target.def (c_preinclude): New hook.
2126 * c-opts.c (done_preinclude): New.
2127 (push_command_line_include): Handle default preincluded header.
2128 (cb_file_change): Call pch_cpp_save_state when calling
2129 push_command_line_include.
2130 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2131 (pch_cpp_save_state): New.
2132 (pch_init): Call pch_cpp_save_state conditionally, instead of
2133 calling cpp_save_state.
2134
fa816b0b 21352012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2136
2137 PR c/53063
2138 PR c/40989
2139 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2140 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2141 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2142 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2143 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2144 * c-opts.c (c_common_handle_option): Remove explicit handling from
2145 here.
2146 (c_common_post_options): Likewise.
2147
d214ccee 21482012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2149
2150 * c-ada-spec.c (LOCATION_COL): Delete.
2151 (compare_location): New function.
2152 (compare_node): Use it.
2153 (compare_comment): Likewise.
2154
77b27208 21552012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2156
2157 PR c/53063
2158 PR c/40989
2159 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2160 * c-opts.c (c_common_handle_option): Do not set them here. Add
2161 comment.
2162 (c_common_post_options): Likewise.
2163
cc02ca4d 21642012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2165
2166 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2167 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2168 Remove POINTER_TYPE handling, add large unsigned handling and use
2169 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2170
57f872a2 21712012-10-12 Jakub Jelinek <jakub@redhat.com>
2172
2173 PR c/54381
2174 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2175 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2176 locs and array of 3 trees instead of just single loc and single
2177 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2178 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2179 For *cmp* builtins that take two sources strings report warnings
2180 about first and second source, not about destination and source.
2181
7354ad2e 21822012-10-12 Marc Glisse <marc.glisse@inria.fr>
2183
2184 PR c++/53055
2185 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2186
1ac7f120 21872012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2188
2189 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2190 declaring something coming from another file.
2191
1e0cc9e3 21922012-10-10 Arnaud Charlet <charlet@adacore.com>
2193
1ac7f120 2194 PR ada/54845
1e0cc9e3 2195 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2196
b0e7825e 21972012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2198
2199 PR c++/54194
2200 * c-common.c (warn_about_parentheses): Add location_t parameter;
2201 use EXPR_LOC_OR_LOC.
2202 * c-common.h: Update declaration.
2203
41ed701a 22042012-10-09 Marc Glisse <marc.glisse@inria.fr>
2205
2206 PR c++/54427
2207 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2208 more operations. Make error messages optional.
2209 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2210 (scalar_to_vector): Declare.
2211
3740094c 22122012-10-08 Jason Merrill <jason@redhat.com>
2213
2214 * c-common.c (c_common_reswords): Add thread_local.
2215
ffcdbf9c 22162012-10-08 Dodji Seketeli <dodji@redhat.com>
2217
2218 PR c++/53528 C++11 attribute support
2219 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2220 new functions.
2221 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2222 static function.
2223 (handle_aligned_attribute): In choose strictest alignment
2224 among many. Use new check_cxx_fundamental_alignment_constraints.
2225 (handle_transparent_union_attribute): In c++11 attribute syntax,
2226 don't look through typedefs.
2227
ef34afc1 22282012-10-04 Arnaud Charlet <charlet@adacore.com>
2229
2230 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2231 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2232 out of dumpfile.h.
2233
f1ff4562 22342012-09-25 Dehao Chen <dehao@google.com>
2235
2236 PR middle-end/54645
ef34afc1 2237 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
f1ff4562 2238 map when read in the pch.
2239
735538a1 22402012-09-18 Arnaud Charlet <charlet@adacore.com>
2241
2242 * c-ada-spec.c: Style fixes.
2243
9120cdc8 22442012-09-18 Thomas Quinot <quinot@adacore.com>
2245
2246 * c.opt (-fada-spec-parent): Define new command line switch.
2247 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2248 is specified, generate binding spec as a child of the specified unit.
2249
8eba82c2 22502012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2251 Manuel López-Ibáñez <manu@gcc.gnu.org>
2252
2253 PR c++/53210
2254 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2255
38682990 22562012-08-23 Arnaud Charlet <charlet@adacore.com>
2257
2258 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2259 for pointers, and add missing Convention C pragma.
2260 (print_ada_struct_decl): Add missing aliased keyword.
2261 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2262
f003f5dc 22632012-08-17 Jakub Jelinek <jakub@redhat.com>
2264
2265 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2266 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2267 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2268 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2269 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2270
ec11736b 22712012-08-10 Richard Guenther <rguenther@suse.de>
2272
2273 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2274
5f7f600e 22752012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2276
2277 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2278 instead of separate pp_newline and pp_flush.
2279 (print_c_tree): Likewise.
2280
758a38ab 22812012-07-26 Richard Henderson <rth@redhat.com>
2282
2283 * c-common.c (handle_hot_attribute): Allow labels.
2284 (handle_cold_attribute): Likewise.
2285
9ca77b08 22862012-07-20 Jakub Jelinek <jakub@redhat.com>
2287
2288 PR c++/28656
2289 * c-common.c (check_function_nonnull): Handle multiple nonnull
2290 attributes properly.
2291
b9ed1410 22922012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2293
2294 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2295 * c-ada-spec.c: Likewise.
2296 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2297
c2a65b90 22982012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2299
2300 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2301 Remove code conditional on it.
2302
88c5a1d1 23032012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2304
2305 * c-gimplify.c: Do not include basic-block.h.
2306 * c-common.c: Do not include linfuncs.h.
2307
4a020a8c 23082012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2309
2310 * c-common.h: Include tree.h.
2311
c28ddc97 23122012-07-02 Jason Merrill <jason@redhat.com>
2313
2314 PR c++/53524
2315 * c-common.c (get_priority): Call default_conversion.
2316
405ed67f 23172012-07-01 Uros Bizjak <ubizjak@gmail.com>
2318
2319 * c-pch.c (c_common_write_pch): Remove unused variables.
2320
e53d55e7 23212012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2322
2323 * cppspec.c: Moved from gcc/ to here.
2324
3d9c25ec 23252012-06-27 Kai Tietz <ktietz@redhat.com>
2326
2327 PR preprocessor/37215
2328 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2329
3169c57a 23302012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2331
2332 * c-common.h (c_common_print_pch_checksum): Remove.
2333 * c-pch.c: Do not include output.h.
2334 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2335 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2336 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2337 (struct c_pch_header): Remove.
2338 (get_ident): Update gpch version.
2339 (pch_init): Do not print executable_checksum to asm_out_file.
2340 Do not fail if there is no asm_out_file to read back from. Set
2341 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2342 (c_common_write_pch): Verify that nothing was written to asm_out_file
2343 since pch_init was called. Do not write a c_pch_header, and do not
2344 copy from asm_out_file to the PCH.
2345 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2346 the content of asm_out_file from the PCH.
2347 (c_common_print_pch_checksum): Remove.
2348 * c-opts.c (c_common_init): Print out executable_checksum directly.
2349
ff6624bc 23502012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2351
2352 * c-target.def (objc_declare_unresolved_class_reference,
2353 objc_declare_class_definition): Add new hooks.
2354
367b1459 23552012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2356
2357 * c-lex.c: Do not include output.h.
2358 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2359 Remove uses of ASM_OUTPUT_IDENT.
2360
bf0cb017 23612012-06-15 Marc Glisse <marc.glisse@inria.fr>
2362
2363 PR c++/51033
2364 * c-common.h (c_build_vec_perm_expr): Move decl here.
2365 * c-common.c (c_build_vec_perm_expr): Move definition
2366 here.
2367
b37a3600 23682012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2369
2370 * c.opt (fconserve-space): Turn into a no-op.
2371
19931eea 23722012-06-04 Sterling Augustine <saugustine@google.com>
5f9e7dd5 2373
2374 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2375 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2376 both the start and end of the function.
2377
dff12c10 23782012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2379
2380 * c-common.c: Do not include output.h.
2381 * c-pragma.c: Likewise.
2382
5f9e7dd5 23832012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2384
2385 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2386 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2387 (lang_decl_name): Handle namespace decls.
2388
b5369b7d 23892012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2390
2391 * c-ada-spec.c: Do not include output.h.
2392 * c-semantics.c: Likewise.
2393
8032877c 23942012-05-29 Joseph Myers <joseph@codesourcery.com>
2395
2396 * c-common.c: Fix typo.
2397
7843e4bc 23982012-05-29 Michael Matz <matz@suse.de>
2399
2400 * c-common.h (c_expand_decl): Remove prototype.
2401
8cf857d4 24022012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2403
2404 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2405 * c-opts.c (c_common_handle_option): Remove code handling
2406 warn_missing_braces.
2407
8b64dc3c 24082012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2409
2410 PR c++/25137
2411 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2412 -Wmissing_braces.
2413
43cbde16 24142012-05-22 Dodji Seketeli <dodji@redhat.com>
2415
2416 PR c++/53322
2417 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2418
db490cb6 24192012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2420
2421 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2422 * c-opts.c (c_common_handle_option): Do not handle explicitly
2423 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2424
a60f3e81 24252012-05-16 Dodji Seketeli <dodji@redhat.com>
2426
2427 PR preprocessor/7263
2428 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2429 to cpp_classify_number. For diagnostics, use the precise location
2430 instead of the global input_location.
2431
82e6ef7c 24322012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2433
cd4797ff 2434 PR c++/11856
82e6ef7c 2435 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2436
258a168d 24372012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2438
82e6ef7c 2439 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
258a168d 2440
d3b7ee7c 24412012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2442
2443 PR 53063
2444 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2445 Wreorder): Use LangEnabledBy.
2446 * c-opts.c (c_common_handle_option): Do not enable them
2447 explicitly. Call lang-specific generated functions.
2448 (c_common_post_options): Do not set them here.
2449
70059cea 24502012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2451
2452 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2453 Wmissing-field-initializers,Wmissing-parameter-type,
2454 Wold-style-declaration,Woverride-init): Use EnabledBy.
2455 * c-opts.c (c_common_post_options): Do not set here explicitly.
2456
fbb6fbd8 24572012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2458
2459 PR 53063
2460 * c-opts.c (c_common_handle_option): Use handle_generated_option
2461 to enable sub-options.
2462
61f69bc9 24632012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2464
2465 PR c++/53158
2466 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2467
5a1fe2db 24682012-05-10 Richard Guenther <rguenther@suse.de>
2469
2470 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2471 adjust commentary about TYPE_IS_SIZETYPE types.
2472
d42e7c5a 24732012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2474
2475 PR c++/53261
2476 * c-common.c (warn_logical_operator): Check that argument of
2477 integer_zerop is not NULL.
2478
686369e8 24792012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2480
2481 PR c/43772
2482 * c-common.c (warn_logical_operator): Do not warn if either side
2483 is already true or false.
2484
03fe1dc2 24852012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2486
2487 PR c/51712
2488 * c-common.c (expr_original_type): New.
2489 (shorten_compare): Do not warn for enumeration types.
2490
bba5a206 24912012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2492
2493 * c.opt (fpermissive): Add Var(flag_permissive).
2494
7059d45d 24952012-04-30 Marc Glisse <marc.glisse@inria.fr>
2496
2497 PR c++/51033
2498 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2499 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2500
7edb1062 25012012-04-30 Dodji Seketeli <dodji@redhat.com>
2502
2503 Add -Wvarargs option
2504 * c.opt (Wvarargs): Define new option.
2505
068bea1e 25062012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2507
2508 * c-common.c (check_function_arguments): Replace
2509 Wmissing-format-attribute with Wsuggest-attribute=format.
2510
b86527d8 25112012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2512
2513 * c.opt (Wsuggest-attribute=format): New. Alias of
2514 Wmissing-format-attribute.
2515 * c-format.c (decode_format_type): Replace
2516 Wmissing-format-attribute with Wsuggest-attribute=format.
2517 (check_function_format): Likewise.
2518
19931eea 25192012-04-27 Ollie Wild <aaw@google.com>
76d340ac 2520
2521 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2522 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2523 * c.opt: Add Wliteral-suffix.
2524
29438999 25252012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2526
2527 PR c/44774
2528 * c.opt (Wpedantic): New.
2529 (pedantic): Alias Wpedantic.
2530 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2531 (c_common_post_options): Likewise.
2532 (sanitize_cpp_opts): Likewise.
2533 * c-lex.c (interpret_float): Likewise.
2534 * c-format.c (check_format_types): Likewise.
2535 * c-common.c (pointer_int_sum): Likewise.
2536 (c_sizeof_or_alignof_type): Likewise.
2537 (c_add_case_label): Likewise.
2538 (c_do_switch_warnings): Likewise.
2539 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2540
4f9d6b8b 25412012-04-15 Jason Merrill <jason@redhat.com>
2542
2543 PR c++/52818
2544 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2545 (C_STD_NAME): Distinguish between C++98 and C++11.
2546
74bdbe96 25472012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2548
2549 PR target/52624
2550 * c-common.h (uint16_type_node): Rename into...
2551 (c_uint16_type_node): ...this.
2552 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2553 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2554
3d177e8c 25552012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2556
2557 * c-common.c (warn_if_unused_value): Move definition to here.
2558 * c-common.h (warn_if_unused_value): Move declaration to here.
2559
6a9a958f 25602012-03-23 William Bader <williambader@hotmail.com>
2561
2562 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2563
543efdbe 25642012-03-20 Jason Merrill <jason@redhat.com>
2565
2566 * c-common.h (enum cxx_dialect): Add cxx1y.
2567 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2568 test.
2569 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2570 * c-opts.c (c_common_post_options): Likewise.
2571 (set_std_cxx1y): New.
2572 (c_common_handle_option): Call it.
2573 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2574
62206d34 25752012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2576
2577 PR c++/14710
2578 * c.opt ([Wuseless-cast]): Add.
2579
fadf62f4 25802012-03-16 Richard Guenther <rguenther@suse.de>
2581
2582 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2583
249faa35 25842012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2585
2586 PR c++/44783
2587 * c.opt (ftemplate-backtrace-limit) Add.
2588
126b6848 25892012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2590
2591 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2592 handling.
2593 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2594 (init_pragma): Don't register extern_prefix.
2595
a51edb4c 25962012-03-12 Richard Guenther <rguenther@suse.de>
2597
2598 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2599 (builtin_type_for_size): Likewise.
2600
0f6a7cb7 26012012-02-13 Jakub Jelinek <jakub@redhat.com>
2602
2603 PR c++/52215
2604 * c-common.c (sync_resolve_params): Don't decide whether to convert
2605 or not based on TYPE_SIZE comparison, convert whenever arg_type
2606 is unsigned INTEGER_TYPE.
2607
0779e32c 26082012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2609
2610 PR c/52118
2611 * c.opt ([Wunused-local-typedefs]): Fix description.
2612
baec58e1 26132012-01-24 Mike Stump <mikestump@comcast.net>
2614
2615 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2616 exactly.
2617
c779d8cc 26182012-01-18 Richard Guenther <rguenther@suse.de>
2619
2620 * c-opts.c (c_common_post_options): Reset LTO flags if
2621 we are about to generate a PCH.
2622
ee917d24 26232012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2624
2625 PR c++/51777
2626 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2627 use pp_unsigned_wide_integer.
2628
90e2341f 26292012-01-10 Richard Guenther <rguenther@suse.de>
2630
2631 PR middle-end/51806
2632 * c-opts.c (c_common_handle_option): Move -Werror handling
2633 to language independent code.
2634
9ea022ce 26352012-01-05 Richard Guenther <rguenther@suse.de>
2636
2637 PR middle-end/51764
2638 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2639 from common.opt.
2640
3df19e1b 26412011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2642
2643 PR c++/51316
2644 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2645 of array types with an unknown bound.
2646
32074525 26472011-12-20 Joseph Myers <joseph@codesourcery.com>
2648
2649 * c-common.c (flag_isoc99): Update comment to refer to C11.
2650 (flag_isoc1x): Change to flag_isoc11.
2651 * c-common.h (flag_isoc99): Update comment to refer to C11.
2652 (flag_isoc1x): Change to flag_isoc11.
2653 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2654 C11.
2655 * c-opts.c (set_std_c1x): Change to set_std_c11.
2656 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2657 Call set_std_c11.
2658 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2659 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2660 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2661 standard.
2662 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2663 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2664 (std=gnu1x): Make alias of std=gnu11.
2665
fca86134 26662011-12-19 Jason Merrill <jason@redhat.com>
2667
2668 PR c++/51228
2669 * c-common.c (handle_transparent_union_attribute): Check the first
2670 field if the type is complete.
2671
aa4313eb 26722011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2673
2674 PR libstdc++/51365
2675 * c-common.c (RID_IS_FINAL): Add.
2676 * c-common.h (RID_IS_FINAL): Add.
2677
3f3d5ad4 26782011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2679
2680 * c.opt (fgnu-runtime): Provide full description.
2681 (fnext-runtime): Likewise.
2682 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2683
c4606d19 26842011-11-28 Andrew MacLeod <amacleod@redhat.com>
2685
2686 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2687 predefines in one place. Add LOCK_FREE predefines.
2688 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2689 new func.
2690
1d581089 26912011-11-24 Andrew MacLeod <amacleod@redhat.com>
2692
2693 PR c/51256
19931eea 2694 * c-common.c (get_atomic_generic_size): Check for various error
1d581089 2695 conditions
19931eea 2696 (resolve_overloaded_atomic_exchange,
2697 resolve_overloaded_atomic_compare_exchange,
1d581089 2698 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2699 error_mark_node for error conditions.
19931eea 2700
6aa221fa 27012011-11-08 Richard Guenther <rguenther@suse.de>
2702
2703 PR middle-end/51010
2704 c-family/
2705
4c0315d0 27062011-11-07 Richard Henderson <rth@redhat.com>
2707 Aldy Hernandez <aldyh@redhat.com>
2708 Torvald Riegel <triegel@redhat.com>
2709
2710 Merged from transactional-memory.
2711
2712 * c-common.c (handle_tm_wrap_attribute,
2713 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2714 (struct c_common_reswords): Added __transaction* keywords.
2715 (struct c_common_attribute_table): Added transaction* and tm_regparm
2716 attributes.
2717 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2718 masks.
2719 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2720 find_tm_attribute): Declare.
2721
920f5a70 27222011-11-07 Jason Merrill <jason@redhat.com>
2723
2724 PR c++/35688
2725 * c-common.c, c-common.h: Revert yesterday's changes.
2726
b4f861b4 27272011-11-06 Jason Merrill <jason@redhat.com>
2728
2729 PR c++/35688
2730 * c-common.c (decl_has_visibility_attr): Split out from...
2731 (c_determine_visibility): ...here.
2732 * c-common.h: Declare it.
2733
83e25171 27342011-11-06 Joseph Myers <joseph@codesourcery.com>
2735
2736 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2737 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2738 type.
2739 (check_user_alignment): New. Split out of
2740 handle_aligned_attribute. Disallow integer constants with
2741 noninteger types. Conditionally allow zero.
2742 (handle_aligned_attribute): Use check_user_alignment.
2743 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2744
1cd6e20d 27452011-11-06 Andrew MacLeod <amacleod@redhat.com>
2746 Richard Henderson <rth@redhat.com>
2747
2748 Merged from cxx-mem-model.
2749
2750 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
19931eea 2751 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1cd6e20d 2752 parameters that are the same type size.
2753 (get_atomic_generic_size): New. Find size of generic
2754 atomic function parameters and do typechecking.
2755 (add_atomic_size_parameter): New. Insert size into parameter list.
2756 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2757 either __atomic_exchange_n or external library call.
19931eea 2758 (resolve_overloaded_atomic_compare_exchange): Restructure
1cd6e20d 2759 __atomic_compare_exchange to either _n variant or external library call.
19931eea 2760 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1cd6e20d 2761 __atomic_load_n or an external library call.
2762 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2763 __atomic_store_n or an external library call.
2764 (resolve_overloaded_builtin): Handle new __atomic builtins.
2765
7549df0d 27662011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2767
2768 PR c++/50608
2769 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2770 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2771 <INDIRECT_REF>: Return the argument.
2772 <ARRAY_REF>: Remove special code for negative offset.
2773 Call fold_build_pointer_plus instead of size_binop.
2774 (fold_offsetof): Remove STOP_REF argument and adjust.
2775 * c-common.h (fold_offsetof_1): Declare.
2776 (fold_offsetof): Remove STOP_REF argument.
2777
7e783eb3 27782011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2779
2780 PR c++/50810
2781 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2782 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2783 Wnarrowing for C++0x and C++98.
2784 * c.opt ([Wnarrowing]): Update.
2785
8fe701f5 27862011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2787
2788 PR c++/44277
2789 * c.opt: Add Wzero-as-null-pointer-constant.
2790
0d84dc2d 27912011-10-31 Jason Merrill <jason@redhat.com>
2792
67031f52 2793 * c.opt (-fdeduce-init-list): Off by default.
2794
0d84dc2d 2795 PR c++/50920
2796 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2797 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2798 and -Wc++11-compat.
2799 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2800
66f24c41 28012011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2802
2803 PR c++/30066
2804 * c.opt (fvisibility-inlines-hidden): Description change.
2805
244db24d 28062011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2807
2808 Implement C++11 user-defined literals.
2809 * c-common.c (build_userdef_literal): New.
2810 * c-common.def: New tree code.
2811 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2812 * c-lex.c (interpret_float): Add suffix parm.
2813 (c_lex_with_flags): Build literal tokens.
2814
235be70f 28152011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2816
2817 PR c++/50841
2818 Revert:
2819 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2820
2821 PR c++/50810
2822 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2823 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2824 Wnarrowing for C++0x and C++98.
2825 * c.opt ([Wnarrowing]): Update.
2826
4fe0fb1c 28272011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2828
2829 PR c++/50810
2830 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2831 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2832 Wnarrowing for C++0x and C++98.
2833 * c.opt ([Wnarrowing]): Update.
2834
5f7504f9 28352011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2836
2837 PR c++/45385
2838 * c-common.c (conversion_warning): Remove code looking for
2839 artificial operands.
2840
2a688977 28412011-10-18 Dodji Seketeli <dodji@redhat.com>
2842
2843 PR bootstrap/50760
2844 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
19931eea 2845 !NO_IMPLICIT_EXTERN_C.
2a688977 2846
326e3391 28472011-10-17 Michael Spertus <mike_spertus@symantec.com>
2848
2849 * c-common.c (c_common_reswords): Add __bases,
2850 __direct_bases.
2851 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2852
28532011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2854
2855 PR c++/50757
2856 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2857
62db153a 28582011-10-15 Tom Tromey <tromey@redhat.com>
2859 Dodji Seketeli <dodji@redhat.com>
2860
2861 * c.opt (fdebug-cpp): New option.
2862 * c-opts.c (c_common_handle_option): Handle the option.
2863 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2864 output stream in parameter. Factorized from ...
2865 (maybe_print_line): ... this. Dump location debug information when
2866 -fdebug-cpp is in effect.
2867 (print_line_1): New static function. Takes an output stream in
2868 parameter. Factorized from ...
2869 (print_line): ... here. Dump location information when -fdebug-cpp
2870 is in effect.
2871 (scan_translation_unit): Dump location information when
2872 -fdebug-cpp is in effect.
2873
ce70f433 28742011-10-15 Tom Tromey <tromey@redhat.com>
2875 Dodji Seketeli <dodji@redhat.com>
2876
2877 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2878 without argument.
2879 * c-opts.c (c_common_handle_option)<case
2880 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2881 cases. Handle -ftrack-macro-expansion with and without argument.
2882
97bfb9ef 28832011-10-15 Tom Tromey <tromey@redhat.com>
2884 Dodji Seketeli <dodji@redhat.com>
2885
2886 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2887 (print_line, cb_define, do_line_change): Adjust to avoid touching
2888 the internals of struct line_map. Use the public API instead.
2889 * c-pch.c (c_common_read_pch): Likewise.
2890 * c-lex.c (fe_file_change): Likewise.
2891
326e3391 28922011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2893
2894 PR c++/17212
2895 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2896
28972011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2898
2899 PR c++/33067
2900 * c-pretty-print.c (pp_c_floating_constant): Output
2901 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2902
b9a16870 29032011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2904
2905 * c-common.c (def_builtin_1): Delete old interface with two
2906 parallel arrays to hold standard builtin declarations, and replace
2907 it with a function based interface that can support creating
2908 builtins on the fly in the future. Change all uses, and poison
2909 the old names. Make sure 0 is not a legitimate builtin index.
2910 * c-omp.c (c_finish_omp_barrier): Ditto.
2911 (c_finish_omp_taskwait): Ditto.
2912 (c_finish_omp_flush): Ditto.
2913
c7964868 29142011-10-11 Tristan Gingold <gingold@adacore.com>
2915
2916 * c.opt: (fallow-parameterless-variadic-functions): New.
2917
a4e3ffad 29182011-09-08 Dodji Seketeli <dodji@redhat.com>
2919
2920 PR c++/33255 - Support -Wunused-local-typedefs warning
2921 * c-common.h (struct c_language_function::local_typedefs): New
2922 field.
19931eea 2923 (record_locally_defined_typedef, maybe_record_typedef_use)
2924 (maybe_warn_unused_local_typedefs): Declare new functions.
a4e3ffad 2925 * c-common.c (record_locally_defined_typedef)
19931eea 2926 (maybe_record_typedef_use)
2927 (maybe_warn_unused_local_typedefs): Define new functions.
a4e3ffad 2928 * c.opt: Declare new -Wunused-local-typedefs flag.
2929
737a23cc 29302011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2931
2932 PR middle-end/50266
2933 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2934 computations.
2935
7542c3b4 29362011-09-05 Richard Guenther <rguenther@suse.de>
2937
2938 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2939 of integer_minus_one_node for empty array upper bounds.
2940
1dc92c59 29412011-08-28 Dodji Seketeli <dodji@redhat.com>
2942
2943 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2944 it's the first time it's being called on this main TU.
2945
2bdf2b6e 29462011-08-24 Richard Guenther <rguenther@suse.de>
2947
2948 PR c/49396
2949 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2950
29512011-08-22 Gabriel Charette <gchare@google.com>
6ea2c7a3 2952
2953 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2954 defined in cpp_init_builtins and c_cpp_builtins.
2955
bff4ad11 29562011-08-19 Joseph Myers <joseph@codesourcery.com>
2957
2958 * c-common.c (c_common_reswords): Add __builtin_complex.
2959 * c-common.h (RID_BUILTIN_COMPLEX): New.
2960
985c6e3a 29612011-08-18 Joseph Myers <joseph@codesourcery.com>
2962
2963 * c-common.c (c_common_reswords): Add _Noreturn.
2964 (keyword_is_function_specifier): Handle RID_NORETURN.
2965 * c-common.h (RID_NORETURN): New.
2966
7dfa155b 29672011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2968
2969 * c-common.c (unsafe_conversion_p): New function. Check if it is
2970 unsafe to convert an expression to the type.
2971 (conversion_warning): Adjust, use unsafe_conversion_p.
2972 * c-common.h (unsafe_conversion_p): New function declaration.
2973
2169f33b 29742011-08-02 Jakub Jelinek <jakub@redhat.com>
2975
2976 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2977 (c_finish_omp_taskyield): New prototype.
2978 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2979 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2980 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2981 or RHS1 have side-effects, evaluate those too in the right spot,
2982 if it is a decl and LHS is also a decl, error out if they
2983 aren't the same.
2984 (c_finish_omp_taskyield): New function.
2985 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2986 * c-pragma.c (omp_pragmas): Add taskyield.
2987 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2988 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2989 PRAGMA_OMP_CLAUSE_MERGEABLE.
2990
ab77850e 29912011-07-25 Dodji Seketeli <dodji@redhat.com>
2992
2993 * c-common.h (set_underlying_type): Remove parm name from
2994 declaration.
2995
6ee97920 29962011-07-25 Romain Geissler <romain.geissler@gmail.com>
2997
2998 * c-pretty-print.h: Search c-common.h in c-family.
19931eea 2999
dc251364 30002011-07-22 Jason Merrill <jason@redhat.com>
3001
1a2a35f0 3002 PR c++/49793
3003 * c.opt (Wnarrowing): New.
3004
27282252 3005 PR c++/30112
3006 * c-common.h: Declare c_linkage_bindings.
3007 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3008
dc251364 3009 PR c++/49813
3010 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3011 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3012 as flag_isoc99 for 'restrict'.
3013 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3014
fc501191 30152011-07-21 Ian Lance Taylor <iant@google.com>
3016
3017 PR middle-end/49705
3018 * c-common.c (c_disable_warnings): New static function.
3019 (c_enable_warnings): New static function.
3020 (c_fully_fold_internal): Change local unused_p to bool. Call
3021 c_disable_warnings and c_enable_warnings rather than change
3022 c_inhibit_evaluation_warnings.
3023
07b8f133 30242011-07-20 Jason Merrill <jason@redhat.com>
3025
3026 PR c++/6709 (DR 743)
3027 PR c++/42603 (DR 950)
3028 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3029 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3030 (CPP_DECLTYPE): New.
3031 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3032
2cc66f2a 30332011-07-19 Richard Guenther <rguenther@suse.de>
3034
3035 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3036 * c-omp.c (c_finish_omp_for): Likewise.
3037
3c802a1e 30382011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3039
3040 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3041 body on the next line.
3042
98a33d9f 30432011-07-08 Jason Merrill <jason@redhat.com>
3044
3115bda0 3045 PR c++/45437
3046 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3047
98a33d9f 3048 PR c++/49673
3049 * c-common.c (c_apply_type_quals_to_decl): Don't check
3050 TYPE_NEEDS_CONSTRUCTING.
3051
c38a75b7 30522011-07-06 Richard Guenther <rguenther@suse.de>
3053
3054 * c-common.c (c_common_nodes_and_builtins):
3055 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3056
e593356b 30572011-07-05 Richard Guenther <rguenther@suse.de>
3058
3059 * c-common.c (c_common_nodes_and_builtins): Build all common
3060 tree nodes first.
3061
fca0886c 30622011-06-27 Jakub Jelinek <jakub@redhat.com>
3063
a68f7a8d 3064 * c-common.h (c_tree_chain_next): New static inline function.
3065
fca0886c 3066 * c-common.c (check_builtin_function_arguments): Handle
3067 BUILT_IN_ASSUME_ALIGNED.
3068
2797f13a 30692011-06-21 Andrew MacLeod <amacleod@redhat.com>
3070
3071 * c-common.c: Add sync_ or SYNC__ to builtin names.
3072 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 3073
30742011-06-20 Pierre Vittet <piervit@pvittet.com>
3075
3076 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3077 handler.
3078 (gen_pragma_handler): New union.
3079 (internal_pragma_handler): New type.
3080 (c_register_pragma_with_data)
3081 (c_register_pragma_with_expansion_and_data): New functions.
3082
3083 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3084 (c_register_pragma, c_register_pragma_with_expansion)
3085 (c_invoke_pragma_handler): Changed to work with
3086 internal_pragma_handler.
3087 (c_register_pragma_with_data)
3088 (c_register_pragma_with_expansion_and_data): New functions.
3089
218e3e4e 30902011-06-14 Joseph Myers <joseph@codesourcery.com>
3091
3092 * c-common.c: Include common/common-target.h.
3093 (handle_section_attribute): Use
3094 targetm_common.have_named_sections.
3095 * c-cppbuiltin.c: Include common/common-target.h.
3096 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3097
41e53ed2 30982011-06-10 Richard Guenther <rguenther@suse.de>
3099
3100 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3101 to print a IDENTIFIER_NODE.
3102
a6f06169 31032011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3104 Joseph Myers <joseph@codesourcery.com>
3105
3106 * c.opt (fbuilding-libgcc): New option.
3107 * c-cppbuiltin.c (c_cpp_builtins): Define
3108 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3109
1ea9269b 31102011-06-07 Jason Merrill <jason@redhat.com>
3111
8ce59854 3112 * c-common.c (max_tinst_depth): Lower default to 900.
3113
1ea9269b 3114 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3115
1af0124d 31162011-06-07 Richard Guenther <rguenther@suse.de>
3117
3118 * c-common.c (c_common_nodes_and_builtins): Do not set
3119 size_type_node or call set_sizetype.
3120
0e9a4c01 31212011-06-07 Dodji Seketeli <dodji@redhat.com>
3122
3123 PR debug/49130
3124 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
19931eea 3125 type when using pointer comparison to compare types.
0e9a4c01 3126
90b40725 31272011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3128
3129 * c.opt: Add -Wdelete-non-virtual-dtor.
3130 * c-opts.c (c_common_handle_option): Include it in -Wall.
3131
fc9c9e87 31322011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3133
3134 PR bootstrap/49190
3135
3136 Revert:
3137 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3138
3139 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3140 not tree_common.
3141
d0389adc 31422011-05-27 Jakub Jelinek <jakub@redhat.com>
3143
3144 PR c++/49165
3145 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3146 C++ don't call c_common_truthvalue_conversion on void type arms.
3147
cacfdc02 31482011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3149
3150 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3151 (stmt_list_stack): Define.
3152 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3153 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3154
027fc6ef 31552011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3156
3157 * c-common.c (warning_candidate_p): Check for BLOCKs.
3158
f21317a1 31592011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3160
3161 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3162 not tree_common.
3163
789e953d 31642011-05-25 Jakub Jelinek <jakub@redhat.com>
3165
3166 * c-common.c (def_fn_type): Remove extra va_end.
3167
7f506bca 31682011-05-23 Jason Merrill <jason@redhat.com>
3169
3170 PR c++/48106
3171 * c-common.c (c_common_get_narrower): New.
3172 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3173
774e9d58 31742011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3175
3176 * c-common.h (check_function_arguments): Tweak prototype of
3177 check_function_arguments.
3178 * c-common.c (check_function_arguments): Likewise. Adjust
3179 calls to check_function_nonnull, check_function_format, and
3180 check_function_sentinel.
3181 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3182 separate attributes and typelist arguments. Use
3183 FOREACH_FUNCTION_ARGS to iterate over argument types.
3184
23407dc9 31852011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3186
3187 * c-common.c (c_common_reswords): Reorder.
3188 * c-common.h (rid): Likewise.
3189
3a939d12 31902011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3191
3192 * c-common.c (def_fn_type): Don't call build_function_type, call
3193 build_function_type_array or build_varargs_function_type_array
3194 instead.
3195 (c_common_nodes_and_builtins): Likewise.
3196
b6e3dd65 31972011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3198
3199 * c-common.c (c_add_case_label): Omit the loc argument to
3200 build_case_label.
3201 * c-common.h (build_case_label): Remove.
3202 * c-semantics.c (build_case_label): Remove.
3203
4232a958 32042011-05-05 Joseph Myers <joseph@codesourcery.com>
3205
3206 * c-objc.h (objc_start_method_definition): Update prototype.
3207 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3208
d0af78c5 32092011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3210
3211 * c-common.c (check_main_parameter_types): Reindent. Don't use
3212 TYPE_ARG_TYPES directly.
3213 (handle_nonnull_attribute): Likewise.
3214 (sync_resolve_params): Likewise.
3215 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3216 to check_format_string.
3217 (handle_format_attribute): Likewise.
3218 (check_format_string): Take a function type to examine instead of
3219 a type list. Use a function_arg_iterator to step through argument
3220 types.
3221
ceb7b692 32222011-05-04 Richard Guenther <rguenther@suse.de>
3223
3224 * c-common.c (fix_string_type): Use size_int for index type bounds.
3225 (start_fname_decls): Do not pass NULL to build_int_cst.
3226 (c_init_attributes): Likewise.
3227 * c-lex.c (c_lex_with_flags): Likewise.
3228
c66c81be 32292011-04-27 Jason Merrill <jason@redhat.com>
3230
3231 * c-common.c (make_tree_vector_from_list): New.
3232 * c-common.h: Declare it.
3233
16930c72 32342011-04-26 Richard Guenther <rguenther@suse.de>
3235
3236 PR preprocessor/48248
3237 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3238 for output size with -P.
3239
23407dc9 32402011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3241
3242 * c-common.c (struct c_common_resword): Add __underlying_type.
3243 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3244
dd045aee 32452011-04-20 Jim Meyering <meyering@redhat.com>
3246
3247 * c-format.c (init_dollar_format_checking): Remove useless
3248 if-before-free.
3249
394dd737 32502011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3251
3252 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 3253 (objc_detect_field_duplicates): New.
394dd737 3254 * stub-objc.c: Likewise.
23407dc9 3255
a758bf7d 32562011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3257
3258 * stub-objc.c (objc_declare_protocols): Renamed to
3259 objc_declare_protocol.
3260 * c-objc.h: Likewise.
23407dc9 3261
29d7200d 32622011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3263
3264 * stub-objc.c (objc_declare_class): Updated argument name.
3265
9b88d08d 32662011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3267
3268 * c-common.h (c_common_init_ts): Declare.
3269 * c-common.c (c_common_init_ts): Define.
3270
4185cf58 32712011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3272
3273 * c-objc.h (objc_build_message_expr): Updated prototype.
3274 * stub-objc.c (objc_build_message_expr): Likewise.
19931eea 3275
5a90471f 32762011-04-12 Martin Jambor <mjambor@suse.cz>
3277
3278 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3279 of cgraph_node.
3280
783bb57e 32812011-04-11 Richard Guenther <rguenther@suse.de>
3282
3283 * c-common.c (complete_array_type): Build a range type of
3284 proper type.
3285
c33080b9 32862011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3287
3288 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3289 (handle_type_generic_attribute): Likewise.
3290
f8913d47 32912011-04-07 Jason Merrill <jason@redhat.com>
3292
3293 PR c++/48450
3294 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3295 conversion from C++0x scoped enum.
3296
c94b1d0e 32972011-04-06 Joseph Myers <joseph@codesourcery.com>
3298
3299 * c-target-def.h: New file.
3300 * c-target.def: New file.
3301 * c-target.h: New file.
3302 * c-common.c (targetcm): Don't define here.
3303 * c-common.h (default_handle_c_option): Declare.
3304 * c-format.c: Include c-target.h instead of target.h.
3305 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3306 include tm.h.
3307 (default_handle_c_option): Move from targhooks.c.
3308
acb10f41 33092011-03-29 Jakub Jelinek <jakub@redhat.com>
3310
3311 PR preprocessor/48248
3312 * c-ppoutput.c (print): Add src_file field.
3313 (init_pp_output): Initialize it.
3314 (maybe_print_line): Don't optimize by adding up to 8 newlines
3315 if map->to_file and print.src_file are different file.
3316 (print_line): Update print.src_file.
3317
82715bcd 33182011-03-25 Kai Tietz <ktietz@redhat.com>
3319
3320 * c-ada-spec.c (compare_comment): Use filename_cmp
3321 instead of strcmp for filename.
3322
451c8e2f 33232011-03-25 Jeff Law <law@redhat.com>
3324
3325 * c-family/c-common.c (def_fn_type): Add missing va_end.
3326
3c47771c 33272011-03-25 Jason Merrill <jason@redhat.com>
3328
3329 * c.opt: Add -std=c++03.
3330
97e6200f 33312011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3332
3333 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3334
ac86af5d 33352011-03-17 Kai Tietz
3336
3337 PR target/12171
ee212425 3338 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3339 Display allowed attributes for function pointer types.
3340 (pp_c_attributes_display): New function to display
3341 attributes having affects_type_identity flag set to true.
3342 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3343
ac86af5d 3344 * c-common.c (c_common_attribute_table):
3345 Add new element.
3346 (c_common_format_attribute_table): Likewise.
3347
914d1151 33482011-03-18 Jason Merrill <jason@redhat.com>
3349
69788bdf 3350 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3351 * c-common.h: Don't declare it here.
3352 * c-common.c: Or define it here.
3353 * c-opts.c (c_common_handle_option): Or set it here.
3354
914d1151 3355 PR c++/35315
3356 * c-common.c (handle_transparent_union_attribute): Don't
3357 make a duplicate type in C++.
3358
54cf6eed 33592011-03-15 Jason Merrill <jason@redhat.com>
3360
3361 * c-common.c (max_constexpr_depth): New.
3362 * c-common.h: Declare it.
3363 * c-opts.c (c_common_handle_option): Set it.
3364 * c.opt (fconstexpr-depth): New option.
3365
02cb1060 33662011-03-11 Jason Merrill <jason@redhat.com>
3367
9bf1c74e 3368 * c-common.c (attribute_takes_identifier_p): Add missing const.
3369
02cb1060 3370 PR c++/46803
3371 * c-common.c (attribute_takes_identifier_p): Assume that an
3372 unknown attribute takes an identifier.
3373
ecf2703d 33742011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3375
3376 PR c/47786
3377 * c-common.c (c_type_hash): Call list_length instead of iterating
3378 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3379
2b19dfe4 33802011-02-19 Jakub Jelinek <jakub@redhat.com>
3381
3382 PR c/47809
3383 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3384
29cf2335 33852011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3386
3387 * c.opt (fobjc-abi-version=) New.
3388 (fobjc-nilcheck): New.
3389
fad3f658 33902011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3391
3392 PR c++/46890
3393 * c-common.h (keyword_is_decl_specifier): Declare.
3394 * c-common.c (keyword_is_decl_specifier): Define.
3395 (keyword_is_function_specifier): New function.
3396
a12319b3 33972011-01-26 Jakub Jelinek <jakub@redhat.com>
3398
3399 PR c/47473
3400 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3401 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3402 REAL_TYPE.
3403
5c128dc8 34042011-01-26 Arnaud Charlet <charlet@adacore.com>
3405
3406 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3407
8d67b0c7 34082011-01-26 Jakub Jelinek <jakub@redhat.com>
3409
3410 PR pch/47430
3411 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3412 after init_c_lex if pch_file is set.
3413
0675168d 34142011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3415
e8911163 3416 PR c++/43601
0675168d 3417 * c.opt (-fkeep-inline-dllexport): New switch.
3418
0725e25c 34192011-01-12 Richard Guenther <rguenther@suse.de>
3420
3421 PR middle-end/32511
3422 * c-common.c (handle_weak_attribute): Warn instead of error
3423 on declaring an inline function weak.
3424
fdd84b77 34252011-01-05 Tom Tromey <tromey@redhat.com>
3426
3427 * c-common.h (lvalue_error): Update.
3428 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3429 not error.
3430
e6e73d14 34312010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
19931eea 3432
d67e8485 3433 PR objc/47075
3434 * c-objc.h (objc_finish_message_expr): Added argument to
3435 prototype.
3436
a36cf284 34372010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3438
3439 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3440 Use prototype_p.
3441
33b3681f 34422010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3443
3444 * c-objc.h (objc_maybe_warn_exceptions): New.
19931eea 3445 * stub-objc.c (objc_maybe_warn_exceptions): New.
33b3681f 3446
a1f90215 34472010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3448
3449 * c-common.h (readonly_error): Declare.
3450 * c-common.c (readonly_error): Define.
3451
b1bbc8e5 34522010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3453
3454 * c-common.h (invalid_indirection_error): Declare.
3455 * c-common.c (invalid_indirection_error): Define.
3456
b0d55af9 34572010-12-03 Richard Guenther <rguenther@suse.de>
3458
3459 PR c/46745
3460 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3461 (pp_c_unary_expression): Likewise.
3462 (pp_c_expression): Likewise.
3463
d7489d8d 34642010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3465
3466 * c-common.h (objc_finish_function): New.
3467 (objc_non_volatilized_type): Removed.
3468 (objc_type_quals_match): Removed.
3469 * stub-objc.c (objc_finish_function): New.
3470 (objc_non_volatilized_type): Removed.
3471 (objc_type_quals_match): Removed.
19931eea 3472
92468061 34732010-11-30 Joseph Myers <joseph@codesourcery.com>
3474
3475 * c-common.h (parse_optimize_options): Declare.
3476 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3477 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3478
967958e4 34792010-11-29 Joseph Myers <joseph@codesourcery.com>
3480
3481 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3482 GET_ENVIRONMENT.
3483 * c-pch.c (O_BINARY): Don't define here.
3484 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3485
b213bf24 34862010-11-25 Joseph Myers <joseph@codesourcery.com>
3487
3488 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3489 targetm.except_unwind_info.
3490
9faf44d6 34912010-11-23 Joseph Myers <joseph@codesourcery.com>
3492
3493 * c-opts.c (c_common_handle_option): Pass location to
3494 set_struct_debug_option.
3495
79396169 34962010-11-23 Joseph Myers <joseph@codesourcery.com>
3497
3498 * c-common.c (visibility_options): Move from ../opts.c.
3499 * c-common.h (struct visibility_flags, visibility_options):
3500 Declare here.
3501 * c-opts.c (finish_options): Rename to c_finish_options.
3502 (c_common_init): Update call to finish_options.
3503
b4aa4123 35042010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3505
3506 PR objc/34033
3507 * c-lex.c (lex_string): Check that each string in an Objective-C
3508 string concat sequence starts with either one or zero '@', and
3509 that there are no spurious '@' signs at the end.
3510
3e0e49f2 35112010-11-20 Joseph Myers <joseph@codesourcery.com>
3512
3513 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3514 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3515 HANDLE_PRAGMA_VISIBILITY.
3516 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3517 HANDLE_PRAGMA_VISIBILITY): Don't define.
3518 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3519
a9ffdd35 35202010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3521
3522 PR c++/16189
3523 PR c++/36888
3524 PR c++/45331
3525 * c-common.h (keyword_begins_type_specifier): Declare.
3526 (keyword_is_storage_class_specifier): Declare.
3527 (keyword_is_type_qualifier): Declare.
3528 * c-common.c (keyword_begins_type_specifier): New function.
3529 (keyword_is_storage_class_specifier): New function.
3530 (keyword_is_type_qualifier): Declare.
3531
93be21c0 35322010-11-19 Joseph Myers <joseph@codesourcery.com>
3533
3534 PR c/46547
3535 * c-common.c (in_late_binary_op): Define.
3536 (c_common_truthvalue_conversion): Check in_late_binary_op before
3537 calling c_save_expr.
3538 * c-common.h (in_late_binary_op): Declare.
3539
d7175aef 35402010-11-19 Joseph Myers <joseph@codesourcery.com>
3541
3542 * c-opts.c (c_common_handle_option): Update calls to
3543 set_struct_debug_option.
3544
c213e196 35452010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3546
3547 * c-common.h (objc_declare_protocols): Added additional argument.
3548 * stub-objc.c (objc_declare_protocol): Same change.
19931eea 3549
0b5fc5d6 35502010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3551
3552 PR c/33193
3553 * c-common.h (build_real_imag_expr): Declare.
3554 * c-semantics.c (build_real_imag_expr): Define.
3555
b8ba44e7 35562010-11-17 Joseph Myers <joseph@codesourcery.com>
3557
3558 * c-opts.c (c_common_parse_file): Take no arguments.
3559 * c-common.h (c_common_parse_file): Update prototype.
3560
6ef8d12f 35612010-11-16 Jakub Jelinek <jakub@redhat.com>
3562
3563 PR c++/46401
3564 * c-common.c (warning_candidate_p): Don't track non-const calls
3565 or STRING_CSTs.
3566
929d2a90 35672010-11-15 Ian Lance Taylor <iant@google.com>
3568
3569 * c-lex.c (init_c_lex): Set macro debug callbacks if
3570 flag_dump_go_spec is set.
3571
e4a7640a 35722010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3573
3574 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3575 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3576
597d2d81 35772010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3578
3579 PR preprocessor/45038
3580 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3581 dialects.
3582
c123f04d 35832010-11-12 Joseph Myers <joseph@codesourcery.com>
3584
3585 * c-common.h (c_family_lang_mask): Declare.
3586 * c-opts.c (c_family_lang_mask): Make extern.
3587 * c-pragma.c (handle_pragma_diagnostic): Use
3588 control_warning_option.
3589
3c6c0e40 35902010-11-12 Joseph Myers <joseph@codesourcery.com>
3591
3592 * c-common.c (parse_optimize_options): Update call to
3593 decode_options.
3594 * c-common.h (c_common_handle_option): Update prototype.
3595 * c-opts.c (c_common_handle_option): Take location_t parameter and
3596 pass it to other functions.
3597
19ec5c9e 35982010-11-11 Joseph Myers <joseph@codesourcery.com>
3599
3600 * c-opts.c (warning_as_error_callback): Remove.
3601 (c_common_initialize_diagnostics): Don't call
3602 register_warning_as_error_callback.
3603 (c_common_handle_option): Handle -Werror=normalized= here.
3604
bf776685 36052010-11-10 Joseph Myers <joseph@codesourcery.com>
3606
3607 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3608 in diagnostic.
3609 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3610 letter.
3611 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3612 Remove trailing '.' from diagnostics.
3613 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3614
6bd9d862 36152010-11-10 Joseph Myers <joseph@codesourcery.com>
3616
3617 * c-common.c (parse_optimize_options): Pass global_dc to
3618 decode_options.
3619 * c-opts.c (c_common_handle_option): Pass &global_options to
3620 set_Wstrict_aliasing.
3621 * c.opt (v): Don't mark Common or document here.
3622
1f6616ee 36232010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3624
3625 PR target/44981
3626 * c-format.c (format_type): New type gcc_objc_string_format_type.
3627 (valid_stringptr_type_p): New.
3628 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
19931eea 3629 (check_format_string): Pass expected type, use
1f6616ee 3630 valid_stringptr_type_p (), check that the format string types are
3631 consistent with the format specification.
3632 (decode_format_attr): Warn if NSString is used outside objective-c.
3633 (format_types_orig): Add NSString.
3634 (format_name): New.
3635 (format_flags): New.
3636 (check_format_arg): Handle format strings requiring an external parser.
3637 first_target_format_type: New variable.
3638 (handle_format_attribute): Set up first_target_format_type, pass the
3639 expected format arg string type to check_format_string().
3640 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3641 * stub-objc.c (objc_string_ref_type_p): New.
3642 (objc_check_format_arg): New.
3643
b0d0931f 36442010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3645
19931eea 3646 Fixed using the Objective-C 2.0 dot-syntax with class names.
b0d0931f 3647 * c-common.h (objc_build_class_component_ref): New.
3648 * stub-objc.c (objc_build_class_component_ref): New.
3649
f26877d5 36502010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3651
3652 * c.opt (Wproperty-assign-default): New option.
3653
1ef143b6 36542010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3655
3656 Implemented -fobjc-std=objc1 flag.
3657 * c.opt (fobjc-std=objc1): New option.
3658
8c582e4f 36592010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3660
3661 Implemented format and noreturn attributes for Objective-C methods.
3662 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3663 attribute for Objective-C methods.
3664
8637f1db 36652010-10-31 Jason Merrill <jason@redhat.com>
3666
3667 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3668 EXPR_LOC_OR_HERE.
3669
9d9f5bb3 36702010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3671
3672 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3673 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3674 (objc_add_property_declaration): Removed arguments for copies and
3675 ivar.
3676 (objc_build_getter_call): Renamed to
3677 objc_maybe_build_component_ref.
3678 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3679 (objc_is_property_ref): New.
3680 * c-common.c (c_common_reswords): Removed copies and ivar.
3681 * stub-objc.c (objc_add_property_declaration): Removed arguments
3682 for copies and ivar.
3683 (objc_build_getter_call): Renamed to
3684 objc_maybe_build_component_ref.
3685 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3686 (objc_is_property_ref): New.
19931eea 3687
56f907a0 36882010-10-29 Arnaud Charlet <charlet@adacore.com>
3689 Matthew Gingell <gingell@adacore.com>
3690
3691 * c-ada-spec.c (separate_class_package): New function.
3692 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3693 name of their enclosing package.
3694 (print_ada_declaration): Use separate_class_package.
3695
b5fa273e 36962010-10-27 Jason Merrill <jason@redhat.com>
3697
5290e253 3698 * c-common.c (c_common_reswords): Add __is_literal_type.
3699 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3700
b5fa273e 3701 * c-common.c (check_case_value): Remove special C++ code.
3702
7590f0e5 37032010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3704
3705 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3706 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3707 and RID_LAST_PATTR.
3708 (objc_add_property_declaration): Added additional arguments.
3709 (objc_property_attribute_kind): Removed.
3710 (objc_set_property_attr): Removed.
3711 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3712 copy and nonatomic.
3713 * stub-objc.c (objc_add_property_declaration): Added additional
3714 arguments.
3715 (objc_set_property_attr): Removed.
19931eea 3716
1d894bcf 37172010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3718
3719 * c-common.h (objc_add_property_variable): Renamed to
3720 objc_add_property_declaration. Added location argument.
3721 * stub-objc.c (objc_add_property_variable): Same change.
3722
e23bf1fb 37232010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3724
3725 * c-common.h (objc_maybe_printable_name): New.
3726 * stub-objc.c (objc_maybe_printable_name): New.
3727
93426222 37282010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3729 Andrew Pinski <pinskia@gmail.com>
3730
3731 * c-common.h (c_common_mark_addressable_vec): Declare.
3732 * c-common.c (c_common_mark_addressable_vec): New function.
3733
45b2b110 37342010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3735
3736 * c-common.h (objc_set_method_type): Removed.
3737 (objc_add_method_declaration): Added boolean argument.
3738 (objc_start_method_definition): Same change.
3739 (objc_build_method_signature): Same change.
3740 * stub-objc.c (objc_set_method_type): Removed.
3741 (objc_add_method_declaration): Added boolean argument.
3742 (objc_start_method_definition): Same change.
3743 (objc_build_method_signature): Same change.
3744
64cd9619 37452010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3746
3747 * c-common.h (finish_file): Removed.
3748 (objc_write_global_declarations): New.
3749 * c-opts.c (c_common_parse_file): Do not call finish_file.
3750 * stub-objc.c (objc_write_global_declarations): New.
19931eea 3751
e1f293c0 37522010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3753
3754 Implemented parsing @synthesize and @dynamic for
3755 Objective-C/Objective-C++.
3756 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3757 (objc_add_synthesize_declaration): New.
3758 (objc_add_dynamic_declaration): New.
3759 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3760 * stub-objc.c (objc_add_synthesize_declaration): New.
3761 (objc_add_dynamic_declaration): New.
19931eea 3762
ef97a312 37632010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3764
3765 PR target/46041
3766 * c-cppbuiltin.c (mode_has_fma): Move function here from
3767 builtins.c. Don't use the fma optab, instead just use the
3768 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3769 using -save-temps.
3770
69b07042 37712010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3772
3773 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 3774
69b07042 3775 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3776
19931eea 3777 Radar 4330422
69b07042 3778 * c-common.h (objc_non_volatilized_type): New declaration
3779 * stub-objc.c (objc_non_volatilized_type): New stub.
3780
f15f2e56 37812010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3782
69b07042 3783 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 3784
3785 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3786
19931eea 3787 Radar 4133425
f15f2e56 3788 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 3789 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 3790
4a8875ed 37912010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3792
3793 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3794 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3795 (objc_ivar_visibility_kind): New enum.
3796 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 3797 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 3798 visibility enum.
3799
7e0713b1 38002010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3801
3802 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3803 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3804 has the appropriate fma builtins.
3805 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3806
86c110ac 38072010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3808
7e0713b1 3809 merge from FSF apple 'trunk' branch.
86c110ac 3810 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 3811
86c110ac 3812 Radars 4436866, 4505126, 4506903, 4517826
3813 * c-common.c (c_common_resword): Define @property and its attributes.
3814 * c-common.h: Define property attribute enum entries.
3815 (OBJC_IS_PATTR_KEYWORD): New.
3816 (objc_property_attribute_kind): New enum.
3817 Declare objc_set_property_attr (), objc_add_property_variable (),
3818 objc_build_getter_call () and objc_build_setter_call ().
3819 * stub-objc.c (objc_set_property_attr): New stub.
3820 (objc_add_property_variable): Likewise.
3821 (objc_build_getter_call): Likewise.
3822 (objc_build_setter_call) Likewise.
7e0713b1 3823
40c8d1dd 38242010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3825
7e0713b1 3826 merge from FSF apple 'trunk' branch.
40c8d1dd 3827 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3828
3829 Radar 3803157 (method attributes)
3830 * c-common.c (handle_deprecated_attribute): Recognize
3831 objc methods as valid declarations.
3832 * c-common.h: Declare objc_method_decl ().
7e0713b1 3833 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 3834
f3f006ad 38352010-10-08 Joseph Myers <joseph@codesourcery.com>
3836
3837 * c-common.c (parse_optimize_options): Call
3838 decode_cmdline_options_to_array_default_mask before
3839 decode_options. Update arguments to decode_options.
3840 * c-common.h (c_common_init_options_struct): Declare.
3841 * c-opts.c (c_common_init_options_struct): New. Split out from
3842 c_common_init_options.
3843
0a65c3bb 38442010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3845
3846 Implemented fast enumeration for Objective-C.
3847 * c-common.h (objc_finish_foreach_loop): New.
3848 * stub-objc.c (objc_finish_foreach_loop): New.
3849
24ca3b4e 38502010-10-05 Joseph Myers <joseph@codesourcery.com>
3851
3852 * c-common.h (struct diagnostic_context): Don't declare here.
3853 (c_common_initialize_diagnostics): Declare using
3854 diagnostic_context typedef.
3855 * c-opts.c (c_common_handle_option): Pass global_dc to
3856 handle_generated_option.
3857
f83b64ca 38582010-10-04 Joseph Myers <joseph@codesourcery.com>
3859
3860 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3861 handle_generated_option.
3862
2fdec027 38632010-10-03 Ian Lance Taylor <iant@google.com>
3864
3865 * c.opt (-fplan9-extensions): New option.
3866
41acdfa4 38672010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3868
3869 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3870 Remove.
3871 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3872 of duplicating code.
3873
069761fb 38742010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3875
3876 * c-common.c: Add two new entries for @optional
3877 and @required keywords.
3878
3879 merge from FSF 'apple/trunk' branch.
3880 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3881
3882 Radar 4386773
3883 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3884 objective-c keywords.
3885 (objc_set_method_opt): New declaration.
3886 * stub-objc.c (objc_set_method_opt): New stub.
19931eea 3887
2c5d2e39 38882010-09-30 Joseph Myers <joseph@codesourcery.com>
3889
3890 * c-common.c (handle_optimize_attribute): Pass &global_options to
3891 cl_optimization_save and cl_optimization_restore.
3892 * c-opts.c (c_common_handle_option): Pass &global_options to
3893 handle_generated_option.
3894 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3895 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3896 &global_options to cl_optimization_restore.
3897
e5c75ac3 38982010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3899
3900 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3901 Objective-C/Objective-C++ keywords.
3902
3511333e 39032010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 3904
19931eea 3905 Merge from 'apple/trunk' branch on FSF servers.
3906
e147d6aa 3907 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3908
3909 Radar 4281748
3910 * c-common.h (objc_check_global_decl): New declaration.
3911 * stub-objc.c (objc_check_global_decl): New stub.
3912
5461e683 39132010-09-29 Joseph Myers <joseph@codesourcery.com>
3914
3915 * c.opt: Don't use VarExists.
3916
5ae82d58 39172010-09-29 Joseph Myers <joseph@codesourcery.com>
3918
3919 * c-common.c (c_cpp_error): Update names of diagnostic_context
3920 members.
3921 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3922 cl_optimization members.
3923 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3924 sanitize_cpp_opts, finish_options): Update names of cpp_options
3925 members.
3926
b27e241e 39272010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3928
3929 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3930 (objc_is_reserved_word): Removed.
3931 * c-common.c: Updated comments.
3932 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3933 objc_is_reserved_word.
3934 * stub-objc.c (objc_is_reserved_word): Removed.
3935
03fc2271 39362010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3937
19931eea 3938 * c-common.h (objc_add_method_declaration): Adjust prototype to
03fc2271 3939 include attributes.
3940 (objc_start_method_definition): Likewise.
3941 (objc_build_keyword_decl): Likewise.
3942 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3943 (objc_start_method_definition): Likewise.
3944 (objc_build_keyword_decl): Likewise.
3945
a336eb4b 39462010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3947
3948 * c-common.h (objc_start_class_interface): Adjust prototype.
3949 (objc_start_category_interface): Likewise.
3950 (objc_start_protocol): Likewise.
3951 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3952 (objc_start_class_interface): Likewise.
3953 (objc_start_category_interface): Likewise.
3954
48b14f50 39552010-09-27 Ian Lance Taylor <iant@google.com>
3956
3957 * c-common.c (c_common_attribute_table): Add no_split_stack.
3958 (handle_no_split_stack_attribute): New static function.
3959
4abfc532 39602010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3961
19931eea 3962 Merge from 'apple/trunk' branch on FSF servers.
4abfc532 3963
3964 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3965
19931eea 3966 Radar 4229905
4abfc532 3967 * c-common.h (objc_have_common_type): New declaration.
3968 * stub-objc.c (objc_have_common_type): New stub.
3969
3970 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3971
3972 Radar 4154928
3973 * c-common.h (objc_common_type): New prototype.
19931eea 3974 * stub-objc.c (objc_common_type): New stub.
4abfc532 3975
7bd95dfd 39762010-09-24 Jan Hubicka <jh@suse.cz>
3977
3978 * c-common.c (handle_leaf_attribute): New function.
3979 (struct attribute_spec c_common_att): Add leaf.
3980
5789e05b 39812010-09-22 Joseph Myers <joseph@codesourcery.com>
3982
3983 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3984 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3985 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3986 -include-barrier, -include-directory, -include-directory=,
3987 -include-directory-after, -include-directory-after=,
3988 -include-prefix, -include-prefix=, -include-with-prefix,
3989 -include-with-prefix=, -include-with-prefix-after,
3990 -include-with-prefix-after=, -include-with-prefix-before,
3991 -include-with-prefix-before=, -no-integrated-cpp,
3992 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3993 -output=, -pedantic, -pedantic-errors, -preprocess,
3994 -print-missing-file-dependencies, -trace-includes, -traditional,
3995 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3996 -user-dependencies, -verbose, -write-dependencies,
3997 -write-user-dependencies, no-integrated-cpp, traditional): New.
3998
e6fb54ba 39992010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4000
4001 PR objc/23710
9b60f3b0 4002 * c-common.h (objc_start_method_definition): Return bool instead
4003 of void.
4004 * stub-objc.c (objc_start_method_definition): Return bool instead
4005 of void.
4006
40072010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4008
4009 PR objc/25965
4010 * c-common.h (objc_get_interface_ivars): New declaration.
4011 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 4012
e44b0a1f 40132010-09-15 Ian Lance Taylor <iant@google.com>
4014
4015 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 4016 messages. Remove period at end of warning message.
e44b0a1f 4017
85c0a25c 40182010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4019
4020 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4021 (handle_alias_attribute): ... here.
4022 (handle_ifunc_attribute): New.
4023
5ba33bf4 40242010-09-06 Mark Mitchell <mark@codesourcery.com>
4025
4026 * c-common.h (do_warn_double_promotion): Declare.
4027 * c-common.c (do_warn_double_promotion): Define.
4028
c920faa3 40292010-09-05 Mark Mitchell <mark@codesourcery.com>
4030
4031 * c.opt (Wdouble-promotion): New.
4032
9604e070 40332010-09-02 Joseph Myers <joseph@codesourcery.com>
4034
4035 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4036 fvtable-thunks, fxref): Mark no longer supported in help text.
4037
3b0273a1 40382010-09-02 Joseph Myers <joseph@codesourcery.com>
4039
4040 * c.opt (Wimport, fall-virtual, falt-external-templates,
4041 fdefault-inline, fenum-int-equiv, fexternal-templates,
4042 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4043 fname-mangling-version-, fnew-abi, fnonnull-objects,
4044 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4045 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4046 applicable.
4047 (fhandle-exceptions): Mark with Alias and Warn.
4048 * c-opts.c (c_common_handle_option): Don't handle options marked
4049 as ignored.
4050
67089c6b 40512010-09-02 Joseph Myers <joseph@codesourcery.com>
4052
4053 * c.opt (Wcomments, Werror-implicit-function-declaration,
4054 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4055 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4056 aliases.
4057 * c-common.c (option_codes): Use OPT_Wcomment instead of
4058 OPT_Wcomments.
4059 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4060 Don't handle options marked as aliases.
4061
2af087f2 40622010-08-25 Richard Guenther <rguenther@suse.de>
4063
4064 * c-common.c (c_common_get_alias_set): Remove special
4065 handling for pointers.
4066
48148244 40672010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4068
4069 * c-common.c: Use FOR_EACH_VEC_ELT.
4070 * c-gimplify.c: Likewise.
4071 * c-pragma.c: Likewise.
4072
89c69892 40732010-08-16 Joseph Myers <joseph@codesourcery.com>
4074
4075 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4076 RejectDriver.
4077 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4078 RejectDriver.
4079 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4080 instead of OPT_MDX and OPT_MMDX.
4081
e28aa114 40822010-08-16 Joseph Myers <joseph@codesourcery.com>
4083
4084 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4085
99b66d21 40862010-08-12 Joseph Myers <joseph@codesourcery.com>
4087
4088 * c.opt (MD, MMD): Change to MDX and MMDX.
4089 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4090
666f4bf0 40912010-08-11 Joseph Myers <joseph@codesourcery.com>
4092
4093 * c-opts.c (c_common_handle_option): Call handle_generated_option
4094 instead of handle_option.
4095
5ec815f6 40962010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4097
4098 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4099 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4100
d13143cf 41012010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4102
4103 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4104 (pending_redefine_extname): Change type to a VEC.
4105 (add_to_renaming_pragma_list): Update for new type of
4106 pending_redefine_extname.
5ec815f6 4107 (maybe_apply_renaming_pragma): Likewise.
d13143cf 4108
2008c983 41092010-08-04 Arnaud Charlet <charlet@adacore.com>
4110
4111 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4112 visited.
4113 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4114 decide whether a type has already been declared/seen.
4115 Do not go to the original type.
4116 (dump_nested_types): New parameter forward.
4117 Generate forward declaration if needed and mark type as visited.
4118 (print_ada_declaration): Call dump_nested_types if not already done.
4119 Mark types as visited.
4120
9b091a73 41212010-08-03 Joseph Myers <joseph@codesourcery.com>
4122
4123 * c.opt (-print-pch-checksum): Remove option.
4124 * c-opts.c (c_common_handle_option): Don't handle
4125 OPT_print_pch_checksum.
4126
b78351e5 41272010-07-27 Joseph Myers <joseph@codesourcery.com>
4128
4129 * c-common.h (c_common_handle_option): Update prototype and return
4130 value type.
4131 * c-opts.c (c_common_handle_option): Update prototype and return
4132 value type. Update calls to handle_option and
4133 enable_warning_as_error.
4134
34416a90 41352010-07-27 Jakub Jelinek <jakub@redhat.com>
4136
4137 PR c/45079
4138 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4139
fecf9011 41402010-07-27 Joseph Myers <joseph@codesourcery.com>
4141
4142 * c-common.h (c_common_missing_argument): Remove.
4143 * c-opts.c (c_common_missing_argument): Remove.
4144 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4145 idirafter, imacros, include, isysroot, isystem, iquote): Add
4146 MissingArgError.
4147 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4148
e88d34f6 41492010-07-27 Joseph Myers <joseph@codesourcery.com>
4150
4151 * c-common.h (c_common_option_lang_mask,
4152 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4153 New.
4154 (c_common_init_options): Update prototype.
4155 * c-opts.c (c_common_option_lang_mask): New.
4156 (c_common_initialize_diagnostics): Split out of
4157 c_common_init_options.
4158 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4159 New.
4160 (c_common_init_options): Update prototype. Use decoded options in
4161 search for -lang-asm.
4162
1767a056 41632010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4164
4165 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4166 * c-format.c: Likewise.
4167
0b205f4c 41682010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4169
4170 * c-common.h: Include diagnostic-core.h. Error if already
4171 included.
4172 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4173
1c58e3f1 41742010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4175
4176 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
4177 Do not include expr.h
4178 (vector_mode_valid_p): Move here.
4179
33cc157c 41802010-06-21 DJ Delorie <dj@redhat.com>
4181
4182 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4183 allow these pragmas anywhere.
4184
41852010-06-14 Jakub Jelinek <jakub@redhat.com>
4186
4187 PR bootstrap/44509
4188 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4189 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4190 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4191 ggc_strdup instead of xstrdup.
4192
41932010-06-10 Jakub Jelinek <jakub@redhat.com>
4194
4195 * c-cppbuiltin.c: Include cpp-id-data.h.
4196 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4197 (lazy_hex_fp_value): New function.
4198 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4199
9b40bfbf 42002010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4201
4202 * c-gimplify.c: Do not include tree-flow.h
4203
202d6e5f 42042010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4205
4206 PR other/44034
4207 * c-common.c: Rename targetm member:
4208 targetm.enum_va_list -> targetm.enum_va_list_p
4209
d3237426 42102010-06-28 Anatoly Sokolov <aesok@post.ru>
4211
4212 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4213
596981c8 42142010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4215
4216 * c-cppbuiltin.c: Do not include except.h.
4217
b9bdfa0b 42182010-06-24 Andi Kleen <ak@linux.intel.com>
4219
19931eea 4220 * c-common.c (warn_for_omitted_condop): New.
4221 * c-common.h (warn_for_omitted_condop): Add prototype.
b9bdfa0b 4222
55ad092d 42232010-06-21 Joseph Myers <joseph@codesourcery.com>
4224
4225 * c.opt (lang-objc): Remove.
4226 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4227
9e7c2572 42282010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4229
4230 * c-opts.c: Include "tm_p.h".
4231
615ef0bb 42322010-06-20 Joseph Myers <joseph@codesourcery.com>
4233
4234 * c-common.c (parse_optimize_options): Update call to
4235 decode_options.
4236
aef48c9a 42372010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4238
4239 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4240 new type of types_used_by_cur_var_decl.
4241
d74003b4 42422010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4243
4244 PR bootstrap/44512
4245 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4246 for C++ standard compliance.
4247
1194d077 42482010-06-16 Jason Merrill <jason@redhat.com>
4249
4250 * c.opt: Add -Wnoexcept.
4251
d473d901 42522010-06-16 Richard Guenther <rguenther@suse.de>
4253
4254 PR c/44555
4255 * c-common.c (c_common_truthvalue_conversion): Remove
4256 premature and wrong optimization concering ADDR_EXPRs.
4257
b62dbfd3 42582010-06-15 Arnaud Charlet <charlet@adacore.com>
4259
4260 * c-ada-spec.c (dump_sloc): Remove column info.
4261 (is_simple_enum): New function.
4262 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4263 enum types when relevant.
4264
200dd99c 42652010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4266
19931eea 4267 * c-common.c (conversion_warning): Warn at expression
200dd99c 4268 location.
4269
abf6a617 42702010-06-10 Joseph Myers <joseph@codesourcery.com>
4271
4272 * c-opts.c (c_common_handle_option): Don't handle
4273 OPT_fshow_column.
4274
ba72912a 42752010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4276
4277 * c-pragma.c (push_alignment): Use typed GC allocation.
4278 (handle_pragma_push_options): Likewise.
4279
4280 * c-common.c (parse_optimize_options): Likewise.
4281
4282 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4283 option.
4284
4aafe913 42852010-06-07 Joseph Myers <joseph@codesourcery.com>
4286
4287 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4288 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4289 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4290 flag_signed_bitfields, warn_strict_null_sentinel,
4291 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4292 flag_gen_declaration, flag_no_gnu_keywords,
4293 flag_implement_inlines, flag_implicit_templates,
4294 flag_implicit_inline_templates, flag_optional_diags,
4295 flag_elide_constructors, flag_default_inline, flag_rtti,
4296 flag_conserve_space, flag_access_control, flag_check_new,
4297 flag_new_for_scope, flag_weak, flag_working_directory,
4298 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4299 flag_enforce_eh_specs, flag_threadsafe_statics,
4300 flag_pretty_templates): Remove.
4301 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4302 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4303 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4304 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4305 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4306 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4307 flag_no_gnu_keywords, flag_implement_inlines,
4308 flag_implicit_templates, flag_implicit_inline_templates,
4309 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4310 flag_rtti, flag_conserve_space, flag_access_control,
4311 flag_check_new, flag_new_for_scope, flag_weak,
4312 flag_working_directory, flag_use_cxa_atexit,
4313 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4314 flag_threadsafe_statics, flag_pretty_templates,
4315 warn_strict_null_sentinel): Remove.
4316 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4317 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4318 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4319 fimplicit-inline-templates, fimplicit-templates,
4320 flax-vector-conversions, fms-extensions, fnil-receivers,
4321 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4322 frtti, fshort-double, fshort-enums, fshort-wchar,
4323 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4324 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4325 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4326 gen-decls, undef): Use Var.
4327 (fdefault-inline, foptional-diags): Document as doing nothing.
4328 * c-opts.c (c_common_handle_option): Remove cases for options now
4329 using Var. Mark ignored options as such.
4330
7bedc3a0 43312010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4332
19931eea 4333 * c-common.c: Moved to here from parent directory.
7bedc3a0 4334 * c-common.def: Likewise.
4335 * c-common.h: Likewise.
4336 * c-cppbuiltin.c: Likewise.
4337 * c-dump.c: Likewise.
4338 * c-format.c: Likewise.
4339 * c-format.h : Likewise.
4340 * c-gimplify.c: Likewise.
4341 * c-lex.c: Likewise.
4342 * c-omp.c: Likewise.
4343 * c.opt: Likewise.
4344 * c-opts.c: Likewise.
4345 * c-pch.c: Likewise.
4346 * c-ppoutput.c: Likewise.
4347 * c-pragma.c: Likewise.
4348 * c-pragma.h: Likewise.
4349 * c-pretty-print.c: Likewise.
4350 * c-pretty-print.h: Likewise.
4351 * c-semantics.c: Likewise.
4352 * stub-objc.c: Likewise.
4353
4354 * c-common.c: Include gt-c-family-c-common.h.
4355 * c-pragma.c: Include gt-c-family-c-pragma.h.
4356\f
3aea1f79 4357Copyright (C) 2010-2014 Free Software Foundation, Inc.
7bedc3a0 4358
4359Copying and distribution of this file, with or without modification,
4360are permitted in any medium without royalty provided the copyright
4361notice and this notice are preserved.