]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
compiler: Pass location to fatal_error.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
85977647 12015-01-23 Tom de Vries <tom@codesourcery.com>
2
3 PR libgomp/64672
4 * c.opt (fopenacc): Mark as LTO option.
5
fa175926 62015-01-23 Tom de Vries <tom@codesourcery.com>
7
8 PR libgomp/64707
9 * c.opt (fopenmp): Mark as LTO option.
10
20aad5ba 112015-01-21 Jakub Jelinek <jakub@redhat.com>
12
13 PR c/63307
14 * cilk.c (fill_decls_vec): Only put decls into vector v.
15 (compare_decls): Fix up formatting.
16
172015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
18
19 PR c/63307
20 * cilk.c: Include vec.h.
21 (struct cilk_decls): New structure.
22 (wrapper_parm_cb): Split this function to...
23 (fill_decls_vec): ...this...
24 (create_parm_list): ...and this.
25 (compare_decls): New function.
26 (for_local_cb): Remove.
27 (wrapper_local_cb): Ditto.
28 (build_wrapper_type): For now first traverse and fill vector of
29 declarations then sort it and then deal with sorted vector.
30 (cilk_outline): Ditto.
31 (declare_one_free_variable): Ditto.
32
60b77e28 332015-01-21 Jason Merrill <jason@redhat.com>
34
35 PR c++/64629
36 * c-format.c (check_format_arg): Call decl_constant_value.
37
85fbea97 382015-01-19 Martin Liska <mliska@suse.cz>
39
40 * c-common.c (handle_noicf_attribute): New function.
41
ca4c3545 422015-01-15 Thomas Schwinge <thomas@codesourcery.com>
43 Bernd Schmidt <bernds@codesourcery.com>
44 James Norris <jnorris@codesourcery.com>
45 Cesar Philippidis <cesar@codesourcery.com>
46 Ilmir Usmanov <i.usmanov@samsung.com>
47 Jakub Jelinek <jakub@redhat.com>
48
49 * c.opt (fopenacc): New option.
50 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
51 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
52 New macros.
53 * c-common.h (c_finish_oacc_wait): New prototype.
54 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
55 (c_finish_oacc_wait): New function.
56 * c-pragma.c (oacc_pragmas): New variable.
57 (c_pp_lookup_pragma, init_pragma): Handle it.
58 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
59 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
60 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
61 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
62 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
63 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
64 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
65 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
66 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
67 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
68 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
69 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
70 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
71 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
72 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
73 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
74 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
75 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
76 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
77 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
78 PRAGMA_OACC_CLAUSE_WORKER.
79
947aa916 802015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
81
82 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
83 for the new option fstack-protector_explicit.
84 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
85 (handle_stack_protect_attribute): New function.
86
e4fd7af1 872015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
88
89 * c.opt: New option -Warray-bounds=.
90
1f78217c 912015-01-09 Michael Collison <michael.collison@linaro.org>
92
93 * array-notation-common.c: Include hash-set.h, machmode.h,
94 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
95 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
96 * c-ada-spec.c: Ditto.
97 * c-cilkplus.c: Ditto.
98 * c-common.c: Include input.h due to flattening of tree.h.
99 Define macro GCC_C_COMMON_C.
100 * c-common.h: Flatten tree.h header files into c-common.h.
101 Remove include of tree-core.h.
102 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
103 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
104 fold-const.h, wide-int.h, and inchash.h due to
105 flattening of tree.h.
106 * c-dump.c: Ditto.
107 * c-format.c: Flatten tree.h header files into c-common.h.
108 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
109 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
110 fold-const.h, wide-int.h, and inchash.h due to
111 flattening of tree.h.
112 * c-dump.c: Include hash-set.h, machmode.h,
113 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
114 fold-const.h, wide-int.h, and inchash.h due to
115 flattening of tree.h.
116 * c-format.c: Include hash-set.h, machmode.h,
117 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
118 fold-const.h, wide-int.h, inchash.h and real.h due to
119 flattening of tree.h.
120 * c-gimplify.c: Include hash-set.h, machmode.h,
121 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
122 fold-const.h, wide-int.h, and inchash.h due to
123 flattening of tree.h.
124 * cilk.c: Ditto.
125 * c-lex.c: Ditto.
126 * c-omp.c: Ditto.
127 * c-opts.c: Ditto.
128 * c-pch.c: Ditto.
129 * c-ppoutput.c: Ditto.
130 * c-pragma.c: Ditto.
131 * c-pretty-print.c: Ditto.
132 * c-semantics.c: Ditto.
133 * c-ubsan.c: Ditto.
134 * stub-objc.c: Ditto.
135
411b7663 1362015-01-08 Jason Merrill <jason@redhat.com>
137
138 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
139 do_ubsan_in_current_function.
140 (ubsan_maybe_instrument_reference_or_call): Likewise.
141 * c-ubsan.h: Declare it.
142
d1e96383 1432015-01-08 Mike Stump <mikestump@comcast.net>
144
145 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
146
b57910fa 1472015-01-07 Marek Polacek <polacek@redhat.com>
148
149 PR c/64440
150 * c-common.c (c_fully_fold_internal): Warn for division and modulo
151 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
152
678a4e3e 1532015-01-05 Trevor Saunders <tsaunders@mozilla.com>
154
155 PR c++/31397
156 * c.opt (Wsuggest-override): New option.
157
d353bf18 1582015-01-05 Jakub Jelinek <jakub@redhat.com>
159
160 Update copyright years.
161
92b63884 1622015-01-05 Marek Polacek <polacek@redhat.com>
163
164 PR c/64423
165 * c-common.c (warn_array_subscript_with_type_char): Add location_t
166 parameter. Use it.
167 * c-common.h (warn_array_subscript_with_type_char): Update
168 declaration.
169
83715bc4 1702014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
171
172 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
173 Control macro with flag_sized_deallocation.
174
8a8211df 1752014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
176
177 * c.opt (Wdiscarded-array-qualifiers): New option.
178
33058239 1792014-12-19 Jakub Jelinek <jakub@redhat.com>
180
181 PR preprocessor/63831
182 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
183 and __has_cpp_attribute here.
184 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
185 c_common_has_attribute.
186 * c-common.h (c_common_has_attribute): New prototype.
187 * c-lex.c (init_c_lex): Set cb->has_attribute to
188 c_common_has_attribute instead of cb_has_attribute.
189 (get_token_no_padding): New function.
190 (cb_has_attribute): Renamed to ...
191 (c_common_has_attribute): ... this. No longer static. Use
192 get_token_no_padding, require ()s, don't build TREE_LIST
193 unnecessarily, fix up formatting, adjust diagnostics, call
194 init_attributes.
195
d1856d2c 1962014-12-15 Jason Merrill <jason@redhat.com>
197
198 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
199 (-Wsized-deallocation): New.
200 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
201 to on in C++14 and up.
202
4972ed5d 2032014-12-11 Jason Merrill <jason@redhat.com>
204
7d7fa964 205 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
206
4972ed5d 207 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
208 we aren't complaining about VLAs.
209
5ebccf71 2102014-12-06 Marek Polacek <polacek@redhat.com>
211
212 PR tree-optimization/64183
213 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
214 shift-expression if it is integer_type_node. Use types_compatible_p.
215
f9e245b2 2162014-11-29 Jakub Jelinek <jakub@redhat.com>
217
218 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
219 last argument from create_tmp_var_raw and create_tmp_var calls.
220 * cilk.c (gimplify_cilk_spawn): Likewise.
221 * c-omp.c (c_finish_omp_atomic): Likewise.
222
d2f60593 2232014-11-28 Marek Polacek <polacek@redhat.com>
224
225 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
226 instead of unsigned_type_node.
227
fce2dbd1 2282014-11-28 Marek Polacek <polacek@redhat.com>
229
230 PR c/63862
231 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
232 to op1_utype.
233 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
234 expression to unsigned_type_node.
235
3a4a2292 2362014-11-20 Mark Wielaard <mjw@redhat.com>
237
238 PR debug/38757
239 * c-opts.c (set_std_c89): Set lang_hooks.name.
240 (set_std_c99): Likewise.
241 (set_std_c11): Likewise.
242 (set_std_cxx98): Likewise.
243 (set_std_cxx11): Likewise.
244 (set_std_cxx14): Likewise.
245 (set_std_cxx1z): Likewise.
246
c61ef207 2472014-11-21 Jakub Jelinek <jakub@redhat.com>
248
249 PR target/63764
250 * c-common.h (convert_vector_to_pointer_for_subscript): Change
251 return type to bool.
c9ed79de 252 * c-common.c: Include gimple-expr.h.
c61ef207 253 (convert_vector_to_pointer_for_subscript): Change return type to
254 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
255 and copy it into a TARGET_EXPR and use that instead of *vecp
256 directly.
257
1a91d914 2582014-11-19 David Malcolm <dmalcolm@redhat.com>
259
260 Merger of git branch "gimple-classes-v2-option-3".
261 * ChangeLog.gimple-classes: New.
262 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
263 from being just a vec<gimple> to a vec<gbind *>.
264
f8fc8b8e 2652014-11-18 Jakub Jelinek <jakub@redhat.com>
266
267 PR sanitizer/63813
268 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
269 argument to ptype, set type to TREE_TYPE (ptype). Don't call
270 get_pointer_alignment for non-pointers. Use ptype, or if it is
271 reference type, corresponding pointer type, as type of kind
272 argument.
273 (ubsan_maybe_instrument_reference,
274 ubsan_maybe_instrument_member_call): Adjust callers.
275
8315e35e 2762014-11-15 Marek Polacek <polacek@redhat.com>
277
278 PR middle-end/63884
279 * array-notation-common.c (is_sec_implicit_index_fn): Return false
280 for NULL fndecl.
281 (extract_array_notation_exprs): Return for NULL node.
282
86b9f14b 2832014-11-12 Joseph Myers <joseph@codesourcery.com>
284
285 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
286 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
287
0c93c8a9 2882014-11-12 Jakub Jelinek <jakub@redhat.com>
289
290 PR c/59708
291 * c-common.c (check_builtin_function_arguments): Handle
292 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
293
fdd735a7 2942014-11-10 Andi Kleen <ak@linux.intel.com>
295
296 PR c/60804
297 * c-common.h (check_no_cilk): Declare.
298 * cilk.c (get_error_location): New function.
299 (check_no_cilk): Dito.
300
5cb678b4 3012014-11-10 Andi Kleen <ak@linux.intel.com>
302
303 * cilk.c (recognize_spawn): Use expression location
304 for error message.
305
0feb4de1 3062014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
307
308 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
309
3aa2fa44 3102014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
311
312 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
313 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
314 (__cpp_range_based_for, __cpp_initializer_lists,
315 __cpp_delegating_constructors, __cpp_nsdmi,
316 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
317 for C++11; (__cpp_attribute_deprecated): Remove in favor of
318 __has_cpp_attribute.
319 * c-lex.c (cb_has_attribute): New callback CPP function;
320 (init_c_lex): Set has_attribute callback.
321
7fd22aae 3222014-11-04 Richard Biener <rguenther@suse.de>
323
324 * c-common.c (shorten_compare): Do not shorten mixed
325 DFP and non-DFP compares.
326
4af203ac 3272014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
328
329 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
330 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
331 Commentary and rearrangement of tests.
332 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
333 Commentary and rearrangement of tests.
334 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
335 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
336
3754d046 3372014-10-29 Richard Sandiford <richard.sandiford@arm.com>
338
339 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
340 enum from machine_mode.
341
1140c305 3422014-10-28 Andrew MacLeod <amacleod@redhat.com>
343
1f78217c 344 * c-common.c: Adjust include files.
345 * c-gimplify.c: Ditto.
346 * cilk.c: Ditto.
347 * c-pragma.c: Ditto.
348 * c-ubsan.c: Ditto.
1140c305 349
94ea8568 3502014-10-27 Andrew MacLeod <amacleod@redhat.com>
351
352 * c-gimplify.c: Adjust include files.
353
32ecf960 3542014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
355
356 PR c++/53061
357 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
358 c_common_initialize_diagnostics.
359 * c-common.h: Likewise.
360
85fecbe2 3612014-10-24 Marek Polacek <polacek@redhat.com>
362
363 PR c/56980
364 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
365 print "struct"/"union"/"enum" for typedefed names.
366
e7ec033a 3672014-10-23 Marek Polacek <polacek@redhat.com>
368
369 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
370 in unsigned type.
371
c2598081 3722014-10-22 Jakub Jelinek <jakub@redhat.com>
373 Yury Gribov <y.gribov@samsung.com>
374
375 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
376 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
377 instead of flag_sanitize_recover as bool flag.
378
acebb7e2 3792014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
380
381 * cilk.c: Revert previous change.
382
6115016c 3832014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
384
385 PR c/63307
386 * cilk.c: Include vec.h.
387 (struct cilk_decls): New structure.
388 (wrapper_parm_cb): Split this function to...
389 (fill_decls_vec): ...this...
390 (create_parm_list): ...and this.
391 (compare_decls): New function.
392 (for_local_cb): Remove.
393 (wrapper_local_cb): Ditto.
394 (build_wrapper_type): For now first traverse and fill vector of
395 declarations then sort it and then deal with sorted vector.
396 (cilk_outline): Ditto.
397 (declare_one_free_variable): Ditto.
398
e610d2b2 3992014-10-17 Marek Polacek <polacek@redhat.com>
400
401 * c-opts.c (c_common_post_options): Set warn_implicit_int.
402 * c.opt (Wimplicit-int): Initialize to -1.
403
a3020f2f 4042014-10-16 Andrew MacLeod <amacleod@redhat.com>
405
406 * c-pragma.c: Adjust include files.
407 * c-semantics.c: Likewise.
408
926ddd2c 4092014-10-16 DJ Delorie <dj@redhat.com>
410
411 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
412 multiples of bytes.
413
b0542e7c 4142014-10-14 Jason Merrill <jason@redhat.com>
415
416 PR c++/63455
417 * c-common.h (CPP_PREPARSED_EXPR): New.
418 (N_CP_TTYPES): Adjust.
419
b2601928 4202014-10-15 Marek Polacek <polacek@redhat.com>
421
422 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
423
9f75f026 4242014-10-14 DJ Delorie <dj@redhat.com>
425
426 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
427 types, not just __int128.
428 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
429 types, not just __int128.
430 (cpp_atomic_builtins): Round pointer sizes up.
431 (type_suffix): Use type precision, not specific types.
432 * c-common.c (c_common_reswords): Remove __int128 special case.
433 (c_common_type_for_size): Check for all __intN types, not just
434 __int128.
435 (c_common_type_for_mode): Likewise.
436 (c_common_signed_or_unsigned_type): Likewise.
437 (c_build_bitfield_integer_type): Likewise.
438 (c_common_nodes_and_builtins): Likewise.
439 (keyword_begins_type_specifier): Likewise.
440 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
441 __intN variants.
442
2ef51f0e 4432014-10-12 Trevor Saunders <tsaunders@mozilla.com>
444
445 * c-common.c: Use hash_table instead of hashtab.
446
5b8257e3 4472014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
448
1f78217c 449 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
5b8257e3 450 C++11 section.
451
5e84569c 4522014-10-03 Marc Glisse <marc.glisse@inria.fr>
453
454 PR c++/54427
455 PR c++/57198
456 PR c++/58845
457 * c-common.c (warn_logical_operator): Punt for vectors.
458
f6751ff2 4592014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
460
461 Implement SD-6: SG10 Feature Test Recommendations
462 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
463 macros and the __has_header macro.
464
c33e051d 4652014-09-30 Jason Merrill <jason@redhat.com>
466
f76a9aa8 467 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
468 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
469 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
470
717e52f9 471 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
472 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
473
c33e051d 474 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
475 * c-common.c (c_common_reswords): Remove __is_convertible_to.
476
5213d6c9 4772014-09-24 Marek Polacek <polacek@redhat.com>
478
479 PR c/61405
480 PR c/53874
481 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
482
6b722052 4832014-09-23 Andi Kleen <ak@linux.intel.com>
484
485 * c-common.c (handle_no_reorder_attribute): New function.
486 (c_common_attribute_table): Add no_reorder attribute.
487
0cb69d12 4882014-09-22 Joseph Myers <joseph@codesourcery.com>
489
490 * c-cppbuiltin.c (c_cpp_builtins): Define
491 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
492 modes.
493
168dfbf0 4942014-09-18 Joseph Myers <joseph@codesourcery.com>
495
496 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
497 for supported floating-point modes.
498
b83705f4 4992014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
500
501 * c.opt (Wpsabi): Use LangEnabledBy.
502 * c-opts.c (c_common_handle_option): Do not handle here.
503
d5957f0d 5042014-09-12 Joseph Myers <joseph@codesourcery.com>
505
506 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
507 macros for floating-point modes.
508
bae6edff 5092014-09-11 Marc Glisse <marc.glisse@inria.fr>
510
511 PR target/58757
512 * c-cppbuiltin.c (builtin_define_float_constants): Correct
513 __*_DENORM_MIN__ without denormals.
514
73a69d02 5152014-09-10 Jakub Jelinek <jakub@redhat.com>
516
517 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
518 ubsan_instrument_vla, ubsan_instrument_return): Adjust
519 ubsan_create_data callers.
520 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
521 index is constant or BIT_AND_EXPR with constant mask and is
522 small enough for the bound.
523 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
524 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
525
7ff8db31 5262014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
527
528 * c.opt: Add CppReason to various flags.
529 (Wdate-time): Re-sort.
530 * c-common.c: Include c-common.h earlier.
531 (struct reason_option_codes_t): Delete.
532 (c_option_controlling_cpp_error): Prefix global type and struct
533 with cpp_.
534
bcc1f37e 5352014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
536
537 * c.opt (Wnormalized): New.
538 (Wnormalized=): Use Enum and Reject Negative.
539 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
540
b660d3c6 5412014-09-08 Joseph Myers <joseph@codesourcery.com>
542
543 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
544 digits of floating-point modes if -fbuilding-libgcc.
545
325b8c3c 5462014-09-05 Joseph Myers <joseph@codesourcery.com>
547
548 * c-cppbuiltin.c (c_cpp_builtins): Also define
549 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
550 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
551 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
552 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
553 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
554 __LIBGCC_STACK_GROWS_DOWNWARD__,
555 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
556 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
557 __LIBGCC_DWARF_FRAME_REGISTERS__,
558 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
559 __LIBGCC_STACK_POINTER_REGNUM__ and
560 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
561 (builtin_define_with_value): Handle backslash-escaping in string
562 macro values.
563
1e074e77 5642014-09-05 Richard Biener <rguenther@suse.de>
565
566 PR middle-end/63148
567 * c-format.c (check_format_arg): Properly handle
568 effectively signed POINTER_PLUS_EXPR offset.
569
04afd878 5702014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
571
572 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
573 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
574 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
575 and Init.
576 * c-opts.c (c_common_handle_option): Do not handle here.
577 (sanitize_cpp_opts): Likewise.
578 * c-common.c (struct reason_option_codes_t): Handle
579 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
580
a3f448f0 5812014-09-03 Marek Polacek <polacek@redhat.com>
582
583 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
584
40750995 5852014-09-02 Jakub Jelinek <jakub@redhat.com>
586 Balaji V. Iyer <balaji.v.iyer@intel.com>
587 Igor Zamyatin <igor.zamyatin@intel.com>
588
589 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
590 * c-common.c (c_common_reswords): Added _Cilk_for.
591 * c-common.h (enum rid): Added RID_CILK_FOR.
592 (cilk_for_number_of_iterations): Add declaration.
593 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
594 CILK_FOR.
595 * c-pragma.c (init_pragma): Register "grainsize" pragma.
596 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
597
f0fbe519 5982014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
599
600 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
601 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
602 Wundef): Use CPP, Var and Init.
603 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
604
a7d2e480 6052014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
606
607 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
608 * c-opts.c (c_common_handle_option): Do not handle here.
609
c35e53f1 6102014-08-25 Jason Merrill <jason@redhat.com>
611
612 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
613 -std=c++14 and -std=gnu++14, rather than the reverse.
614 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
615 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
616 * c-common.h (cxx_dialect): Remove cxx1y.
617
4e454776 6182014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
619
620 * c-common.h (enum cxx_dialect): Add cxx14.
621 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
622 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
623 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
624
af1a80f2 6252014-08-22 Jason Merrill <jason@redhat.com>
626
627 * c.opt (std=gnu++17): Fix alias.
628
dc6229e8 6292014-08-22 Marek Polacek <polacek@redhat.com>
630
631 PR c++/62199
632 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
633 check for vector types. Drop LHS argument.
634 * c-common.h (warn_logical_not_parentheses): Adjust.
635
ba7f7c88 6362014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
637
638 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
639 (Wmultichar): Likewise.
640 (Wdate-time): Use C-family languages instead of Common. Use CPP
641 and Var.
642 * c-opts.c (c_common_handle_option): Do not handle the above
643 options here.
644 (sanitize_cpp_opts): Likewise.
645
399d4f80 6462014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
647
648 PR fortran/44054
649 * c-opts.c: Include tree-diagnostics.h.
650 (c_diagnostic_finalizer): New.
651 (c_common_initialize_diagnostics): Use it.
652
1babed5f 6532014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
654
655 PR preprocessor/51303
656 * c-common.c (struct reason_option_codes_t option_codes):
657 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
658
3636964b 6592014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
660
661 PR c/60975
662 PR c/53063
663 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
664 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
665 (c_common_post_options): Call init_global_opts_from_cpp.
666 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
667
78bf4156 6682014-08-19 Marek Polacek <polacek@redhat.com>
669
670 PR c++/62153
671 * c-common.c (maybe_warn_bool_compare): New function.
672 * c-common.h (maybe_warn_bool_compare): Declare.
673 * c.opt (Wbool-compare): New option.
674
508ea33a 6752014-08-19 Marek Polacek <polacek@redhat.com>
676
677 * c.opt (Wc99-c11-compat): New option.
678
806fe15e 6792014-08-19 Marek Polacek <polacek@redhat.com>
680
681 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
682 to warn_c90_c99_compat.
683 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
684 to -1.
685
6c867de1 6862014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
687 Steven Bosscher <steven@gcc.gnu.org>
688
689 PR c/52952
690 * c-format.c: Add extra_arg_loc and format_string_loc to struct
691 format_check_results.
692 (check_function_format): Use true and add comment for boolean
693 argument.
694 (finish_dollar_format_checking): Use explicit location when warning.
695 (check_format_info): Likewise.
696 (check_format_arg): Set extra_arg_loc and format_string_loc.
697 (check_format_info_main): Use explicit location when warning.
698 (check_format_types): Pass explicit location.
699 (format_type_warning): Likewise.
700
dc8078a3 7012014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
702
703 PR fortran/44054
704 * c-format.c: Handle Fortran flags.
705
d271ec7e 7062014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
707
708 PR other/61962
709 * array-notation-common.c (find_rank): Added handling for other
710 types of references.
711
890c2e2f 7122014-08-10 Marek Polacek <polacek@redhat.com>
713
714 PR c/51849
715 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
716 * c.opt (Wc90-c99-compat): Add option.
717
7149db5f 7182014-08-07 Trevor Saunders <tsaunders@mozilla.com>
719
720 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
721
2d2f6a15 7222014-08-03 Marek Polacek <polacek@redhat.com>
723
724 * c-common.c (check_case_value): Add location_t parameter. Use it.
725 (c_add_case_label): Pass loc to check_case_value.
726
06ecf488 7272014-08-02 Trevor Saunders <tsaunders@mozilla.com>
728
729 * cilk.c: Use hash_map instead of pointer_map.
730
431205b7 7312014-08-02 Trevor Saunders <tsaunders@mozilla.com>
732
733 * c-gimplify.c: Use hash_set instead of pointer_set.
734
3394c80c 7352014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
736
737 PR middle-end/61455
738 * array-notation-common.c (extract_array_notation_exprs): Handling
739 of DECL_EXPR added.
740
392dee1e 7412014-08-01 Jakub Jelinek <jakub@redhat.com>
742
743 * c-common.h (min_align_of_type): Removed prototype.
744 * c-common.c (min_align_of_type): Removed.
745 * c-ubsan.h (ubsan_maybe_instrument_reference,
746 ubsan_maybe_instrument_member_call): New prototypes.
747 * c-ubsan.c: Include stor-layout.h and builtins.h.
748 (ubsan_maybe_instrument_reference_or_call,
749 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
750 functions.
751
f22a2cb7 7522014-07-31 Marc Glisse <marc.glisse@inria.fr>
753
754 PR c++/60517
755 * c.opt (-Wreturn-local-addr): Move to common.opt.
756
87b0198f 7572014-07-30 Jason Merrill <jason@redhat.com>
758
759 PR c++/61659
760 PR c++/61687
761 Revert:
762 * c.opt (-fuse-all-virtuals): New.
763
74691f46 7642014-07-30 Tom Tromey <tromey@redhat.com>
765
766 PR c/59855
767 * c.opt (Wdesignated-init): New option.
768 * c-common.c (c_common_attribute_table): Add "designated_init".
769 (handle_designated_init): New function.
770
9140d56f 7712014-07-24 Marek Polacek <polacek@redhat.com>
772
773 PR c/57653
774 * c-opts.c (c_finish_options): If -imacros is in effect, return.
775
a09c5cc2 7762014-07-16 Dodji Seketeli <dodji@redhat.com>
777
778 PR preprocessor/60723 - missing system-ness marks for macro tokens
779 * c-ppoutput.c (struct print::prev_was_system_token): New data
780 member.
781 (init_pp_output): Initialize it.
782 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
783 (do_line_change): Return a flag saying if a line marker was
784 emitted or not.
785 (scan_translation_unit): Detect if the system-ness of the token we
786 are about to emit is different from the one of the previously
787 emitted token. If so, emit a line marker. Avoid emitting useless
788 adjacent line markers. Avoid emitting line markers for tokens
789 originating from the expansion of built-in macros.
790 (scan_translation_unit_directives_only): Adjust.
791
2b25b62f 7922014-07-15 Marek Polacek <polacek@redhat.com>
793
794 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
795 TYPE_MAX_VALUE is NULL.
796
305d96bc 7972014-07-14 Jakub Jelinek <jakub@redhat.com>
798
799 PR middle-end/61294
800 * c.opt (Wmemset-transposed-args): New warning.
801
8ea4660d 8022014-07-10 Jason Merrill <jason@redhat.com>
803
804 PR c++/61659
805 PR c++/61687
806 * c.opt (-fuse-all-virtuals): New.
807
cd480f3d 8082014-07-09 Richard Biener <rguenther@suse.de>
809
810 PR c-family/61741
811 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
812 using unsigned arithmetic if overflow does not wrap instead of
813 if overflow is undefined.
814
87d59e72 8152014-07-06 Marek Polacek <polacek@redhat.com>
816
817 PR c/6940
818 * c.opt (Wsizeof-array-argument): New option.
819
d69521d8 8202014-07-03 Jakub Jelinek <jakub@redhat.com>
821
822 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
823 comments->count <= 1, as comments->entries might be NULL.
824
1207866e 8252014-07-01 Marek Polacek <polacek@redhat.com>
826
827 * c.opt (Wint-conversion): New option.
828
7a6bbb76 8292014-07-01 Marek Polacek <polacek@redhat.com>
830
831 PR c/58286
832 * c.opt (Wincompatible-pointer-types): New option.
833
9d4eeb52 8342014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
835
836 PR c++/51400
837 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
838 Do not discard TYPE_QUALS of type.
839
4b53bc0f 8402014-06-26 Jason Merrill <jason@redhat.com>
841
842 * c-common.h (enum cxx_dialect): Add cxx1z.
843 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
844 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
845
a8a8d4ea 8462014-06-26 Teresa Johnson <tejohnson@google.com>
847
848 * c-common.h (get_dump_info): Declare.
849 * c-gimplify.c (c_genericize): Use saved dump files.
850 * c-opts.c (c_common_parse_file): Begin and end dumps
851 once around parsing invocation.
852 (get_dump_info): New function.
853
1f6be080 8542014-06-23 Marek Polacek <polacek@redhat.com>
855 Andrew MacLeod <amacleod@redhat.com>
856
857 PR c/61553
858 * c-common.c (get_atomic_generic_size): Don't segfault if the
859 type doesn't have a size.
860
5ef6b660 8612014-06-20 Marek Polacek <polacek@redhat.com>
862
863 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
864 (ubsan_walk_array_refs_r): New function.
865 (c_genericize): Instrument array bounds.
866 * c-ubsan.c: Include "internal-fn.h".
867 (ubsan_instrument_division): Mark instrumented arrays as having
868 side effects. Adjust ubsan_type_descriptor call.
869 (ubsan_instrument_shift): Likewise.
870 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
871 (ubsan_instrument_bounds): New function.
872 (ubsan_array_ref_instrumented_p): New function.
873 (ubsan_maybe_instrument_array_ref): New function.
874 * c-ubsan.h (ubsan_instrument_bounds): Declare.
875 (ubsan_array_ref_instrumented_p): Declare.
876 (ubsan_maybe_instrument_array_ref): Declare.
877
8782014-06-20 Hale Wang <hale.wang@arm.com>
3ccd1e6e 879
880 PR lto/61123
881 * c.opt (fshort-enums): Add to LTO.
882 * c.opt (fshort-wchar): Likewise.
883
78438f31 8842014-06-16 Marek Polacek <polacek@redhat.com>
885
886 PR c/60439
887 * c.opt (Wswitch-bool): Add Var.
888
5fddcf34 8892014-06-12 Jakub Jelinek <jakub@redhat.com>
890
891 PR middle-end/61486
892 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
893 #pragma omp target teams or
894 #pragma omp {,target }teams distribute simd.
895
74b777e5 8962014-06-12 Jason Merrill <jason@redhat.com>
897
898 * c.opt (Wabi=, fabi-compat-version): New.
899 * c-opts.c (c_common_handle_option): Handle -Wabi=.
900 (c_common_post_options): Handle flag_abi_compat_version default.
901 Disallow -fabi-compat-version=1.
902 * c-common.h (abi_version_crosses): New.
903
738a6bda 9042014-06-11 Jan Hubicka <hubicka@ucw.cz>
905
1f78217c 906 * c-common.c (handle_section_attribute): Update handling for
738a6bda 907 section names that are no longer trees.
908
cf5f881f 9092014-06-10 Jakub Jelinek <jakub@redhat.com>
910
911 PR fortran/60928
912 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
913 (omp_pragmas): ... back here.
914
32dc1512 9152014-06-05 Marek Polacek <polacek@redhat.com>
916
917 PR c/49706
918 * c-common.c (warn_logical_not_parentheses): New function.
919 * c-common.h (warn_logical_not_parentheses): Declare.
920 * c.opt (Wlogical-not-parentheses): New option.
921
f61a9bc2 9222014-06-04 Marek Polacek <polacek@redhat.com>
923
924 PR c/30020
925 * c-common.c (check_case_bounds): Add location parameter.
926 Use it.
927 (c_add_case_label): Pass loc to check_case_bounds.
928
c69ec07d 9292014-06-03 Marek Polacek <polacek@redhat.com>
930
931 PR c/60439
932 * c.opt (Wswitch-bool): New option.
933
3c77ca67 9342014-05-22 Thomas Schwinge <thomas@codesourcery.com>
935
68a2c870 936 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
937 Remove prototypes.
938 (record_types_used_by_current_var_decl): Move prototype to where
939 it belongs.
940
3c77ca67 941 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
942 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
943 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
944
3ab4693e 9452014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
946
947 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
948 * c-common.c (c_common_nodes_and_builtins): Don't initialize
949 void_zero_node.
950 * c-pretty-print.c (pp_c_void_constant): New function.
951 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
952 (c_pretty_printer::expression): Handle VOID_CST.
953 * cilk.c (extract_free_variables): Likewise.
954 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
955 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
956
25a27413 9572014-05-17 Trevor Saunders <tsaunders@mozilla.com>
958
959 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
960 * c-pragma.c (push_alignment): Adjust.
961 (handle_pragma_push_options): Likewise.
962
3e5a8b00 9632014-05-09 Marek Polacek <polacek@redhat.com>
964
965 PR c/50459
966 * c-common.c (check_user_alignment): Return -1 if alignment is error
967 node.
968 (handle_aligned_attribute): Don't call default_conversion on
969 FUNCTION_DECLs.
970 (handle_vector_size_attribute): Likewise.
971 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
972 (handle_sentinel_attribute): Call default_conversion and allow even
973 integral types as an argument.
974
c2c4ae8d 9752014-05-08 Marek Polacek <polacek@redhat.com>
976
977 PR c/61053
978 * c-common.c (min_align_of_type): New function factored out from...
979 (c_sizeof_or_alignof_type): ...here.
980 * c-common.h (min_align_of_type): Declare.
981
2026249a 9822014-05-08 Marek Polacek <polacek@redhat.com>
983
984 PR c/61077
985 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
986 parameter type of main.
987
33c8dcfe 9882014-05-07 DJ Delorie <dj@redhat.com>
989
990 * c-cppbuiltin.c (print_bits_of_hex): New.
991 (builtin_define_type_minmax): Print values using hex so as not to
992 require a pre-computed list of string values.
993
960d5a55 9942014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
995 Mike Stump <mikestump@comcast.net>
996 Richard Sandiford <rdsandiford@googlemail.com>
997
998 * c-ada-spec.c: Include wide-int.h.
999 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1000 (dump_generic_ada_node): Use wide-int interfaces.
1001 * c-common.c: Include wide-int-print.h.
1002 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1003 (pointer_int_sum): Use wide-int interfaces.
1004 (c_common_nodes_and_builtins): Use make_int_cst.
1005 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1006 (handle_alloc_size_attribute): Use wide-int interfaces.
1007 (get_nonnull_operand): Likewise.
1008 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1009 * c-lex.c: Include wide-int.h.
1010 (narrowest_unsigned_type): Take a widest_int rather than two
1011 HOST_WIDE_INTs.
1012 (narrowest_signed_type): Likewise.
1013 (interpret_integer): Update accordingly. Use wide-int interfaces.
1014 (lex_charconst): Use wide-int interfaces.
1015 * c-pretty-print.c: Include wide-int.h.
1016 (pp_c_integer_constant): Use wide-int interfaces.
1017 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1018 INT_CST_LT_UNSIGNED.
1019
bbb88b31 10202014-05-06 Richard Biener <rguenther@suse.de>
1021
1022 * c-opts.c (c_common_post_options): For -freestanding,
1023 -fno-hosted and -fno-builtin disable pattern recognition
1024 if not enabled explicitely.
1025
022d4718 10262014-05-02 Marek Polacek <polacek@redhat.com>
1027
1028 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1029
e4ab2ef3 10302014-05-01 Marek Polacek <polacek@redhat.com>
1031
1032 PR c/43245
1033 * c.opt (Wdiscarded-qualifiers): Add.
1034
52cc0072 10352014-04-30 Marek Polacek <polacek@redhat.com>
1036
1037 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1038 INT_MIN / -1 sanitization only for integer types.
1039
4a026b48 10402014-04-25 Marek Polacek <polacek@redhat.com>
1041
1042 PR c/18079
1043 * c-common.c (handle_noinline_attribute): Warn if the attribute
1044 conflicts with always_inline attribute.
1045 (handle_always_inline_attribute): Warn if the attribute conflicts
1046 with noinline attribute.
1047
90e645fa 10482014-04-25 Marek Polacek <polacek@redhat.com>
1049
1050 PR c/60156
1051 * c-common.c (check_main_parameter_types): Warn about variadic main.
1052
db103ea4 10532014-04-24 Mike Stump <mikestump@comcast.net>
1054
1055 * c.opt (Wshadow-ivar): Default to on.
1056
06511efd 10572014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1058
1059 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1060
cdf34fca 10612014-04-23 Marek Polacek <polacek@redhat.com>
1062
1063 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1064
7311d7c1 10652014-04-22 Jakub Jelinek <jakub@redhat.com>
1066
1067 PR sanitizer/60275
1068 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1069 if flag_sanitize_undefined_trap_on_error.
1070 (ubsan_instrument_division, ubsan_instrument_shift,
1071 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1072 if !flag_sanitize_recover.
1073
c1917557 10742014-04-22 Marc Glisse <marc.glisse@inria.fr>
1075
1076 PR libstdc++/43622
1077 * c-common.c (registered_builtin_types): Make non-static.
1078 * c-common.h (registered_builtin_types): Declare.
1079
b2ca6510 10802014-04-14 Richard Biener <rguenther@suse.de>
1081 Marc Glisse <marc.glisse@inria.fr>
1082
1083 PR c/60819
1084 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1085 apply may-alias the scalar pointer type when applicable.
1086
855372a3 10872014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1088
1089 PR middle-end/60467
1090 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1091 as possible argument for Cilk_spawn.
1092
4012a986 10932014-04-11 Tobias Burnus <burnus@net-b.de>
1094
1095 PR c/60194
1096 * c.opt (Wformat-signedness): Add
1097 * c-format.c(check_format_types): Use it.
1098
0d284870 10992014-04-11 Jason Merrill <jason@redhat.com>
1100
1101 PR c++/57926
1102 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1103 default_conversion for an array argument.
1104
a34c1231 11052014-04-08 Marek Polacek <polacek@redhat.com>
1106
1107 PR sanitizer/60745
1108 * c-ubsan.c: Include asan.h.
1109 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1110
a35a8e18 11112014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1112
1113 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1114
b23e42b6 11152014-04-02 Marek Polacek <polacek@redhat.com>
1116
1117 * c-common.h (c_expand_expr): Remove declaration.
1118
5a672e62 11192014-03-28 Jakub Jelinek <jakub@redhat.com>
1120
1121 PR c++/60689
1122 * c-common.c (add_atomic_size_parameter): When creating new
1123 params vector, push the size argument first.
1124
d4d068c0 11252014-03-26 Jakub Jelinek <jakub@redhat.com>
1126
1127 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1128 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1129 ubsan_create_data callers.
1130
446bdf5f 11312014-03-22 Jakub Jelinek <jakub@redhat.com>
1132
1133 PR debug/60603
1134 * c-opts.c (c_finish_options): Restore cb_file_change call to
1135 <built-in>.
1136
8895f0a3 11372014-03-13 Jakub Jelinek <jakub@redhat.com>
1138
1139 PR middle-end/36282
1140 * c-pragma.c (apply_pragma_weak): Only look at
1141 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1142 DECL_ASSEMBLER_NAME_SET_P (decl).
1143 (maybe_apply_pending_pragma_weaks): Exit early if
1144 vec_safe_is_empty (pending_weaks) rather than only when
1145 !pending_weaks.
1146 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1147 set assembler name back to NULL afterwards.
1148
7a5da2cd 11492014-03-11 Jason Merrill <jason@redhat.com>
1150
1151 * c.opt: Add -std=gnu++14.
1152
95093889 11532014-03-11 Ian Bolton <ian.bolton@arm.com>
1154
1155 * c-opts.c (c_common_post_options): Don't override
1156 -ffp-contract=fast if unsafe-math-optimizations is on.
1157
c9a24b37 11582014-03-08 Paulo Matos <paulo@matos-sorge.com>
1159
1160 * c.opt: Enable LTO FE for fshort-double.
1161
3f6dba6e 11622014-03-07 Jason Merrill <jason@redhat.com>
1163
1164 * c.opt: Add -std=c++14.
1165
3bfdc94f 11662014-03-06 Marek Polacek <polacek@redhat.com>
1167
1168 PR c/60197
1169 * cilk.c (contains_cilk_spawn_stmt): New function.
1170 (contains_cilk_spawn_stmt_walker): Likewise.
1171 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1172 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1173
8b3a6a4c 11742014-03-03 Jakub Jelinek <jakub@redhat.com>
1175
1176 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1177 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1178 even when flag_preprocess_only.
1179
734ec290 11802014-02-26 Jason Merrill <jason@redhat.com>
1181
1182 PR c++/59231
1183 PR c++/11586
1184 * c-common.c (shorten_compare): Don't check
1185 c_inhibit_evaluation_warnings.
1186
81aec8b8 11872014-02-19 Jakub Jelinek <jakub@redhat.com>
1188
d1081017 1189 PR c/37743
1190 * c-common.c (c_common_nodes_and_builtins): When initializing
1191 c_uint{16,32,64}_type_node, also set corresponding
1192 uint{16,32,64}_type_node to the same value.
1193
81aec8b8 1194 PR c++/60267
1195 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1196 for PRAGMA_IVDEP if flag_preprocess_only.
1197
312243bb 11982014-02-12 Jakub Jelinek <jakub@redhat.com>
1199
1200 PR c/60101
1201 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1202 if false, add ADD itself, rather than vice versa.
1203 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1204 copy. For SAVE_EXPR, only call merge_tlist once.
1205
237e78b1 12062014-02-08 Jakub Jelinek <jakub@redhat.com>
1207
1208 PR middle-end/60092
1209 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1210 and tree_to_uhwi.
1211 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1212 functions.
1213 (c_common_attribute_table): Add alloc_align and assume_aligned
1214 attributes.
1215
76fdceeb 12162014-02-06 Marek Polacek <polacek@redhat.com>
1217
1218 PR c/60087
1219 * c-common.c (warn_for_sign_compare): Call warning_at with location
1220 instead of warning.
1221
4a4dea42 12222014-02-05 Marek Polacek <polacek@redhat.com>
1223
1224 PR c/53123
1225 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1226 statement.
1227
ec704957 12282014-02-04 Marek Polacek <polacek@redhat.com>
1229
1230 PR c/60036
1231 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1232 SAVE_EXPR.
1233
caf62483 12342014-02-03 Marc Glisse <marc.glisse@inria.fr>
1235
1236 PR c++/53017
1237 PR c++/59211
1238 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1239 handle_vector_size_attribute, handle_nonnull_attribute): Call
1240 default_conversion on the attribute argument.
1241 (handle_nonnull_attribute): Increment the argument number.
1242
ec761d5a 12432014-01-31 Marek Polacek <polacek@redhat.com>
1244
1245 PR c/59963
1246 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1247 build_function_call_vec.
1248 (resolve_overloaded_builtin): Likewise.
1249 * c-common.h (build_function_call_vec): Adjust declaration.
1250
22a75734 12512014-01-30 Marek Polacek <polacek@redhat.com>
1252
1253 PR c/59940
1254 * c-common.h (unsafe_conversion_p): Adjust declaration.
1255 (warnings_for_convert_and_check): Likewise.
1256 (convert_and_check): Likewise.
1257 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1258 expansion_point_location_if_in_system_header on it.
1259 (warnings_for_convert_and_check): Add location parameter. Call
1260 expansion_point_location_if_in_system_header on it. Use it.
1261 (convert_and_check): Add location parameter. Use it.
1262 (conversion_warning): Likewise.
1263 (c_add_case_label): Adjust convert_and_check calls.
1264 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1265
a89e6c15 12662014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1267
1268 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1269 flag_cilkplus.
1270 * c-pragma.c (init_pragma): Likewise.
1271 * c.opt: Likewise.
1272
2623625f 12732014-01-23 Marek Polacek <polacek@redhat.com>
1274
1275 PR c/59846
1276 * c-common.c (shorten_compare): Add location_t parameter.
1277 * c-common.h (shorten_binary_op): Adjust declaration.
1278
46da3601 12792014-01-23 Marek Polacek <polacek@redhat.com>
1280
1281 PR c/58346
1282 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1283 * c-common.h: Declare it.
1284
c9743c6a 12852014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1286
1287 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1288 * c-ada-spec.c (dump_ads): Likewise.
1289 (cpp_check): Likewise.
1290 (dump_ada_specs): Likewise.
1291
12922014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
36e33c6a 1293
1294 PR c++/49718
1295 * c-common.c (handle_no_instrument_function_attribute): Allow
1296 no_instrument_function attribute in class member
1297 definition/declaration.
1298
1248c663 12992014-01-15 Jakub Jelinek <jakub@redhat.com>
1300
1301 PR c/58943
1302 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1303 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1304 being COMPOUND_EXPR.
1305 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1306 operand a SAVE_EXPR and second MODIFY_EXPR.
1307
6e5c480b 13082014-01-09 Jakub Jelinek <jakub@redhat.com>
1309
1310 PR target/58115
1311 * c-pch.c (c_common_write_pch): Call
1312 prepare_target_option_nodes_for_pch.
1313
3aea1f79 13142014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1315
1316 Update copyright years
1317
e4f22041 13182014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1319
1320 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1321 the copyright notice.
1322
7fb0fe24 13232013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1324
1325 * c-ada-spec.c (print_constructor): New function.
1326 (print_destructor): Retrieve the origin of the destructor.
1327 (print_ada_declaration): Revamp handling of constructors/destructors.
1328
468088ac 13292013-12-23 Stuart Hastings <stuart@apple.com>
1330 Bill Maddox <maddox@google.com>
1331 Jason Merrill <jason@redhat.com>
1332
1333 * c.opt: Add -fdeclone-ctor-dtor.
1334 * c-opts.c (c_common_post_options): Default to on iff -Os.
1335
74acc703 13362013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1337
1338 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1339 attribute.
1340 * c-pragma.h (enum pragma_cilk_clause): Remove.
1341 (enum pragma_omp_clause): Added the following fields:
1342 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1343 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1344 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1345 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1346 PRAGMA_CILK_CLAUSE_UNIFORM.
1347
1348
433e804e 13492013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1350
1351 * cilk.c (cilk_outline): Made this function non-static.
1352 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1353 (create_cilk_wrapper): Added a new parameter: a function pointer.
1354 (c_install_body_w_frame_cleanup): Remove
1355 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1356 * c-common.h (cilk_outline): New prototype.
1357 (gimplify_cilk_spawn): Removed two parameters.
1358 (cilk_install_body_with_frame_cleanup): New prototype.
1359 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1360 CILK_SPAWN_STMT case.
1361
5bcc7e60 13622013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1363
e66325ea 1364 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1365
5bcc7e60 1366 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1367 (int_array_type_node): Remove.
1368 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1369
0b26ec77 13702013-12-05 Marek Polacek <polacek@redhat.com>
1371
1372 PR c/52023
1373 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1374 [ADJUST_FIELD_ALIGN].
1375
a179a7dc 13762013-12-04 Joseph Myers <joseph@codesourcery.com>
1377
1378 PR c/52023
1379 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1380 and check field alignment if set.
1381 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1382 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1383
137559b2 13842013-12-04 Jakub Jelinek <jakub@redhat.com>
1385 Marek Polacek <polacek@redhat.com>
1386
1387 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1388 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1389
648fd348 13902013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1391
1392 PR c/59309
1393 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1394 arguments.
1395
253e1cae 13962013-11-29 Jakub Jelinek <jakub@redhat.com>
1397
1398 PR c/59280
1399 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1400 goto invalid. If it is error_mark_node, don't issue further
1401 diagnostics.
1402
3e398f5b 14032013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1404
1405 * c.opt (Wopenmp-simd): New.
1406
020bc656 14072013-11-22 Jakub Jelinek <jakub@redhat.com>
1408
1409 * c-ubsan.h (ubsan_instrument_return): New prototype.
1410 * c-ubsan.c (ubsan_instrument_return): New function.
1411
bc61cadb 14122013-11-22 Andrew MacLeod <amacleod@redhat.com>
1413
1414 * c-common.c: Add required include files from gimple.h.
1415 * c-gimplify.c: Likewise
1416 * cilk.c: Likewise
1417
3df42822 14182013-11-22 David Malcolm <dmalcolm@redhat.com>
1419
1420 * c-common.c (unsafe_conversion_p): Remove use of
1421 EXPR_LOC_OR_HERE macro.
1422 (conversion_warning): Likewise.
1423 (warnings_for_convert_and_check): Likewise.
1424 (warn_for_collisions_1): Likewise.
1425 (shorten_compare): Likewise, and remove use of in_system_header
1426 macro, using the location from the former.
1427 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1428 (cb_def_pragma): Remove use of in_system_header macro.
1429 (lex_string): Likewise.
1430 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1431
8c53c46c 14322013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1433 Mike Stump <mikestump@comcast.net>
1434 Richard Sandiford <rdsandiford@googlemail.com>
1435
1436 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1437 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1438 tree_fits_shwi_p or tree_fits_uhwi_p.
1439 (dump_generic_ada_node): Likewise.
1440 * c-format.c (check_format_arg): Likewise.
1441 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1442
5200ef07 14432013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1444
1445 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1446
ca9d7d74 14472013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1448
1449 PR c/53001
1450 * c-common.c (unsafe_conversion_p): Make this function
1451 return an enumeration with more detail.
1452 (conversion_warning): Use the new return type of
1453 unsafe_conversion_p to separately warn either about conversions
1454 that lower floating point number precision or about the other
1455 kinds of conversions.
1456 * c-common.h (enum conversion_safety): New enumeration.
1457 (unsafe_conversion_p): switching return type to
1458 conversion_safety enumeration.
1459 * c.opt: Adding new warning -Wfloat-conversion and
1460 enabling it with -Wconversion.
1461
0391a567 14622013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1463
1464 * c-opts.c: Include plugin.h.
1465 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1466
19b928d9 14672013-11-19 Marek Polacek <polacek@redhat.com>
1468
1469 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1470 call.
1471 (ubsan_instrument_shift): Likewise.
1472 (ubsan_instrument_vla): Likewise.
1473
aa59f000 14742013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1475
1476 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1477 cast to unsigned type.
1478
08f817b3 14792013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1480
1481 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1482 tree_low_cst.
1483 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1484 rather than tree_low_cst.
1485
6a0712d4 14862013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1487
1488 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1489 tree_to_uhwi throughout.
1490
fcb97e84 14912013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1492
1493 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1494 tree_low_cst (..., 0) with tree_to_shwi throughout.
1495
cd4547bf 14962013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1497
1498 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1499 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1500
35ec552a 15012013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1502
1503 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1504 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1505
f2697631 15062013-11-15 Aldy Hernandez <aldyh@redhat.com>
1507
1508 * c-cilkplus.c: New file.
1509 * c-common.c (readonly_error): Add location argument.
1510 * c-common.h (readonly_error): Same.
1511 (c_finish_cilk_clauses): Protoize.
1512 (c_check_cilk_loop): Same.
1513 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1514 Do not fail on error_mark_node.
1515 Abstract increment canonicalization to here...
1516 (c_omp_for_incr_canonicalize_ptr): New.
1517 c-pragma.c (init_pragma): Register "simd" pragma.
1518 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1519 (enum pragma_cilk_clause): New.
1520
0aa8c34e 15212013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1522
1523 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1524 wchar_type and host_integerp checks.
1525
e795d6e1 15262013-11-14 Andrew MacLeod <amacleod@redhat.com>
1527
1528 * c-common.c: Likewise.
1529 * c-gimplify.c: Likewise.
1530 * cilk.c: Likewise.
1531
9ed99284 15322013-11-14 Diego Novillo <dnovillo@google.com>
1533
1534 * c-common.c: Include fold-const.h.
1535 Include stor-layout.h.
1536 Include calls.h.
1537 Include stringpool.h.
1538 Include attribs.h.
1539 Include varasm.h.
1540 Include trans-mem.h.
1541 * c-cppbuiltin.c: Include stor-layout.h.
1542 Include stringpool.h.
1543 * c-format.c: Include stringpool.h.
1544 * c-lex.c: Include stringpool.h.
1545 Include stor-layout.h.
1546 * c-pragma.c: Include stringpool.h.
1547 Include attribs.h.
1548 Include varasm.h.
1549 Include gcc-symtab.h.
1550 * c-pretty-print.c: Include stor-layout.h.
1551 Include attribs.h.
1552 * cilk.c: Include stringpool.h.
1553 Include calls.h.
1554
4fba5eb9 15552013-11-13 Joseph Myers <joseph@codesourcery.com>
1556
1557 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1558 * c-common.c (c_common_reswords): Add __auto_type.
1559 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1560
a8783bee 15612013-11-12 Andrew MacLeod <amacleod@redhat.com>
1562
e795d6e1 1563 * c-common.c: Include gimplify.h.
1564 * c-gimplify.c: Likewise.
1565 * cilk.c: Likewise.
1566 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1567 * c-ubsan.c: Don't include gimple.h.
a8783bee 1568
d184e0c0 15692013-11-12 Joseph Myers <joseph@codesourcery.com>
1570
1571 * c-common.c (c_common_reswords): Add _Thread_local.
1572
a056826c 15732013-11-09 Joseph Myers <joseph@codesourcery.com>
1574
1575 * c-common.c (atomic_size_supported_p): New function.
1576 (resolve_overloaded_atomic_exchange)
1577 (resolve_overloaded_atomic_compare_exchange)
1578 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1579 Use it instead of comparing size with a local list of sizes.
1580
b560fabd 15812013-11-07 Andrew MacLeod <amacleod@redhat.com>
1582 Joseph Myers <joseph@codesourcery.com>
1583
1584 * c-common.h (enum rid): Add RID_ATOMIC.
1585 * c-common.c (c_common_reswords): Add _Atomic.
1586 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1587 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1588 * c-format.c (check_format_types): Check for extra _Atomic
1589 qualifiers in format argument.
1590 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1591 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1592
5b1a0622 15932013-11-06 Tobias Burnus <burnus@net-b.de>
1594
1595 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1596
4f8f4cb8 15972013-11-06 Joseph Myers <joseph@codesourcery.com>
1598
1599 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1600 standards modes.
1601 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1602 to mean lack of IEEE 754 support.
1603
9148bda3 16042013-11-05 Tobias Burnus <burnus@net-b.de>
1605
1606 * c.opt (-Wdate-time): New option
1607 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1608
08c5f4d5 16092013-11-05 Joseph Myers <joseph@codesourcery.com>
1610
1611 * c-cppbuiltin.c (cpp_iec_559_value): Test
1612 flag_excess_precision_cmdline not flag_excess_precision.
1613
c630ef93 16142013-11-05 Tobias Burnus <burnus@net-b.de>
1615
1616 * c.opt (fopenmp-simd): New option.
1617 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1618 (omp_pragmas): ... this new struct.
1619 (c_pp_lookup_pragma): Also walk omp_pragmas.
1620 (init_pragma): Init pragmas for -fopenmp-simd.
1621
7354a89b 16222013-11-04 Marek Polacek <polacek@redhat.com>
1623
1624 PR c++/58979
1625 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1626
4c866b9b 16272013-11-04 Joseph Myers <joseph@codesourcery.com>
1628
1629 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1630 New functions.
1631 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1632
e2a6a333 16332013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1634
1635 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1636 (dump_ada_specs): Adjust prototype of second callback.
1637 * c-ada-spec.c (cpp_check): New global variable.
1638 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1639 (print_generic_ada_decl): Likewise.
1640 (has_static_fields): Change return type to bool and add guard.
1641 (has_nontrivial_methods): New predicate.
1642 (is_tagged_type): Change return type to bool.
1643 (separate_class_package): Call has_nontrivial_methods.
1644 (pp_ada_tree_identifier): Minor tweaks.
1645 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1646 (dump_ada_array_domains): Likewise.
1647 (dump_ada_array_type): Likewise.
1648 (dump_template_types): Remove cpp_check parameter and do not pass it to
1649 dump_generic_ada_node.
1650 (dump_ada_template): Likewise.
1651 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1652 recursively.
1653 (print_ada_methods): Change return type to integer. Remove cpp_check
1654 parameter and do not pass it down.
1655 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1656 dump_generic_ada_node.
1657 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1658 accessing methods.
1659 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1660 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1661 value of print_ada_methods.
1662 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1663 Set cpp_check to it before invoking dump_ada_nodes.
1664 (dump_ada_specs): Likewise.
1665
2c4c3477 16662013-11-03 Marek Polacek <polacek@redhat.com>
1667
1668 * c-ubsan.c: Don't include hash-table.h.
1669 (ubsan_instrument_vla): New function.
1670 * c-ubsan.h: Declare it.
1671
452659af 16722013-10-31 David Malcolm <dmalcolm@redhat.com>
1673
1674 Automated part of renaming of symtab_node_base to symtab_node.
1675
1676 Patch autogenerated by rename_symtab.py from
1677 https://github.com/davidmalcolm/gcc-refactoring-scripts
1678 revision 58bb219cc090b2f4516a9297d868c245495ee622
1679
1680 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1681 symtab_node_base to symtab_node.
1682
4d6f7dd4 16832013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1684
1685 Implement C++14 digit separators.
1686 * c-lex.c (interpret_float): Remove digit separators from scratch string
1687 before building real literal.
1688
06cfe805 16892013-10-30 Jakub Jelinek <jakub@redhat.com>
1690
1691 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1692
d037099f 16932013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1694
1695 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1696 fields.
1697 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1698 enabled.
1699 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1700 (insert_cilk_frame): New prototype.
1701 (cilk_init_builtins): Likewise.
1702 (gimplify_cilk_spawn): Likewise.
1703 (c_cilk_install_body_w_frame_cleanup): Likewise.
1704 (cilk_detect_spawn_and_unwrap): Likewise.
1705 (cilk_set_spawn_marker): Likewise.
1706 (build_cilk_sync): Likewise.
1707 (build_cilk_spawn): Likewise.
1708 * cilk.c: New file.
1709
02774f2d 17102013-10-29 David Malcolm <dmalcolm@redhat.com>
1711
1712 Patch autogenerated by refactor_symtab.py from
1713 https://github.com/davidmalcolm/gcc-refactoring-scripts
1714 revision 58bb219cc090b2f4516a9297d868c245495ee622
1715
1716 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1717 to a true class hierarchy.
1718 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1719
31fe10fd 17202013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1721
1722 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1723
b1c06ff9 17242013-10-26 Jeff Law <law@redhat.com>
1725
1f78217c 1726 * c-common.c (c_define_builtins): Remove mudflap support.
1727 * c.opt: Ignore and warn for mudflap options.
b1c06ff9 1728
48a972c8 17292013-10-24 Tobias Burnus <burnus@net-b.de>
4644b593 1730
1731 PR other/33426
1732 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1733 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1734
546a04b1 17352013-10-23 Jason Merrill <jason@redhat.com>
1736
1737 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1738
bc7bff74 17392013-10-11 Jakub Jelinek <jakub@redhat.com>
1740
d62c713e 1741 * c-common.h (omp_clause_mask::operator !=): New method.
1742 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1743 instead of if (mask & something) tests everywhere.
1744
bc7bff74 1745 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1746 201307 instead of 201107.
1747 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1748 (c_common_attribute_table): Add "omp declare target" and
1749 "omp declare simd" attributes.
1750 (handle_omp_declare_target_attribute,
1751 handle_omp_declare_simd_attribute): New functions.
1752 * c-omp.c: Include c-pragma.h.
1753 (c_finish_omp_taskgroup): New function.
1754 (c_finish_omp_atomic): Add swapped argument, if true,
1755 build the operation first with rhs, lhs arguments and use NOP_EXPR
1756 build_modify_expr.
1757 (c_finish_omp_for): Add code argument, pass it down to make_code.
1758 (c_omp_split_clauses): New function.
1759 (c_split_parallel_clauses): Removed.
1760 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1761 c_omp_declare_simd_clauses_to_decls): New functions.
1762 * c-common.h (omp_clause_mask): New type.
1763 (OMP_CLAUSE_MASK_1): Define.
1764 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1765 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1766 omp_clause_mask::operator |, omp_clause_mask::operator &,
1767 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1768 omp_clause_mask::operator ==): New methods.
1769 (enum c_omp_clause_split): New.
1770 (c_finish_omp_taskgroup): New prototype.
1771 (c_finish_omp_atomic): Add swapped argument.
1772 (c_finish_omp_for): Add code argument.
1773 (c_omp_split_clauses): New prototype.
1774 (c_split_parallel_clauses): Removed.
1775 (c_omp_declare_simd_clauses_to_numbers,
1776 c_omp_declare_simd_clauses_to_decls): New prototypes.
1777 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1778 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1779 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1780 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1781 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1782 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1783 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1784 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1785 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1786 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1787 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1788 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1789 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1790 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1791 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1792 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1793 PRAGMA_OMP_CLAUSE_UNIFORM.
1794
d7dcba40 17952013-10-09 Marc Glisse <marc.glisse@inria.fr>
1796
1797 PR tree-optimization/20318
1798 * c-common.c (handle_returns_nonnull_attribute): New function.
1799 (c_common_attribute_table): Add returns_nonnull.
1800
0b7282f1 18012013-10-03 Marc Glisse <marc.glisse@inria.fr>
1802
1803 PR c++/19476
1804 * c.opt (fcheck-new): Move to common.opt.
1805
51f553af 18062013-09-25 Marek Polacek <polacek@redhat.com>
1807 Jakub Jelinek <jakub@redhat.com>
1808
1809 PR sanitizer/58413
1810 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1811 an expression if we can prove it is correct.
1812 (ubsan_instrument_division): Likewise. Remove unnecessary
1813 check.
1814
05f893e1 18152013-09-18 Marek Polacek <polacek@redhat.com>
1816
1817 PR sanitizer/58411
1818 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1819 Declare it.
1820 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1821
236ce1d1 18222013-09-14 Iain Sandoe <iain@codesourcery.com>
1823
1824 PR target/48094
1825 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1826 fobjc-gc, freplace-objc-classes): Accept for LTO.
1827
f9f68d35 18282013-09-13 Jacek Caban <jacek@codeweavers.com>
1829
1830 * c-target.def: New hook
1831
ba2f764e 18322013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1833
1834 PR c++/43452
1835 * c.opt (Wdelete-incomplete): Add.
1836
73437615 18372013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1838
1839 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1840 (vector_types_compatible_elements_p): New function.
1841 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1842 declaration.
1843 (vector_types_compatible_elements_p): Declare.
1844
95af4c75 18452013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1846
1847 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1848 a virtual member function.
1849 (pp_simple_type_specifier): Remove.
1850 (pp_c_type_specifier): Likewise.
1851 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1852 Rename from pp_c_type_specifier. Adjust.
1853 (c_pretty_printer::c_pretty_printer): Do not assign to
1854 simple_type_specifier.
1855
eaab24b9 18562013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1857
1858 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1859 member function.
1860 (c_pretty_printer::storage_class_specifier): Likewise.
1861 (c_pretty_printer::initializer): Likewise.
1862 (pp_declaration): Remove.
1863 (pp_declaration_specifiers): Likewise.
1864 (pp_abstract_declarator): Likewise.
1865 (pp_declarator): Likewise.
1866 (pp_type_id): Likewise.
1867 (pp_statement): Likewise.
1868 (pp_constant): Likewise.
1869 (pp_id_expression): Likewise.
1870 (pp_primary_expression): Likewise.
1871 (pp_unary_expression): Likewise.
1872 (pp_multiplicative_expression): Likewise.
1873 (pp_conditional_expression): Likewise.
1874 (pp_assignment_expression): Likewise.
1875 (pp_expression): Likewise.
1876 (pp_c_type_id): Likewise.
1877 (pp_c_storage_class_specifier): Likewise.
1878 * c-pretty-print.c (pp_c_type_cast): Tidy.
1879 (pp_c_pointer): Likewise.
1880 (pp_c_type_specifier): Likewise.
1881 (pp_c_parameter_type_list): Likewise.
1882 (pp_c_function_definition): Likewise.
1883 (pp_c_init_declarator): Likewise.
1884 (pp_c_initializer_list): Likewise.
1885 (pp_c_constructor_elts): Likewise.
1886 (c_pretty_printer::direct_abstract_declarator): Likewise.
1887 (c_pretty_printer::declaration_specifiers): Likewise.
1888 (c_pretty_printer::primary_expression): Likewise.
1889 (c_pretty_printer::postfix_expression): Likewise.
1890 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1891 (c_pretty_printer::storage_class_specifier): Rename from
1892 pp_c_storage_class_specifier.
1893 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1894 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1895 storage_class_specifier, initializer, offset_list, flags.
1896
9e46467d 18972013-08-30 Marek Polacek <polacek@redhat.com>
1898
1899 * c-ubsan.c: New file.
1900 * c-ubsan.h: New file.
1901
36a8d9b9 19022013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1903
1904 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1905 member function.
1906 (c_pretty_printer::declaration_specifiers): Likewise.
1907 (c_pretty_printer::declarator): Likewise.
1908 (c_pretty_printer::abstract_declarator): Likewise.
1909 (c_pretty_printer::direct_abstract_declarator): Likewise.
1910 (c_pretty_printer::direct_declarator): Likewise.
1911 (c_pretty_printer::function_specifier): Likewise.
1912 (pp_declaration): Adjust.
1913 (pp_declaration_specifiers): Likewise.
1914 (pp_abstract_declarator): Likewise.
1915 (pp_direct_declarator): Likewise.
1916 (pp_function_specifier): Likewise.
1917 (pp_direct_abstract_declarator): Remove as unused.
1918 (pp_c_declaration): Remove.
1919 (pp_c_declaration_specifiers): Likewise.
1920 (pp_c_declarator): Likewise.
1921 (pp_c_direct_declarator): Likewise.
1922 (pp_c_function_specifier): Likewise.
1923 (pp_c_direct_abstract_declarator): Likewise.
1924 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1925 from pp_c_abstract_declarator. Adjust.
1926 (c_pretty_printer::direct_abstract_declarator): Rename from
1927 pp_c_direct_abstract_declarator. Adjust.
1928 (c_pretty_printer::function_specifier): Rename from
1929 pp_c_function_specifier. Adjust.
1930 (c_pretty_printer::declaration_specifiers): Rename from
1931 pp_c_declaration_specifiers. Adjust.
1932 (c_pretty_printer::direct_declarator): Rename from
1933 pp_c_direct_declarator. Adjust.
1934 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1935 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1936 (c_pretty_printer::c_pretty_printer): Do not assign to
1937 declaration, declaration_specifiers, declarator,
1938 direct_declarator, direct_abstract_declarator, function_specifier.
1939
30635c2e 19402013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1941
1942 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1943 virtual member function.
1944 (c_pretty_printer::multiplicative_expression): Likewise.
1945 (c_pretty_printer::conditional_expression): Likewise.
1946 (c_pretty_printer::assignment_expression): Likewise.
1947 (c_pretty_printer::expression): Likewise.
1948 (pp_unary_expression): Adjust.
1949 (pp_multiplicative_expression): Likewise.
1950 (pp_assignment_expression): Likewise.
1951 (pp_conditional_expression): Likewise.
1952 (pp_expression): Likewise.
1953 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1954 from pp_c_unary_expression. Adjust.
1955 (c_pretty_printer::multiplicative_expression): Rename from
1956 pp_c_multiplicative_expression. Adjust.
1957 (c_pretty_printer::conditional_expression): Rename from
1958 pp_c_conditional_expression. Adjust.
1959 (c_pretty_printer::assignment_expression): Rename from
1960 pp_c_assignment_expression. Adjust.
1961 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1962 (c_pretty_printer::c_pretty_printer): Do not assign to
1963 unary_expression, multiplicative_expression,
1964 conditional_expression, expression.
1965
027d08ed 19662013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1967
1968 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1969 virtual member function.
1970 (pp_postfix_expression): Adjust.
1971 (pp_c_postfix_expression): Remove.
1972 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1973 from pp_c_postfix_expression. Adjust.
1974 (c_pretty_printer::c_pretty_printer): Do not assign to
1975 postfix_expression.
1976
f873303a 19772013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1978
1979 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1980 virtua member function.
1981 (pp_primary_expression): Adjust.
1982 (pp_c_primary_expression): Remove.
1983 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1984 from pp_c_primary_expression. Adjust.
1985 (pp_c_initializer_list): Use pp_primary_expression.
1986 (c_pretty_printer::c_pretty_printer): Do not assign to
1987 primary_expression.
1988
08e3e481 19892013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1990
1991 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1992 * c-pretty-print.c (M_): Remove.
1993 (c_pretty_printer::translate_string): Define.
1994 (pp_c_type_specifier): Use it.
1995 (pp_c_primary_expression): Likewise.
1996 (pp_c_expression): Likewise.
1997
1fc4a87f 19982013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1999
2000 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2001 virtual function.
2002 (pp_c_id_expression): Remove.
2003 (pp_id_expression): Adjust.
2004 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2005 pp_c_id_expression. Adjust.
2006 (pp_c_postfix_expression): Use pp_id_expression.
2007 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2008
a6cb161b 20092013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2010
2011 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2012 member function.
2013 (pp_constant): Adjust.
2014 (pp_c_constant): Remove.
2015 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2016 pp_c_constant. Adjust.
2017 (pp_c_constant)
2018 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2019 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2020
eed6bc21 20212013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2022
2023 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2024 (c_pretty_printer::c_pretty_printer): Declare.
2025 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2026 c_pretty_printer_init. Adjust.
2027 (print_c_tree): Do not call c_pretty_printer_init.
2028 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2029
df558d2e 20302013-08-09 Arnaud Charlet <charlet@adacore.com>
2031
2032 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2033
42f9a786 20342013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2035
2036 PR c++/58080
2037 * c-common.c (pointer_int_sum): Add bool parameter.
2038 * c-common.h (pointer_int_sum): Adjust declaration.
2039
f874ddad 20402013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2041
2042 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2043 c_pretty_printer variable.
2044
a94db6b0 20452013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2046
2047 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2048 (pp_base): Remove.
2049 (pp_c_base): Likewise. Adjust users.
2050 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2051 (pp_c_whitespace): Do not call pp_base.
2052 (pp_c_left_paren): Likewise.
2053 (pp_c_right_paren): Likewise.
2054 (pp_c_left_brace): Likewise.
2055 (pp_c_right_brace): Likewise.
2056 (pp_c_left_bracket): Likewise.
2057 (pp_c_right_bracket): Likewise.
2058 (pp_c_dot): Likewise.
2059 (pp_c_ampersand): Likewise.
2060 (pp_c_star): Likewise.
2061 (pp_c_arrow): Likewise.
2062 (pp_c_semicolon): Likewise.
2063 (pp_c_complement): Likewise.
2064 (pp_c_exclamation): Likewise.
2065 (pp_c_direct_declarator): Likewise.
2066 (pp_c_ws_string): Likewise.
2067 (pp_c_identifier): Likewise.
2068 (pp_c_statement): Likewise.
2069 (print_c_tree): Likewise.
2070
1898176c 20712013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2072
2073 PR c++/58072
2074 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2075 provide useful error strings.
2076
70d60d1d 20772013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2078
2079 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2080 printer functions instead of pp_string or operators and punctuators.
2081 (dump_generic_ada_node): Likewise.
2082 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2083 (pp_c_relational_expression): Likewise.
2084 (pp_c_logical_or_expression): Likewise.
2085
dda4f0ec 20862013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2087
2088 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2089 functions instead of pp_character.
2090 (pp_ada_tree_identifier): Likewise.
2091 (dump_ada_double_name): Likewise.
2092 (dump_ada_function_declaration): Likewise.
2093 (dump_ada_array_domains): Likewise.
2094 (dump_template_types): Likewise.
2095 (dump_generic_ada_node): Likewise.
2096 (print_ada_declaration): Likewise.
2097 (print_ada_struct_decl): Likewise.
2098 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2099
7aa04c8d 21002013-07-23 Tom Tromey <tromey@redhat.com>
2101
2102 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2103 * c-common.c (c_common_reswords): Add _Generic.
2104
a04e8d62 21052013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2106
2107 * c-common.c: Fix typos.
2108 * c-common.h: Likewise.
2109
a96c3cc1 21102013-07-13 Lubos Lunak <l.lunak@suse.cz>
2111
2112 PR c++/55203
2113 * c-common.c (c_common_attribute_table): Add warn_unused.
2114 (handle_warn_unused_attribute): New.
2115
da31536d 21162013-07-10 Jakub Jelinek <jakub@redhat.com>
2117
2118 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2119 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2120
839f2f70 21212013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2122
2123 PR c++/57869
2124 * c.opt: Add Wconditionally-supported.
2125
73f353d0 21262013-07-08 Graham Stott <graham.stott@btinternet.com>
2127
1f78217c 2128 * array-notation-common.c (length_mismatch_in_expr_p): Delete
73f353d0 2129 unused variables l_length and l_node.
2130
21ebaa24 21312013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
f5298614 2132
2133 PR c/57821
2134 * c-common.c (complete_array_type): Delay folding first index
2135 like other indices. When folding, check for index overflow.
2136
68ea4406 21372013-06-27 Marc Glisse <marc.glisse@inria.fr>
2138
2139 PR c++/57509
2140 * c-common.h (c_build_vec_perm_expr): New complain argument.
2141 * c-common.c (c_build_vec_perm_expr): Likewise.
2142 Use save_expr also in C++.
2143
60777f69 21442013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2145
2146 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2147 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2148 * c-opts.c (c_common_post_options): Likewise.
2149
839f2f70 21502013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
50acebe0 2151
2152 * array-notation-common.c (length_mismatch_in_expr): Changed the
2153 parameter type's from a dynamic array to a vec_tree. Also removed
2154 the size parameters.
2155 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2156 the change above.
2157
e9331eab 21582013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2159
2160 * c-common.h (struct cilkplus_an_parts): New structure.
2161 (struct cilkplus_an_loop_parts): Likewise.
2162 (cilkplus_extract_an_triplets): New prototype.
2163 (fix_sec_implicit_args): Likewise.
2164 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2165 (fix_sec_implicit_args): Likewise.
60777f69 2166
a9c99fc4 21672013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2168
2169 * array-notation-common.c (find_inv_trees): Removed an unwanted
2170 typecasting.
2171 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2172 enum rid to enum tree_code.
2173
f2526cce 21742013-06-11 Jan Hubicka <jh@suse.cz>
2175
2176 * c-common.c (handle_alias_ifunc_attribute): Do not set
2177 DECL_EXTERNAL for weakref variables.
2178 * c-pragma.c (handle_pragma_weak): Make sure aliases
2179 are not declared as external.
2180
09970d67 21812013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2182
2183 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2184 function from c/c-array-notation.c.
2185 (is_cilkplus_reduce_builtin): Likewise.
2186 (find_rank): Likewise.
2187 (extract_array_notation_exprs): Likewise.
2188 (replace_array_notations): Likewise.
2189 (find_inv_trees): Likewise.
2190 (replace_inv_trees): Likewise.
2191 (contains_array_notation_expr): Likewise.
2192 (find_correct_array_notation_type): Likewise.
2193 * c-common.h (struct inv_list): Moved this struct from the file
2194 c/c-array-notation.c and added a new field called additional tcodes.
2195 (length_mismatch_in_expr_p): New prototype.
2196 (is_cilkplus_reduce_builtin): Likewise.
2197 (find_rank): Likewise.
2198 (extract_array_notation_exprs): Likewise.
2199 (replace_array_notation): Likewise.
2200 (find_inv_trees): Likewise.
2201 (replace_inv_trees): Likewise.
2202 (find_correct_array_notation_type): Likewise.
839f2f70 2203
3c6d4197 22042013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2205
2206 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2207 function array_notation_init_builtins is called.
2208 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2209 * c-common.def (ARRAY_NOTATION_REF): New tree.
2210 * c-common.h (build_array_notation_expr): New function declaration.
2211 (build_array_notation_ref): Likewise.
2212 (extract_sec_implicit_index_arg): New extern declaration.
2213 (is_sec_implicit_index_fn): Likewise.
2214 (ARRAY_NOTATION_CHECK): New define.
2215 (ARRAY_NOTATION_ARRAY): Likewise.
2216 (ARRAY_NOTATION_START): Likewise.
2217 (ARRAY_NOTATION_LENGTH): Likewise.
2218 (ARRAY_NOTATION_STRIDE): Likewise.
2219 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2220 ARRAY_NOTATION_REF.
2221 (pp_c_expression): Likewise.
2222 * c.opt (flag_enable_cilkplus): New flag.
2223 * array-notation-common.c: New file.
2224
8e71dad2 22252013-05-14 Jakub Jelinek <jakub@redhat.com>
2226
2227 PR c++/57274
2228 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2229
432dd330 22302013-05-10 Marc Glisse <marc.glisse@inria.fr>
2231
2232 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2233 vectors.
2234
b156ec37 22352013-05-07 Han Shen <shenhan@google.com>
2236
2237 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2238
1a087624 22392013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2240
2241 * c-common.c (check_user_alignment): Emit error for negative values.
2242
1638c736 22432013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2244
2245 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2246
949dbf93 22472013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2248
2249 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2250 __GXX_EXPERIMENTAL_CXX1Y__.
2251
9205a6cc 22522013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2253 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2254
2255 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2256 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2257 to simply use OPT_Wpointer_arith.
2258 (c_sizeof_or_alignof_type): Likewise.
2259
05d0bce1 22602013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2261
2262 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2263
41609f8b 22642013-04-12 Jakub Jelinek <jakub@redhat.com>
2265
2266 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2267 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2268 specifiers.
2269
c671dc4f 22702013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2271
2272 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2273
ba125576 22742013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2275
2276 * c-common.c (pointer_int_sum): Remove dead code.
2277
9d3fa937 22782013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2279
2280 PR middle-end/56524
2281 * c-common.c (handle_optimize_attribute): Don't call
2282 save_optabs_if_changed.
2283
5ceebb21 22842013-03-05 Jakub Jelinek <jakub@redhat.com>
2285
2286 PR middle-end/56461
2287 * c-pch.c (pch_init): Free target_validity at the end.
2288
18eeed2b 22892013-03-04 Jakub Jelinek <jakub@redhat.com>
2290
2291 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2292
a9196da9 22932013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2294 Jakub Jelinek <jakub@redhat.com>
2295
2296 PR sanitizer/56454
2297 * c-common.c (handle_no_sanitize_address_attribute): New function.
2298 (c_common_attribute_table): Add no_sanitize_address attribute.
2299 (handle_no_address_safety_analysis_attribute): Add
2300 no_sanitize_address attribute, not no_address_safety_analysis
2301 attribute.
2302
15c27dda 23032013-02-18 Aldy Hernandez <aldyh@redhat.com>
08c7d04b 2304
2305 PR target/52555
2306 * c-common.c (handle_optimize_attribute): Call
2307 save_optabs_if_changed.
2308
19426fe1 23092013-02-18 Jakub Jelinek <jakub@redhat.com>
2310 Steven Bosscher <steven@gcc.gnu.org>
2311
2312 PR pch/54117
2313 * c-opts.c (c_common_post_options): If debug info is enabled
2314 and non-dwarf*, refuse to load PCH files and when writing PCH
2315 file warn.
2316
df936998 23172013-02-05 Jakub Jelinek <jakub@redhat.com>
2318
2319 PR middle-end/56167
2320 * c-common.c (handle_error_attribute): Fix condition.
2321
ae0c3984 23222013-01-30 Jakub Jelinek <jakub@redhat.com>
2323
2324 PR c++/55742
2325 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2326
1c4973d7 23272013-01-18 Jason Merrill <jason@redhat.com>
2328
2329 PR target/54908
2330 * c.opt (-fextern-tls-init): New.
2331 * c-opts.c (c_common_post_options): Handle it.
2332
7c834436 23332013-01-09 Jakub Jelinek <jakub@redhat.com>
2334
2335 PR c/48418
2336 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2337 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2338 and is either negative or bigger or equal to type precision
2339 of the first operand.
2340
5abaa10a 23412012-12-03 Marek Polacek <polacek@redhat.com>
2342
2343 PR c/55570
2344 * c-common.c (check_user_alignment): Swap order of tests,
2345 check TREE_CODE first.
2346
324ca377 23472012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2348
2349 PR c++/52654
2350 * c-common.h (overflow_type): New enum.
2351 (build_userdef_literal): Add overflow_type argument.
2352 (tree_userdef_literal): Add overflow_type.
2353 (USERDEF_LITERAL_OVERFLOW): New access macro.
2354 * c-common.c (build_userdef_literal): Add overflow_type
2355 argument.
2356 * c-lex.c (c_lex_with_flags): Add overflow_type to
2357 build_userdef_literal calls.
2358 (interpret_integer, interpret_float): Add overflow_type argument.
2359
b4c4a429 23602012-11-28 Richard Biener <rguenther@suse.de>
2361
2362 PR c/35634
2363 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2364 here and use a type with proper overflow behavior for types that would
2365 need to be promoted for the arithmetic.
2366
d413ffdd 23672012-11-23 Jakub Jelinek <jakub@redhat.com>
2368
2369 PR sanitizer/55435
2370 * c-common.c (handle_no_address_safety_analysis_attribute): New
2371 function.
2372 (c_common_attribute_table): Add no_address_safety_analysis.
2373
52bc861d 23742012-11-16 Simon Baldwin <simonb@google.com>
2375
2376 * c.opt: Add f[no-]canonical-system-headers.
2377 * c-opts.c (c_common_handle_option): Handle
2378 OPT_fcanonical_system_headers.
2379
2dd00636 23802012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2381
2382 PR c++/54413
2383 * c-opts.c (c_common_handle_option): Set new flags.
2384 * c.opt: Describe new flags.
2385
d4701f6c 23862012-11-09 Jason Merrill <jason@redhat.com>
2387
2388 * c.opt (Wabi-tag): New.
2389
72d65da9 23902012-11-09 Andi Kleen <ak@linux.intel.com>
2391
2392 PR 55139
2393 * c-common.c (get_atomic_generic_size): Mask with
2394 MEMMODEL_MASK
2395
77a357e3 23962012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2397
2398 PR c/53063
2399 * c.opt (Wformat): Make it Alias Wformat=1.
2400 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2401 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2402 LangEnabledBy.
2403 (Wformat=): RejectNegative. Use LangEnabledBy.
2404 (Wnonnull): Use LangEnabledBy.
2405 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2406 * c-format.c (set_Wformat): Delete.
2407 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2408 (maybe_read_dollar_number): Likewise.
2409 (avoid_dollar_number): Likewise.
2410 (finish_dollar_format_checking): Likewise.
2411 (check_format_info): Likewise.
2412 (check_format_info_main): Likewise.
2413 (check_format_types): Likewise.
2414 (format_type_warning): Likewise.
2415 * c-common.c (int): Likewise.
2416 (check_function_sentinel): Likewise.
2417 * c-common.h (warn_format,set_Wformat): Do not declare here.
2418
45efa6b9 24192012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2420
2421 PR c/53063
2422 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2423 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2424 Use LangEnabledBy.
2425 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2426 common.opt.
2427 (Wvariadic-macros): Init(1).
2428 * c-opts.c (c_common_handle_option): Do not handle them
2429 explicitly.
2430 (c_common_post_options): Likewise.
2431 (sanitize_cpp_opts): warn_unused_macros is now
2432 cpp_warn_unused_macros.
2433 (push_command_line_include): Likewise.
2434 * c-common.c (warn_unknown_pragmas): Do not define.
2435 * c-common.h (warn_unknown_pragmas): Do not declare.
2436
0e4e775a 24372012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2438
2439 PR c/51294
2440 * c-common.c (conversion_warning): Handle conditional expressions.
2441
8b447d3f 24422012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2443
2444 PR c++/54930
2445 * c.opt (Wreturn_local_addr): Define new option.
2446
f4a61754 24472012-10-25 Jason Merrill <jason@redhat.com>
2448
ecb10e6a 2449 * c.opt (Wvirtual-move-assign): New.
2450
f4a61754 2451 * c.opt (Winherited-variadic-ctor): New.
2452
7b463b19 24532012-10-25 Marc Glisse <marc.glisse@inria.fr>
2454
2455 PR c++/54427
2456 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2457
6adc88f8 24582012-10-23 Joseph Myers <joseph@codesourcery.com>
2459
2460 * c-common.h (pch_cpp_save_state): Declare.
2461 * c-target.def (c_preinclude): New hook.
2462 * c-opts.c (done_preinclude): New.
2463 (push_command_line_include): Handle default preincluded header.
2464 (cb_file_change): Call pch_cpp_save_state when calling
2465 push_command_line_include.
2466 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2467 (pch_cpp_save_state): New.
2468 (pch_init): Call pch_cpp_save_state conditionally, instead of
2469 calling cpp_save_state.
2470
fa816b0b 24712012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2472
2473 PR c/53063
2474 PR c/40989
2475 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2476 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2477 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2478 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2479 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2480 * c-opts.c (c_common_handle_option): Remove explicit handling from
2481 here.
2482 (c_common_post_options): Likewise.
2483
d214ccee 24842012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2485
2486 * c-ada-spec.c (LOCATION_COL): Delete.
2487 (compare_location): New function.
2488 (compare_node): Use it.
2489 (compare_comment): Likewise.
2490
77b27208 24912012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2492
2493 PR c/53063
2494 PR c/40989
2495 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2496 * c-opts.c (c_common_handle_option): Do not set them here. Add
2497 comment.
2498 (c_common_post_options): Likewise.
2499
cc02ca4d 25002012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2501
2502 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2503 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2504 Remove POINTER_TYPE handling, add large unsigned handling and use
2505 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2506
57f872a2 25072012-10-12 Jakub Jelinek <jakub@redhat.com>
2508
2509 PR c/54381
2510 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2511 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2512 locs and array of 3 trees instead of just single loc and single
2513 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2514 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2515 For *cmp* builtins that take two sources strings report warnings
2516 about first and second source, not about destination and source.
2517
7354ad2e 25182012-10-12 Marc Glisse <marc.glisse@inria.fr>
2519
2520 PR c++/53055
2521 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2522
1ac7f120 25232012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2524
2525 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2526 declaring something coming from another file.
2527
1e0cc9e3 25282012-10-10 Arnaud Charlet <charlet@adacore.com>
2529
1ac7f120 2530 PR ada/54845
1e0cc9e3 2531 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2532
b0e7825e 25332012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2534
2535 PR c++/54194
2536 * c-common.c (warn_about_parentheses): Add location_t parameter;
2537 use EXPR_LOC_OR_LOC.
2538 * c-common.h: Update declaration.
2539
41ed701a 25402012-10-09 Marc Glisse <marc.glisse@inria.fr>
2541
2542 PR c++/54427
2543 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2544 more operations. Make error messages optional.
2545 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2546 (scalar_to_vector): Declare.
2547
3740094c 25482012-10-08 Jason Merrill <jason@redhat.com>
2549
2550 * c-common.c (c_common_reswords): Add thread_local.
2551
ffcdbf9c 25522012-10-08 Dodji Seketeli <dodji@redhat.com>
2553
2554 PR c++/53528 C++11 attribute support
2555 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2556 new functions.
2557 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2558 static function.
2559 (handle_aligned_attribute): In choose strictest alignment
2560 among many. Use new check_cxx_fundamental_alignment_constraints.
2561 (handle_transparent_union_attribute): In c++11 attribute syntax,
2562 don't look through typedefs.
2563
ef34afc1 25642012-10-04 Arnaud Charlet <charlet@adacore.com>
2565
2566 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2567 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2568 out of dumpfile.h.
2569
f1ff4562 25702012-09-25 Dehao Chen <dehao@google.com>
2571
2572 PR middle-end/54645
ef34afc1 2573 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
f1ff4562 2574 map when read in the pch.
2575
735538a1 25762012-09-18 Arnaud Charlet <charlet@adacore.com>
2577
2578 * c-ada-spec.c: Style fixes.
2579
9120cdc8 25802012-09-18 Thomas Quinot <quinot@adacore.com>
2581
2582 * c.opt (-fada-spec-parent): Define new command line switch.
2583 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2584 is specified, generate binding spec as a child of the specified unit.
2585
8eba82c2 25862012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2587 Manuel López-Ibáñez <manu@gcc.gnu.org>
2588
2589 PR c++/53210
2590 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2591
38682990 25922012-08-23 Arnaud Charlet <charlet@adacore.com>
2593
2594 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2595 for pointers, and add missing Convention C pragma.
2596 (print_ada_struct_decl): Add missing aliased keyword.
2597 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2598
f003f5dc 25992012-08-17 Jakub Jelinek <jakub@redhat.com>
2600
2601 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2602 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2603 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2604 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2605 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2606
ec11736b 26072012-08-10 Richard Guenther <rguenther@suse.de>
2608
2609 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2610
5f7f600e 26112012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2612
2613 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2614 instead of separate pp_newline and pp_flush.
2615 (print_c_tree): Likewise.
2616
758a38ab 26172012-07-26 Richard Henderson <rth@redhat.com>
2618
2619 * c-common.c (handle_hot_attribute): Allow labels.
2620 (handle_cold_attribute): Likewise.
2621
9ca77b08 26222012-07-20 Jakub Jelinek <jakub@redhat.com>
2623
2624 PR c++/28656
2625 * c-common.c (check_function_nonnull): Handle multiple nonnull
2626 attributes properly.
2627
b9ed1410 26282012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2629
2630 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2631 * c-ada-spec.c: Likewise.
2632 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2633
c2a65b90 26342012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2635
2636 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2637 Remove code conditional on it.
2638
88c5a1d1 26392012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2640
2641 * c-gimplify.c: Do not include basic-block.h.
2642 * c-common.c: Do not include linfuncs.h.
2643
4a020a8c 26442012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2645
2646 * c-common.h: Include tree.h.
2647
c28ddc97 26482012-07-02 Jason Merrill <jason@redhat.com>
2649
2650 PR c++/53524
2651 * c-common.c (get_priority): Call default_conversion.
2652
405ed67f 26532012-07-01 Uros Bizjak <ubizjak@gmail.com>
2654
2655 * c-pch.c (c_common_write_pch): Remove unused variables.
2656
e53d55e7 26572012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2658
2659 * cppspec.c: Moved from gcc/ to here.
2660
3d9c25ec 26612012-06-27 Kai Tietz <ktietz@redhat.com>
2662
2663 PR preprocessor/37215
2664 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2665
3169c57a 26662012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2667
2668 * c-common.h (c_common_print_pch_checksum): Remove.
2669 * c-pch.c: Do not include output.h.
2670 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2671 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2672 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2673 (struct c_pch_header): Remove.
2674 (get_ident): Update gpch version.
2675 (pch_init): Do not print executable_checksum to asm_out_file.
2676 Do not fail if there is no asm_out_file to read back from. Set
2677 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2678 (c_common_write_pch): Verify that nothing was written to asm_out_file
2679 since pch_init was called. Do not write a c_pch_header, and do not
2680 copy from asm_out_file to the PCH.
2681 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2682 the content of asm_out_file from the PCH.
2683 (c_common_print_pch_checksum): Remove.
2684 * c-opts.c (c_common_init): Print out executable_checksum directly.
2685
ff6624bc 26862012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2687
2688 * c-target.def (objc_declare_unresolved_class_reference,
2689 objc_declare_class_definition): Add new hooks.
2690
367b1459 26912012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2692
2693 * c-lex.c: Do not include output.h.
2694 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2695 Remove uses of ASM_OUTPUT_IDENT.
2696
bf0cb017 26972012-06-15 Marc Glisse <marc.glisse@inria.fr>
2698
2699 PR c++/51033
2700 * c-common.h (c_build_vec_perm_expr): Move decl here.
2701 * c-common.c (c_build_vec_perm_expr): Move definition
2702 here.
2703
b37a3600 27042012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2705
2706 * c.opt (fconserve-space): Turn into a no-op.
2707
19931eea 27082012-06-04 Sterling Augustine <saugustine@google.com>
5f9e7dd5 2709
2710 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2711 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2712 both the start and end of the function.
2713
dff12c10 27142012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2715
2716 * c-common.c: Do not include output.h.
2717 * c-pragma.c: Likewise.
2718
5f9e7dd5 27192012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2720
2721 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2722 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2723 (lang_decl_name): Handle namespace decls.
2724
b5369b7d 27252012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2726
2727 * c-ada-spec.c: Do not include output.h.
2728 * c-semantics.c: Likewise.
2729
8032877c 27302012-05-29 Joseph Myers <joseph@codesourcery.com>
2731
2732 * c-common.c: Fix typo.
2733
7843e4bc 27342012-05-29 Michael Matz <matz@suse.de>
2735
2736 * c-common.h (c_expand_decl): Remove prototype.
2737
8cf857d4 27382012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2739
2740 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2741 * c-opts.c (c_common_handle_option): Remove code handling
2742 warn_missing_braces.
2743
8b64dc3c 27442012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2745
2746 PR c++/25137
2747 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2748 -Wmissing_braces.
2749
43cbde16 27502012-05-22 Dodji Seketeli <dodji@redhat.com>
2751
2752 PR c++/53322
2753 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2754
db490cb6 27552012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2756
2757 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2758 * c-opts.c (c_common_handle_option): Do not handle explicitly
2759 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2760
a60f3e81 27612012-05-16 Dodji Seketeli <dodji@redhat.com>
2762
2763 PR preprocessor/7263
2764 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2765 to cpp_classify_number. For diagnostics, use the precise location
2766 instead of the global input_location.
2767
82e6ef7c 27682012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2769
cd4797ff 2770 PR c++/11856
82e6ef7c 2771 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2772
258a168d 27732012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2774
82e6ef7c 2775 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
258a168d 2776
d3b7ee7c 27772012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2778
2779 PR 53063
2780 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2781 Wreorder): Use LangEnabledBy.
2782 * c-opts.c (c_common_handle_option): Do not enable them
2783 explicitly. Call lang-specific generated functions.
2784 (c_common_post_options): Do not set them here.
2785
70059cea 27862012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2787
2788 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2789 Wmissing-field-initializers,Wmissing-parameter-type,
2790 Wold-style-declaration,Woverride-init): Use EnabledBy.
2791 * c-opts.c (c_common_post_options): Do not set here explicitly.
2792
fbb6fbd8 27932012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2794
2795 PR 53063
2796 * c-opts.c (c_common_handle_option): Use handle_generated_option
2797 to enable sub-options.
2798
61f69bc9 27992012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2800
2801 PR c++/53158
2802 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2803
5a1fe2db 28042012-05-10 Richard Guenther <rguenther@suse.de>
2805
2806 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2807 adjust commentary about TYPE_IS_SIZETYPE types.
2808
d42e7c5a 28092012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2810
2811 PR c++/53261
2812 * c-common.c (warn_logical_operator): Check that argument of
2813 integer_zerop is not NULL.
2814
686369e8 28152012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2816
2817 PR c/43772
2818 * c-common.c (warn_logical_operator): Do not warn if either side
2819 is already true or false.
2820
03fe1dc2 28212012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2822
2823 PR c/51712
2824 * c-common.c (expr_original_type): New.
2825 (shorten_compare): Do not warn for enumeration types.
2826
bba5a206 28272012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2828
2829 * c.opt (fpermissive): Add Var(flag_permissive).
2830
7059d45d 28312012-04-30 Marc Glisse <marc.glisse@inria.fr>
2832
2833 PR c++/51033
2834 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2835 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2836
7edb1062 28372012-04-30 Dodji Seketeli <dodji@redhat.com>
2838
2839 Add -Wvarargs option
2840 * c.opt (Wvarargs): Define new option.
2841
068bea1e 28422012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2843
2844 * c-common.c (check_function_arguments): Replace
2845 Wmissing-format-attribute with Wsuggest-attribute=format.
2846
b86527d8 28472012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2848
2849 * c.opt (Wsuggest-attribute=format): New. Alias of
2850 Wmissing-format-attribute.
2851 * c-format.c (decode_format_type): Replace
2852 Wmissing-format-attribute with Wsuggest-attribute=format.
2853 (check_function_format): Likewise.
2854
19931eea 28552012-04-27 Ollie Wild <aaw@google.com>
76d340ac 2856
2857 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2858 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2859 * c.opt: Add Wliteral-suffix.
2860
29438999 28612012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2862
2863 PR c/44774
2864 * c.opt (Wpedantic): New.
2865 (pedantic): Alias Wpedantic.
2866 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2867 (c_common_post_options): Likewise.
2868 (sanitize_cpp_opts): Likewise.
2869 * c-lex.c (interpret_float): Likewise.
2870 * c-format.c (check_format_types): Likewise.
2871 * c-common.c (pointer_int_sum): Likewise.
2872 (c_sizeof_or_alignof_type): Likewise.
2873 (c_add_case_label): Likewise.
2874 (c_do_switch_warnings): Likewise.
2875 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2876
4f9d6b8b 28772012-04-15 Jason Merrill <jason@redhat.com>
2878
2879 PR c++/52818
2880 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2881 (C_STD_NAME): Distinguish between C++98 and C++11.
2882
74bdbe96 28832012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2884
2885 PR target/52624
2886 * c-common.h (uint16_type_node): Rename into...
2887 (c_uint16_type_node): ...this.
2888 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2889 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2890
3d177e8c 28912012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2892
2893 * c-common.c (warn_if_unused_value): Move definition to here.
2894 * c-common.h (warn_if_unused_value): Move declaration to here.
2895
6a9a958f 28962012-03-23 William Bader <williambader@hotmail.com>
2897
2898 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2899
543efdbe 29002012-03-20 Jason Merrill <jason@redhat.com>
2901
2902 * c-common.h (enum cxx_dialect): Add cxx1y.
2903 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2904 test.
2905 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2906 * c-opts.c (c_common_post_options): Likewise.
2907 (set_std_cxx1y): New.
2908 (c_common_handle_option): Call it.
2909 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2910
62206d34 29112012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2912
2913 PR c++/14710
2914 * c.opt ([Wuseless-cast]): Add.
2915
fadf62f4 29162012-03-16 Richard Guenther <rguenther@suse.de>
2917
2918 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2919
249faa35 29202012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2921
2922 PR c++/44783
2923 * c.opt (ftemplate-backtrace-limit) Add.
2924
126b6848 29252012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2926
2927 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2928 handling.
2929 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2930 (init_pragma): Don't register extern_prefix.
2931
a51edb4c 29322012-03-12 Richard Guenther <rguenther@suse.de>
2933
2934 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2935 (builtin_type_for_size): Likewise.
2936
0f6a7cb7 29372012-02-13 Jakub Jelinek <jakub@redhat.com>
2938
2939 PR c++/52215
2940 * c-common.c (sync_resolve_params): Don't decide whether to convert
2941 or not based on TYPE_SIZE comparison, convert whenever arg_type
2942 is unsigned INTEGER_TYPE.
2943
0779e32c 29442012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2945
2946 PR c/52118
2947 * c.opt ([Wunused-local-typedefs]): Fix description.
2948
baec58e1 29492012-01-24 Mike Stump <mikestump@comcast.net>
2950
2951 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2952 exactly.
2953
c779d8cc 29542012-01-18 Richard Guenther <rguenther@suse.de>
2955
2956 * c-opts.c (c_common_post_options): Reset LTO flags if
2957 we are about to generate a PCH.
2958
ee917d24 29592012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2960
2961 PR c++/51777
2962 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2963 use pp_unsigned_wide_integer.
2964
90e2341f 29652012-01-10 Richard Guenther <rguenther@suse.de>
2966
2967 PR middle-end/51806
2968 * c-opts.c (c_common_handle_option): Move -Werror handling
2969 to language independent code.
2970
9ea022ce 29712012-01-05 Richard Guenther <rguenther@suse.de>
2972
2973 PR middle-end/51764
2974 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2975 from common.opt.
2976
3df19e1b 29772011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2978
2979 PR c++/51316
2980 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2981 of array types with an unknown bound.
2982
32074525 29832011-12-20 Joseph Myers <joseph@codesourcery.com>
2984
2985 * c-common.c (flag_isoc99): Update comment to refer to C11.
2986 (flag_isoc1x): Change to flag_isoc11.
2987 * c-common.h (flag_isoc99): Update comment to refer to C11.
2988 (flag_isoc1x): Change to flag_isoc11.
2989 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2990 C11.
2991 * c-opts.c (set_std_c1x): Change to set_std_c11.
2992 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2993 Call set_std_c11.
2994 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2995 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2996 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2997 standard.
2998 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2999 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3000 (std=gnu1x): Make alias of std=gnu11.
3001
fca86134 30022011-12-19 Jason Merrill <jason@redhat.com>
3003
3004 PR c++/51228
3005 * c-common.c (handle_transparent_union_attribute): Check the first
3006 field if the type is complete.
3007
aa4313eb 30082011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3009
3010 PR libstdc++/51365
3011 * c-common.c (RID_IS_FINAL): Add.
3012 * c-common.h (RID_IS_FINAL): Add.
3013
3f3d5ad4 30142011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3015
3016 * c.opt (fgnu-runtime): Provide full description.
3017 (fnext-runtime): Likewise.
3018 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3019
c4606d19 30202011-11-28 Andrew MacLeod <amacleod@redhat.com>
3021
3022 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3023 predefines in one place. Add LOCK_FREE predefines.
3024 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3025 new func.
3026
1d581089 30272011-11-24 Andrew MacLeod <amacleod@redhat.com>
3028
3029 PR c/51256
19931eea 3030 * c-common.c (get_atomic_generic_size): Check for various error
1d581089 3031 conditions
19931eea 3032 (resolve_overloaded_atomic_exchange,
3033 resolve_overloaded_atomic_compare_exchange,
1d581089 3034 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3035 error_mark_node for error conditions.
19931eea 3036
6aa221fa 30372011-11-08 Richard Guenther <rguenther@suse.de>
3038
3039 PR middle-end/51010
3040 c-family/
3041
4c0315d0 30422011-11-07 Richard Henderson <rth@redhat.com>
3043 Aldy Hernandez <aldyh@redhat.com>
3044 Torvald Riegel <triegel@redhat.com>
3045
3046 Merged from transactional-memory.
3047
3048 * c-common.c (handle_tm_wrap_attribute,
3049 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3050 (struct c_common_reswords): Added __transaction* keywords.
3051 (struct c_common_attribute_table): Added transaction* and tm_regparm
3052 attributes.
3053 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3054 masks.
3055 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3056 find_tm_attribute): Declare.
3057
920f5a70 30582011-11-07 Jason Merrill <jason@redhat.com>
3059
3060 PR c++/35688
3061 * c-common.c, c-common.h: Revert yesterday's changes.
3062
b4f861b4 30632011-11-06 Jason Merrill <jason@redhat.com>
3064
3065 PR c++/35688
3066 * c-common.c (decl_has_visibility_attr): Split out from...
3067 (c_determine_visibility): ...here.
3068 * c-common.h: Declare it.
3069
83e25171 30702011-11-06 Joseph Myers <joseph@codesourcery.com>
3071
3072 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3073 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3074 type.
3075 (check_user_alignment): New. Split out of
3076 handle_aligned_attribute. Disallow integer constants with
3077 noninteger types. Conditionally allow zero.
3078 (handle_aligned_attribute): Use check_user_alignment.
3079 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3080
1cd6e20d 30812011-11-06 Andrew MacLeod <amacleod@redhat.com>
3082 Richard Henderson <rth@redhat.com>
3083
3084 Merged from cxx-mem-model.
3085
3086 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
19931eea 3087 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1cd6e20d 3088 parameters that are the same type size.
3089 (get_atomic_generic_size): New. Find size of generic
3090 atomic function parameters and do typechecking.
3091 (add_atomic_size_parameter): New. Insert size into parameter list.
3092 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3093 either __atomic_exchange_n or external library call.
19931eea 3094 (resolve_overloaded_atomic_compare_exchange): Restructure
1cd6e20d 3095 __atomic_compare_exchange to either _n variant or external library call.
19931eea 3096 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1cd6e20d 3097 __atomic_load_n or an external library call.
3098 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3099 __atomic_store_n or an external library call.
3100 (resolve_overloaded_builtin): Handle new __atomic builtins.
3101
7549df0d 31022011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3103
3104 PR c++/50608
3105 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3106 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3107 <INDIRECT_REF>: Return the argument.
3108 <ARRAY_REF>: Remove special code for negative offset.
3109 Call fold_build_pointer_plus instead of size_binop.
3110 (fold_offsetof): Remove STOP_REF argument and adjust.
3111 * c-common.h (fold_offsetof_1): Declare.
3112 (fold_offsetof): Remove STOP_REF argument.
3113
7e783eb3 31142011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3115
3116 PR c++/50810
3117 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3118 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3119 Wnarrowing for C++0x and C++98.
3120 * c.opt ([Wnarrowing]): Update.
3121
8fe701f5 31222011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3123
3124 PR c++/44277
3125 * c.opt: Add Wzero-as-null-pointer-constant.
3126
0d84dc2d 31272011-10-31 Jason Merrill <jason@redhat.com>
3128
67031f52 3129 * c.opt (-fdeduce-init-list): Off by default.
3130
0d84dc2d 3131 PR c++/50920
3132 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3133 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3134 and -Wc++11-compat.
3135 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3136
66f24c41 31372011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3138
3139 PR c++/30066
3140 * c.opt (fvisibility-inlines-hidden): Description change.
3141
244db24d 31422011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3143
3144 Implement C++11 user-defined literals.
3145 * c-common.c (build_userdef_literal): New.
3146 * c-common.def: New tree code.
3147 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3148 * c-lex.c (interpret_float): Add suffix parm.
3149 (c_lex_with_flags): Build literal tokens.
3150
235be70f 31512011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3152
3153 PR c++/50841
3154 Revert:
3155 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3156
3157 PR c++/50810
3158 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3159 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3160 Wnarrowing for C++0x and C++98.
3161 * c.opt ([Wnarrowing]): Update.
3162
4fe0fb1c 31632011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3164
3165 PR c++/50810
3166 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3167 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3168 Wnarrowing for C++0x and C++98.
3169 * c.opt ([Wnarrowing]): Update.
3170
5f7504f9 31712011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3172
3173 PR c++/45385
3174 * c-common.c (conversion_warning): Remove code looking for
3175 artificial operands.
3176
2a688977 31772011-10-18 Dodji Seketeli <dodji@redhat.com>
3178
3179 PR bootstrap/50760
3180 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
19931eea 3181 !NO_IMPLICIT_EXTERN_C.
2a688977 3182
326e3391 31832011-10-17 Michael Spertus <mike_spertus@symantec.com>
3184
3185 * c-common.c (c_common_reswords): Add __bases,
3186 __direct_bases.
3187 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3188
31892011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3190
3191 PR c++/50757
3192 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3193
62db153a 31942011-10-15 Tom Tromey <tromey@redhat.com>
3195 Dodji Seketeli <dodji@redhat.com>
3196
3197 * c.opt (fdebug-cpp): New option.
3198 * c-opts.c (c_common_handle_option): Handle the option.
3199 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3200 output stream in parameter. Factorized from ...
3201 (maybe_print_line): ... this. Dump location debug information when
3202 -fdebug-cpp is in effect.
3203 (print_line_1): New static function. Takes an output stream in
3204 parameter. Factorized from ...
3205 (print_line): ... here. Dump location information when -fdebug-cpp
3206 is in effect.
3207 (scan_translation_unit): Dump location information when
3208 -fdebug-cpp is in effect.
3209
ce70f433 32102011-10-15 Tom Tromey <tromey@redhat.com>
3211 Dodji Seketeli <dodji@redhat.com>
3212
3213 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3214 without argument.
3215 * c-opts.c (c_common_handle_option)<case
3216 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3217 cases. Handle -ftrack-macro-expansion with and without argument.
3218
97bfb9ef 32192011-10-15 Tom Tromey <tromey@redhat.com>
3220 Dodji Seketeli <dodji@redhat.com>
3221
3222 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3223 (print_line, cb_define, do_line_change): Adjust to avoid touching
3224 the internals of struct line_map. Use the public API instead.
3225 * c-pch.c (c_common_read_pch): Likewise.
3226 * c-lex.c (fe_file_change): Likewise.
3227
326e3391 32282011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3229
3230 PR c++/17212
3231 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3232
32332011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3234
3235 PR c++/33067
3236 * c-pretty-print.c (pp_c_floating_constant): Output
3237 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3238
b9a16870 32392011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3240
3241 * c-common.c (def_builtin_1): Delete old interface with two
3242 parallel arrays to hold standard builtin declarations, and replace
3243 it with a function based interface that can support creating
3244 builtins on the fly in the future. Change all uses, and poison
3245 the old names. Make sure 0 is not a legitimate builtin index.
3246 * c-omp.c (c_finish_omp_barrier): Ditto.
3247 (c_finish_omp_taskwait): Ditto.
3248 (c_finish_omp_flush): Ditto.
3249
c7964868 32502011-10-11 Tristan Gingold <gingold@adacore.com>
3251
3252 * c.opt: (fallow-parameterless-variadic-functions): New.
3253
a4e3ffad 32542011-09-08 Dodji Seketeli <dodji@redhat.com>
3255
3256 PR c++/33255 - Support -Wunused-local-typedefs warning
3257 * c-common.h (struct c_language_function::local_typedefs): New
3258 field.
19931eea 3259 (record_locally_defined_typedef, maybe_record_typedef_use)
3260 (maybe_warn_unused_local_typedefs): Declare new functions.
a4e3ffad 3261 * c-common.c (record_locally_defined_typedef)
19931eea 3262 (maybe_record_typedef_use)
3263 (maybe_warn_unused_local_typedefs): Define new functions.
a4e3ffad 3264 * c.opt: Declare new -Wunused-local-typedefs flag.
3265
737a23cc 32662011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3267
3268 PR middle-end/50266
3269 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3270 computations.
3271
7542c3b4 32722011-09-05 Richard Guenther <rguenther@suse.de>
3273
3274 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3275 of integer_minus_one_node for empty array upper bounds.
3276
1dc92c59 32772011-08-28 Dodji Seketeli <dodji@redhat.com>
3278
3279 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3280 it's the first time it's being called on this main TU.
3281
2bdf2b6e 32822011-08-24 Richard Guenther <rguenther@suse.de>
3283
3284 PR c/49396
3285 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3286
32872011-08-22 Gabriel Charette <gchare@google.com>
6ea2c7a3 3288
3289 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3290 defined in cpp_init_builtins and c_cpp_builtins.
3291
bff4ad11 32922011-08-19 Joseph Myers <joseph@codesourcery.com>
3293
3294 * c-common.c (c_common_reswords): Add __builtin_complex.
3295 * c-common.h (RID_BUILTIN_COMPLEX): New.
3296
985c6e3a 32972011-08-18 Joseph Myers <joseph@codesourcery.com>
3298
3299 * c-common.c (c_common_reswords): Add _Noreturn.
3300 (keyword_is_function_specifier): Handle RID_NORETURN.
3301 * c-common.h (RID_NORETURN): New.
3302
7dfa155b 33032011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3304
3305 * c-common.c (unsafe_conversion_p): New function. Check if it is
3306 unsafe to convert an expression to the type.
3307 (conversion_warning): Adjust, use unsafe_conversion_p.
3308 * c-common.h (unsafe_conversion_p): New function declaration.
3309
2169f33b 33102011-08-02 Jakub Jelinek <jakub@redhat.com>
3311
3312 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3313 (c_finish_omp_taskyield): New prototype.
3314 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3315 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3316 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3317 or RHS1 have side-effects, evaluate those too in the right spot,
3318 if it is a decl and LHS is also a decl, error out if they
3319 aren't the same.
3320 (c_finish_omp_taskyield): New function.
3321 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3322 * c-pragma.c (omp_pragmas): Add taskyield.
3323 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3324 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3325 PRAGMA_OMP_CLAUSE_MERGEABLE.
3326
ab77850e 33272011-07-25 Dodji Seketeli <dodji@redhat.com>
3328
3329 * c-common.h (set_underlying_type): Remove parm name from
3330 declaration.
3331
6ee97920 33322011-07-25 Romain Geissler <romain.geissler@gmail.com>
3333
3334 * c-pretty-print.h: Search c-common.h in c-family.
19931eea 3335
dc251364 33362011-07-22 Jason Merrill <jason@redhat.com>
3337
1a2a35f0 3338 PR c++/49793
3339 * c.opt (Wnarrowing): New.
3340
27282252 3341 PR c++/30112
3342 * c-common.h: Declare c_linkage_bindings.
3343 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3344
dc251364 3345 PR c++/49813
3346 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3347 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3348 as flag_isoc99 for 'restrict'.
3349 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3350
fc501191 33512011-07-21 Ian Lance Taylor <iant@google.com>
3352
3353 PR middle-end/49705
3354 * c-common.c (c_disable_warnings): New static function.
3355 (c_enable_warnings): New static function.
3356 (c_fully_fold_internal): Change local unused_p to bool. Call
3357 c_disable_warnings and c_enable_warnings rather than change
3358 c_inhibit_evaluation_warnings.
3359
07b8f133 33602011-07-20 Jason Merrill <jason@redhat.com>
3361
3362 PR c++/6709 (DR 743)
3363 PR c++/42603 (DR 950)
3364 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3365 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3366 (CPP_DECLTYPE): New.
3367 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3368
2cc66f2a 33692011-07-19 Richard Guenther <rguenther@suse.de>
3370
3371 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3372 * c-omp.c (c_finish_omp_for): Likewise.
3373
3c802a1e 33742011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3375
3376 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3377 body on the next line.
3378
98a33d9f 33792011-07-08 Jason Merrill <jason@redhat.com>
3380
3115bda0 3381 PR c++/45437
3382 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3383
98a33d9f 3384 PR c++/49673
3385 * c-common.c (c_apply_type_quals_to_decl): Don't check
3386 TYPE_NEEDS_CONSTRUCTING.
3387
c38a75b7 33882011-07-06 Richard Guenther <rguenther@suse.de>
3389
3390 * c-common.c (c_common_nodes_and_builtins):
3391 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3392
e593356b 33932011-07-05 Richard Guenther <rguenther@suse.de>
3394
3395 * c-common.c (c_common_nodes_and_builtins): Build all common
3396 tree nodes first.
3397
fca0886c 33982011-06-27 Jakub Jelinek <jakub@redhat.com>
3399
a68f7a8d 3400 * c-common.h (c_tree_chain_next): New static inline function.
3401
fca0886c 3402 * c-common.c (check_builtin_function_arguments): Handle
3403 BUILT_IN_ASSUME_ALIGNED.
3404
2797f13a 34052011-06-21 Andrew MacLeod <amacleod@redhat.com>
3406
3407 * c-common.c: Add sync_ or SYNC__ to builtin names.
3408 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 3409
34102011-06-20 Pierre Vittet <piervit@pvittet.com>
3411
3412 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3413 handler.
3414 (gen_pragma_handler): New union.
3415 (internal_pragma_handler): New type.
3416 (c_register_pragma_with_data)
3417 (c_register_pragma_with_expansion_and_data): New functions.
3418
3419 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3420 (c_register_pragma, c_register_pragma_with_expansion)
3421 (c_invoke_pragma_handler): Changed to work with
3422 internal_pragma_handler.
3423 (c_register_pragma_with_data)
3424 (c_register_pragma_with_expansion_and_data): New functions.
3425
218e3e4e 34262011-06-14 Joseph Myers <joseph@codesourcery.com>
3427
3428 * c-common.c: Include common/common-target.h.
3429 (handle_section_attribute): Use
3430 targetm_common.have_named_sections.
3431 * c-cppbuiltin.c: Include common/common-target.h.
3432 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3433
41e53ed2 34342011-06-10 Richard Guenther <rguenther@suse.de>
3435
3436 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3437 to print a IDENTIFIER_NODE.
3438
a6f06169 34392011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3440 Joseph Myers <joseph@codesourcery.com>
3441
3442 * c.opt (fbuilding-libgcc): New option.
3443 * c-cppbuiltin.c (c_cpp_builtins): Define
3444 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3445
1ea9269b 34462011-06-07 Jason Merrill <jason@redhat.com>
3447
8ce59854 3448 * c-common.c (max_tinst_depth): Lower default to 900.
3449
1ea9269b 3450 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3451
1af0124d 34522011-06-07 Richard Guenther <rguenther@suse.de>
3453
3454 * c-common.c (c_common_nodes_and_builtins): Do not set
3455 size_type_node or call set_sizetype.
3456
0e9a4c01 34572011-06-07 Dodji Seketeli <dodji@redhat.com>
3458
3459 PR debug/49130
3460 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
19931eea 3461 type when using pointer comparison to compare types.
0e9a4c01 3462
90b40725 34632011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3464
3465 * c.opt: Add -Wdelete-non-virtual-dtor.
3466 * c-opts.c (c_common_handle_option): Include it in -Wall.
3467
fc9c9e87 34682011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3469
3470 PR bootstrap/49190
3471
3472 Revert:
3473 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3474
3475 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3476 not tree_common.
3477
d0389adc 34782011-05-27 Jakub Jelinek <jakub@redhat.com>
3479
3480 PR c++/49165
3481 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3482 C++ don't call c_common_truthvalue_conversion on void type arms.
3483
cacfdc02 34842011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3485
3486 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3487 (stmt_list_stack): Define.
3488 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3489 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3490
027fc6ef 34912011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3492
3493 * c-common.c (warning_candidate_p): Check for BLOCKs.
3494
f21317a1 34952011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3496
3497 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3498 not tree_common.
3499
789e953d 35002011-05-25 Jakub Jelinek <jakub@redhat.com>
3501
3502 * c-common.c (def_fn_type): Remove extra va_end.
3503
7f506bca 35042011-05-23 Jason Merrill <jason@redhat.com>
3505
3506 PR c++/48106
3507 * c-common.c (c_common_get_narrower): New.
3508 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3509
774e9d58 35102011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3511
3512 * c-common.h (check_function_arguments): Tweak prototype of
3513 check_function_arguments.
3514 * c-common.c (check_function_arguments): Likewise. Adjust
3515 calls to check_function_nonnull, check_function_format, and
3516 check_function_sentinel.
3517 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3518 separate attributes and typelist arguments. Use
3519 FOREACH_FUNCTION_ARGS to iterate over argument types.
3520
23407dc9 35212011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3522
3523 * c-common.c (c_common_reswords): Reorder.
3524 * c-common.h (rid): Likewise.
3525
3a939d12 35262011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3527
3528 * c-common.c (def_fn_type): Don't call build_function_type, call
3529 build_function_type_array or build_varargs_function_type_array
3530 instead.
3531 (c_common_nodes_and_builtins): Likewise.
3532
b6e3dd65 35332011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3534
3535 * c-common.c (c_add_case_label): Omit the loc argument to
3536 build_case_label.
3537 * c-common.h (build_case_label): Remove.
3538 * c-semantics.c (build_case_label): Remove.
3539
4232a958 35402011-05-05 Joseph Myers <joseph@codesourcery.com>
3541
3542 * c-objc.h (objc_start_method_definition): Update prototype.
3543 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3544
d0af78c5 35452011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3546
3547 * c-common.c (check_main_parameter_types): Reindent. Don't use
3548 TYPE_ARG_TYPES directly.
3549 (handle_nonnull_attribute): Likewise.
3550 (sync_resolve_params): Likewise.
3551 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3552 to check_format_string.
3553 (handle_format_attribute): Likewise.
3554 (check_format_string): Take a function type to examine instead of
3555 a type list. Use a function_arg_iterator to step through argument
3556 types.
3557
ceb7b692 35582011-05-04 Richard Guenther <rguenther@suse.de>
3559
3560 * c-common.c (fix_string_type): Use size_int for index type bounds.
3561 (start_fname_decls): Do not pass NULL to build_int_cst.
3562 (c_init_attributes): Likewise.
3563 * c-lex.c (c_lex_with_flags): Likewise.
3564
c66c81be 35652011-04-27 Jason Merrill <jason@redhat.com>
3566
3567 * c-common.c (make_tree_vector_from_list): New.
3568 * c-common.h: Declare it.
3569
16930c72 35702011-04-26 Richard Guenther <rguenther@suse.de>
3571
3572 PR preprocessor/48248
3573 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3574 for output size with -P.
3575
23407dc9 35762011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3577
3578 * c-common.c (struct c_common_resword): Add __underlying_type.
3579 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3580
dd045aee 35812011-04-20 Jim Meyering <meyering@redhat.com>
3582
3583 * c-format.c (init_dollar_format_checking): Remove useless
3584 if-before-free.
3585
394dd737 35862011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3587
3588 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 3589 (objc_detect_field_duplicates): New.
394dd737 3590 * stub-objc.c: Likewise.
23407dc9 3591
a758bf7d 35922011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3593
3594 * stub-objc.c (objc_declare_protocols): Renamed to
3595 objc_declare_protocol.
3596 * c-objc.h: Likewise.
23407dc9 3597
29d7200d 35982011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3599
3600 * stub-objc.c (objc_declare_class): Updated argument name.
3601
9b88d08d 36022011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3603
3604 * c-common.h (c_common_init_ts): Declare.
3605 * c-common.c (c_common_init_ts): Define.
3606
4185cf58 36072011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3608
3609 * c-objc.h (objc_build_message_expr): Updated prototype.
3610 * stub-objc.c (objc_build_message_expr): Likewise.
19931eea 3611
5a90471f 36122011-04-12 Martin Jambor <mjambor@suse.cz>
3613
3614 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3615 of cgraph_node.
3616
783bb57e 36172011-04-11 Richard Guenther <rguenther@suse.de>
3618
3619 * c-common.c (complete_array_type): Build a range type of
3620 proper type.
3621
c33080b9 36222011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3623
3624 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3625 (handle_type_generic_attribute): Likewise.
3626
f8913d47 36272011-04-07 Jason Merrill <jason@redhat.com>
3628
3629 PR c++/48450
3630 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3631 conversion from C++0x scoped enum.
3632
c94b1d0e 36332011-04-06 Joseph Myers <joseph@codesourcery.com>
3634
3635 * c-target-def.h: New file.
3636 * c-target.def: New file.
3637 * c-target.h: New file.
3638 * c-common.c (targetcm): Don't define here.
3639 * c-common.h (default_handle_c_option): Declare.
3640 * c-format.c: Include c-target.h instead of target.h.
3641 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3642 include tm.h.
3643 (default_handle_c_option): Move from targhooks.c.
3644
acb10f41 36452011-03-29 Jakub Jelinek <jakub@redhat.com>
3646
3647 PR preprocessor/48248
3648 * c-ppoutput.c (print): Add src_file field.
3649 (init_pp_output): Initialize it.
3650 (maybe_print_line): Don't optimize by adding up to 8 newlines
3651 if map->to_file and print.src_file are different file.
3652 (print_line): Update print.src_file.
3653
82715bcd 36542011-03-25 Kai Tietz <ktietz@redhat.com>
3655
3656 * c-ada-spec.c (compare_comment): Use filename_cmp
3657 instead of strcmp for filename.
3658
451c8e2f 36592011-03-25 Jeff Law <law@redhat.com>
3660
1f78217c 3661 * c-common.c (def_fn_type): Add missing va_end.
451c8e2f 3662
3c47771c 36632011-03-25 Jason Merrill <jason@redhat.com>
3664
3665 * c.opt: Add -std=c++03.
3666
97e6200f 36672011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3668
3669 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3670
ac86af5d 36712011-03-17 Kai Tietz
3672
3673 PR target/12171
ee212425 3674 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3675 Display allowed attributes for function pointer types.
3676 (pp_c_attributes_display): New function to display
3677 attributes having affects_type_identity flag set to true.
3678 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3679
ac86af5d 3680 * c-common.c (c_common_attribute_table):
3681 Add new element.
3682 (c_common_format_attribute_table): Likewise.
3683
914d1151 36842011-03-18 Jason Merrill <jason@redhat.com>
3685
69788bdf 3686 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3687 * c-common.h: Don't declare it here.
3688 * c-common.c: Or define it here.
3689 * c-opts.c (c_common_handle_option): Or set it here.
3690
914d1151 3691 PR c++/35315
3692 * c-common.c (handle_transparent_union_attribute): Don't
3693 make a duplicate type in C++.
3694
54cf6eed 36952011-03-15 Jason Merrill <jason@redhat.com>
3696
3697 * c-common.c (max_constexpr_depth): New.
3698 * c-common.h: Declare it.
3699 * c-opts.c (c_common_handle_option): Set it.
3700 * c.opt (fconstexpr-depth): New option.
3701
02cb1060 37022011-03-11 Jason Merrill <jason@redhat.com>
3703
9bf1c74e 3704 * c-common.c (attribute_takes_identifier_p): Add missing const.
3705
02cb1060 3706 PR c++/46803
3707 * c-common.c (attribute_takes_identifier_p): Assume that an
3708 unknown attribute takes an identifier.
3709
ecf2703d 37102011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3711
3712 PR c/47786
3713 * c-common.c (c_type_hash): Call list_length instead of iterating
3714 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3715
2b19dfe4 37162011-02-19 Jakub Jelinek <jakub@redhat.com>
3717
3718 PR c/47809
3719 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3720
29cf2335 37212011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3722
3723 * c.opt (fobjc-abi-version=) New.
3724 (fobjc-nilcheck): New.
3725
fad3f658 37262011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3727
3728 PR c++/46890
3729 * c-common.h (keyword_is_decl_specifier): Declare.
3730 * c-common.c (keyword_is_decl_specifier): Define.
3731 (keyword_is_function_specifier): New function.
3732
a12319b3 37332011-01-26 Jakub Jelinek <jakub@redhat.com>
3734
3735 PR c/47473
3736 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3737 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3738 REAL_TYPE.
3739
5c128dc8 37402011-01-26 Arnaud Charlet <charlet@adacore.com>
3741
3742 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3743
8d67b0c7 37442011-01-26 Jakub Jelinek <jakub@redhat.com>
3745
3746 PR pch/47430
3747 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3748 after init_c_lex if pch_file is set.
3749
0675168d 37502011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3751
e8911163 3752 PR c++/43601
0675168d 3753 * c.opt (-fkeep-inline-dllexport): New switch.
3754
0725e25c 37552011-01-12 Richard Guenther <rguenther@suse.de>
3756
3757 PR middle-end/32511
3758 * c-common.c (handle_weak_attribute): Warn instead of error
3759 on declaring an inline function weak.
3760
fdd84b77 37612011-01-05 Tom Tromey <tromey@redhat.com>
3762
3763 * c-common.h (lvalue_error): Update.
3764 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3765 not error.
3766
e6e73d14 37672010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
19931eea 3768
d67e8485 3769 PR objc/47075
3770 * c-objc.h (objc_finish_message_expr): Added argument to
3771 prototype.
3772
a36cf284 37732010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3774
3775 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3776 Use prototype_p.
3777
33b3681f 37782010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3779
3780 * c-objc.h (objc_maybe_warn_exceptions): New.
19931eea 3781 * stub-objc.c (objc_maybe_warn_exceptions): New.
33b3681f 3782
a1f90215 37832010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3784
3785 * c-common.h (readonly_error): Declare.
3786 * c-common.c (readonly_error): Define.
3787
b1bbc8e5 37882010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3789
3790 * c-common.h (invalid_indirection_error): Declare.
3791 * c-common.c (invalid_indirection_error): Define.
3792
b0d55af9 37932010-12-03 Richard Guenther <rguenther@suse.de>
3794
3795 PR c/46745
3796 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3797 (pp_c_unary_expression): Likewise.
3798 (pp_c_expression): Likewise.
3799
d7489d8d 38002010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3801
3802 * c-common.h (objc_finish_function): New.
3803 (objc_non_volatilized_type): Removed.
3804 (objc_type_quals_match): Removed.
3805 * stub-objc.c (objc_finish_function): New.
3806 (objc_non_volatilized_type): Removed.
3807 (objc_type_quals_match): Removed.
19931eea 3808
92468061 38092010-11-30 Joseph Myers <joseph@codesourcery.com>
3810
3811 * c-common.h (parse_optimize_options): Declare.
3812 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3813 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3814
967958e4 38152010-11-29 Joseph Myers <joseph@codesourcery.com>
3816
3817 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3818 GET_ENVIRONMENT.
3819 * c-pch.c (O_BINARY): Don't define here.
3820 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3821
b213bf24 38222010-11-25 Joseph Myers <joseph@codesourcery.com>
3823
3824 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3825 targetm.except_unwind_info.
3826
9faf44d6 38272010-11-23 Joseph Myers <joseph@codesourcery.com>
3828
3829 * c-opts.c (c_common_handle_option): Pass location to
3830 set_struct_debug_option.
3831
79396169 38322010-11-23 Joseph Myers <joseph@codesourcery.com>
3833
3834 * c-common.c (visibility_options): Move from ../opts.c.
3835 * c-common.h (struct visibility_flags, visibility_options):
3836 Declare here.
3837 * c-opts.c (finish_options): Rename to c_finish_options.
3838 (c_common_init): Update call to finish_options.
3839
b4aa4123 38402010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3841
3842 PR objc/34033
3843 * c-lex.c (lex_string): Check that each string in an Objective-C
3844 string concat sequence starts with either one or zero '@', and
3845 that there are no spurious '@' signs at the end.
3846
3e0e49f2 38472010-11-20 Joseph Myers <joseph@codesourcery.com>
3848
3849 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3850 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3851 HANDLE_PRAGMA_VISIBILITY.
3852 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3853 HANDLE_PRAGMA_VISIBILITY): Don't define.
3854 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3855
a9ffdd35 38562010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3857
3858 PR c++/16189
3859 PR c++/36888
3860 PR c++/45331
3861 * c-common.h (keyword_begins_type_specifier): Declare.
3862 (keyword_is_storage_class_specifier): Declare.
3863 (keyword_is_type_qualifier): Declare.
3864 * c-common.c (keyword_begins_type_specifier): New function.
3865 (keyword_is_storage_class_specifier): New function.
3866 (keyword_is_type_qualifier): Declare.
3867
93be21c0 38682010-11-19 Joseph Myers <joseph@codesourcery.com>
3869
3870 PR c/46547
3871 * c-common.c (in_late_binary_op): Define.
3872 (c_common_truthvalue_conversion): Check in_late_binary_op before
3873 calling c_save_expr.
3874 * c-common.h (in_late_binary_op): Declare.
3875
d7175aef 38762010-11-19 Joseph Myers <joseph@codesourcery.com>
3877
3878 * c-opts.c (c_common_handle_option): Update calls to
3879 set_struct_debug_option.
3880
c213e196 38812010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3882
3883 * c-common.h (objc_declare_protocols): Added additional argument.
3884 * stub-objc.c (objc_declare_protocol): Same change.
19931eea 3885
0b5fc5d6 38862010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3887
3888 PR c/33193
3889 * c-common.h (build_real_imag_expr): Declare.
3890 * c-semantics.c (build_real_imag_expr): Define.
3891
b8ba44e7 38922010-11-17 Joseph Myers <joseph@codesourcery.com>
3893
3894 * c-opts.c (c_common_parse_file): Take no arguments.
3895 * c-common.h (c_common_parse_file): Update prototype.
3896
6ef8d12f 38972010-11-16 Jakub Jelinek <jakub@redhat.com>
3898
3899 PR c++/46401
3900 * c-common.c (warning_candidate_p): Don't track non-const calls
3901 or STRING_CSTs.
3902
929d2a90 39032010-11-15 Ian Lance Taylor <iant@google.com>
3904
3905 * c-lex.c (init_c_lex): Set macro debug callbacks if
3906 flag_dump_go_spec is set.
3907
e4a7640a 39082010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3909
3910 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3911 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3912
597d2d81 39132010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3914
3915 PR preprocessor/45038
3916 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3917 dialects.
3918
c123f04d 39192010-11-12 Joseph Myers <joseph@codesourcery.com>
3920
3921 * c-common.h (c_family_lang_mask): Declare.
3922 * c-opts.c (c_family_lang_mask): Make extern.
3923 * c-pragma.c (handle_pragma_diagnostic): Use
3924 control_warning_option.
3925
3c6c0e40 39262010-11-12 Joseph Myers <joseph@codesourcery.com>
3927
3928 * c-common.c (parse_optimize_options): Update call to
3929 decode_options.
3930 * c-common.h (c_common_handle_option): Update prototype.
3931 * c-opts.c (c_common_handle_option): Take location_t parameter and
3932 pass it to other functions.
3933
19ec5c9e 39342010-11-11 Joseph Myers <joseph@codesourcery.com>
3935
3936 * c-opts.c (warning_as_error_callback): Remove.
3937 (c_common_initialize_diagnostics): Don't call
3938 register_warning_as_error_callback.
3939 (c_common_handle_option): Handle -Werror=normalized= here.
3940
bf776685 39412010-11-10 Joseph Myers <joseph@codesourcery.com>
3942
3943 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3944 in diagnostic.
3945 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3946 letter.
3947 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3948 Remove trailing '.' from diagnostics.
3949 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3950
6bd9d862 39512010-11-10 Joseph Myers <joseph@codesourcery.com>
3952
3953 * c-common.c (parse_optimize_options): Pass global_dc to
3954 decode_options.
3955 * c-opts.c (c_common_handle_option): Pass &global_options to
3956 set_Wstrict_aliasing.
3957 * c.opt (v): Don't mark Common or document here.
3958
1f6616ee 39592010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3960
3961 PR target/44981
3962 * c-format.c (format_type): New type gcc_objc_string_format_type.
3963 (valid_stringptr_type_p): New.
3964 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
19931eea 3965 (check_format_string): Pass expected type, use
1f6616ee 3966 valid_stringptr_type_p (), check that the format string types are
3967 consistent with the format specification.
3968 (decode_format_attr): Warn if NSString is used outside objective-c.
3969 (format_types_orig): Add NSString.
3970 (format_name): New.
3971 (format_flags): New.
3972 (check_format_arg): Handle format strings requiring an external parser.
3973 first_target_format_type: New variable.
3974 (handle_format_attribute): Set up first_target_format_type, pass the
3975 expected format arg string type to check_format_string().
3976 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3977 * stub-objc.c (objc_string_ref_type_p): New.
3978 (objc_check_format_arg): New.
3979
b0d0931f 39802010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3981
19931eea 3982 Fixed using the Objective-C 2.0 dot-syntax with class names.
b0d0931f 3983 * c-common.h (objc_build_class_component_ref): New.
3984 * stub-objc.c (objc_build_class_component_ref): New.
3985
f26877d5 39862010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3987
3988 * c.opt (Wproperty-assign-default): New option.
3989
1ef143b6 39902010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3991
3992 Implemented -fobjc-std=objc1 flag.
3993 * c.opt (fobjc-std=objc1): New option.
3994
8c582e4f 39952010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3996
3997 Implemented format and noreturn attributes for Objective-C methods.
3998 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3999 attribute for Objective-C methods.
4000
8637f1db 40012010-10-31 Jason Merrill <jason@redhat.com>
4002
4003 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4004 EXPR_LOC_OR_HERE.
4005
9d9f5bb3 40062010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4007
4008 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4009 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4010 (objc_add_property_declaration): Removed arguments for copies and
4011 ivar.
4012 (objc_build_getter_call): Renamed to
4013 objc_maybe_build_component_ref.
4014 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4015 (objc_is_property_ref): New.
4016 * c-common.c (c_common_reswords): Removed copies and ivar.
4017 * stub-objc.c (objc_add_property_declaration): Removed arguments
4018 for copies and ivar.
4019 (objc_build_getter_call): Renamed to
4020 objc_maybe_build_component_ref.
4021 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4022 (objc_is_property_ref): New.
19931eea 4023
56f907a0 40242010-10-29 Arnaud Charlet <charlet@adacore.com>
4025 Matthew Gingell <gingell@adacore.com>
4026
4027 * c-ada-spec.c (separate_class_package): New function.
4028 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4029 name of their enclosing package.
4030 (print_ada_declaration): Use separate_class_package.
4031
b5fa273e 40322010-10-27 Jason Merrill <jason@redhat.com>
4033
5290e253 4034 * c-common.c (c_common_reswords): Add __is_literal_type.
4035 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4036
b5fa273e 4037 * c-common.c (check_case_value): Remove special C++ code.
4038
7590f0e5 40392010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4040
4041 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4042 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4043 and RID_LAST_PATTR.
4044 (objc_add_property_declaration): Added additional arguments.
4045 (objc_property_attribute_kind): Removed.
4046 (objc_set_property_attr): Removed.
4047 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4048 copy and nonatomic.
4049 * stub-objc.c (objc_add_property_declaration): Added additional
4050 arguments.
4051 (objc_set_property_attr): Removed.
19931eea 4052
1d894bcf 40532010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4054
4055 * c-common.h (objc_add_property_variable): Renamed to
4056 objc_add_property_declaration. Added location argument.
4057 * stub-objc.c (objc_add_property_variable): Same change.
4058
e23bf1fb 40592010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4060
4061 * c-common.h (objc_maybe_printable_name): New.
4062 * stub-objc.c (objc_maybe_printable_name): New.
4063
93426222 40642010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4065 Andrew Pinski <pinskia@gmail.com>
4066
4067 * c-common.h (c_common_mark_addressable_vec): Declare.
4068 * c-common.c (c_common_mark_addressable_vec): New function.
4069
45b2b110 40702010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4071
4072 * c-common.h (objc_set_method_type): Removed.
4073 (objc_add_method_declaration): Added boolean argument.
4074 (objc_start_method_definition): Same change.
4075 (objc_build_method_signature): Same change.
4076 * stub-objc.c (objc_set_method_type): Removed.
4077 (objc_add_method_declaration): Added boolean argument.
4078 (objc_start_method_definition): Same change.
4079 (objc_build_method_signature): Same change.
4080
64cd9619 40812010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4082
4083 * c-common.h (finish_file): Removed.
4084 (objc_write_global_declarations): New.
4085 * c-opts.c (c_common_parse_file): Do not call finish_file.
4086 * stub-objc.c (objc_write_global_declarations): New.
19931eea 4087
e1f293c0 40882010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4089
4090 Implemented parsing @synthesize and @dynamic for
4091 Objective-C/Objective-C++.
4092 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4093 (objc_add_synthesize_declaration): New.
4094 (objc_add_dynamic_declaration): New.
4095 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4096 * stub-objc.c (objc_add_synthesize_declaration): New.
4097 (objc_add_dynamic_declaration): New.
19931eea 4098
ef97a312 40992010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4100
4101 PR target/46041
4102 * c-cppbuiltin.c (mode_has_fma): Move function here from
4103 builtins.c. Don't use the fma optab, instead just use the
4104 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4105 using -save-temps.
4106
69b07042 41072010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4108
4109 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 4110
69b07042 4111 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4112
19931eea 4113 Radar 4330422
69b07042 4114 * c-common.h (objc_non_volatilized_type): New declaration
4115 * stub-objc.c (objc_non_volatilized_type): New stub.
4116
f15f2e56 41172010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4118
69b07042 4119 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 4120
4121 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4122
19931eea 4123 Radar 4133425
f15f2e56 4124 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 4125 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 4126
4a8875ed 41272010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4128
4129 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4130 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4131 (objc_ivar_visibility_kind): New enum.
4132 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 4133 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 4134 visibility enum.
4135
7e0713b1 41362010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4137
4138 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4139 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4140 has the appropriate fma builtins.
4141 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4142
86c110ac 41432010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4144
7e0713b1 4145 merge from FSF apple 'trunk' branch.
86c110ac 4146 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 4147
86c110ac 4148 Radars 4436866, 4505126, 4506903, 4517826
4149 * c-common.c (c_common_resword): Define @property and its attributes.
4150 * c-common.h: Define property attribute enum entries.
4151 (OBJC_IS_PATTR_KEYWORD): New.
4152 (objc_property_attribute_kind): New enum.
4153 Declare objc_set_property_attr (), objc_add_property_variable (),
4154 objc_build_getter_call () and objc_build_setter_call ().
4155 * stub-objc.c (objc_set_property_attr): New stub.
4156 (objc_add_property_variable): Likewise.
4157 (objc_build_getter_call): Likewise.
4158 (objc_build_setter_call) Likewise.
7e0713b1 4159
40c8d1dd 41602010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4161
7e0713b1 4162 merge from FSF apple 'trunk' branch.
40c8d1dd 4163 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4164
4165 Radar 3803157 (method attributes)
4166 * c-common.c (handle_deprecated_attribute): Recognize
4167 objc methods as valid declarations.
4168 * c-common.h: Declare objc_method_decl ().
7e0713b1 4169 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 4170
f3f006ad 41712010-10-08 Joseph Myers <joseph@codesourcery.com>
4172
4173 * c-common.c (parse_optimize_options): Call
4174 decode_cmdline_options_to_array_default_mask before
4175 decode_options. Update arguments to decode_options.
4176 * c-common.h (c_common_init_options_struct): Declare.
4177 * c-opts.c (c_common_init_options_struct): New. Split out from
4178 c_common_init_options.
4179
0a65c3bb 41802010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4181
4182 Implemented fast enumeration for Objective-C.
4183 * c-common.h (objc_finish_foreach_loop): New.
4184 * stub-objc.c (objc_finish_foreach_loop): New.
4185
24ca3b4e 41862010-10-05 Joseph Myers <joseph@codesourcery.com>
4187
4188 * c-common.h (struct diagnostic_context): Don't declare here.
4189 (c_common_initialize_diagnostics): Declare using
4190 diagnostic_context typedef.
4191 * c-opts.c (c_common_handle_option): Pass global_dc to
4192 handle_generated_option.
4193
f83b64ca 41942010-10-04 Joseph Myers <joseph@codesourcery.com>
4195
4196 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4197 handle_generated_option.
4198
2fdec027 41992010-10-03 Ian Lance Taylor <iant@google.com>
4200
4201 * c.opt (-fplan9-extensions): New option.
4202
41acdfa4 42032010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4204
4205 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4206 Remove.
4207 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4208 of duplicating code.
4209
069761fb 42102010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4211
4212 * c-common.c: Add two new entries for @optional
4213 and @required keywords.
4214
4215 merge from FSF 'apple/trunk' branch.
4216 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4217
4218 Radar 4386773
4219 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4220 objective-c keywords.
4221 (objc_set_method_opt): New declaration.
4222 * stub-objc.c (objc_set_method_opt): New stub.
19931eea 4223
2c5d2e39 42242010-09-30 Joseph Myers <joseph@codesourcery.com>
4225
4226 * c-common.c (handle_optimize_attribute): Pass &global_options to
4227 cl_optimization_save and cl_optimization_restore.
4228 * c-opts.c (c_common_handle_option): Pass &global_options to
4229 handle_generated_option.
4230 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4231 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4232 &global_options to cl_optimization_restore.
4233
e5c75ac3 42342010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4235
4236 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4237 Objective-C/Objective-C++ keywords.
4238
3511333e 42392010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 4240
19931eea 4241 Merge from 'apple/trunk' branch on FSF servers.
4242
e147d6aa 4243 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4244
4245 Radar 4281748
4246 * c-common.h (objc_check_global_decl): New declaration.
4247 * stub-objc.c (objc_check_global_decl): New stub.
4248
5461e683 42492010-09-29 Joseph Myers <joseph@codesourcery.com>
4250
4251 * c.opt: Don't use VarExists.
4252
5ae82d58 42532010-09-29 Joseph Myers <joseph@codesourcery.com>
4254
4255 * c-common.c (c_cpp_error): Update names of diagnostic_context
4256 members.
4257 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4258 cl_optimization members.
4259 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4260 sanitize_cpp_opts, finish_options): Update names of cpp_options
4261 members.
4262
b27e241e 42632010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4264
4265 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4266 (objc_is_reserved_word): Removed.
4267 * c-common.c: Updated comments.
4268 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4269 objc_is_reserved_word.
4270 * stub-objc.c (objc_is_reserved_word): Removed.
4271
03fc2271 42722010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4273
19931eea 4274 * c-common.h (objc_add_method_declaration): Adjust prototype to
03fc2271 4275 include attributes.
4276 (objc_start_method_definition): Likewise.
4277 (objc_build_keyword_decl): Likewise.
4278 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4279 (objc_start_method_definition): Likewise.
4280 (objc_build_keyword_decl): Likewise.
4281
a336eb4b 42822010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4283
4284 * c-common.h (objc_start_class_interface): Adjust prototype.
4285 (objc_start_category_interface): Likewise.
4286 (objc_start_protocol): Likewise.
4287 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4288 (objc_start_class_interface): Likewise.
4289 (objc_start_category_interface): Likewise.
4290
48b14f50 42912010-09-27 Ian Lance Taylor <iant@google.com>
4292
4293 * c-common.c (c_common_attribute_table): Add no_split_stack.
4294 (handle_no_split_stack_attribute): New static function.
4295
4abfc532 42962010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4297
19931eea 4298 Merge from 'apple/trunk' branch on FSF servers.
4abfc532 4299
4300 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4301
19931eea 4302 Radar 4229905
4abfc532 4303 * c-common.h (objc_have_common_type): New declaration.
4304 * stub-objc.c (objc_have_common_type): New stub.
4305
4306 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4307
4308 Radar 4154928
4309 * c-common.h (objc_common_type): New prototype.
19931eea 4310 * stub-objc.c (objc_common_type): New stub.
4abfc532 4311
7bd95dfd 43122010-09-24 Jan Hubicka <jh@suse.cz>
4313
4314 * c-common.c (handle_leaf_attribute): New function.
4315 (struct attribute_spec c_common_att): Add leaf.
4316
5789e05b 43172010-09-22 Joseph Myers <joseph@codesourcery.com>
4318
4319 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4320 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4321 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4322 -include-barrier, -include-directory, -include-directory=,
4323 -include-directory-after, -include-directory-after=,
4324 -include-prefix, -include-prefix=, -include-with-prefix,
4325 -include-with-prefix=, -include-with-prefix-after,
4326 -include-with-prefix-after=, -include-with-prefix-before,
4327 -include-with-prefix-before=, -no-integrated-cpp,
4328 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4329 -output=, -pedantic, -pedantic-errors, -preprocess,
4330 -print-missing-file-dependencies, -trace-includes, -traditional,
4331 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4332 -user-dependencies, -verbose, -write-dependencies,
4333 -write-user-dependencies, no-integrated-cpp, traditional): New.
4334
e6fb54ba 43352010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4336
4337 PR objc/23710
9b60f3b0 4338 * c-common.h (objc_start_method_definition): Return bool instead
4339 of void.
4340 * stub-objc.c (objc_start_method_definition): Return bool instead
4341 of void.
4342
43432010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4344
4345 PR objc/25965
4346 * c-common.h (objc_get_interface_ivars): New declaration.
4347 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 4348
e44b0a1f 43492010-09-15 Ian Lance Taylor <iant@google.com>
4350
4351 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 4352 messages. Remove period at end of warning message.
e44b0a1f 4353
85c0a25c 43542010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4355
4356 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4357 (handle_alias_attribute): ... here.
4358 (handle_ifunc_attribute): New.
4359
5ba33bf4 43602010-09-06 Mark Mitchell <mark@codesourcery.com>
4361
4362 * c-common.h (do_warn_double_promotion): Declare.
4363 * c-common.c (do_warn_double_promotion): Define.
4364
c920faa3 43652010-09-05 Mark Mitchell <mark@codesourcery.com>
4366
4367 * c.opt (Wdouble-promotion): New.
4368
9604e070 43692010-09-02 Joseph Myers <joseph@codesourcery.com>
4370
4371 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4372 fvtable-thunks, fxref): Mark no longer supported in help text.
4373
3b0273a1 43742010-09-02 Joseph Myers <joseph@codesourcery.com>
4375
4376 * c.opt (Wimport, fall-virtual, falt-external-templates,
4377 fdefault-inline, fenum-int-equiv, fexternal-templates,
4378 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4379 fname-mangling-version-, fnew-abi, fnonnull-objects,
4380 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4381 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4382 applicable.
4383 (fhandle-exceptions): Mark with Alias and Warn.
4384 * c-opts.c (c_common_handle_option): Don't handle options marked
4385 as ignored.
4386
67089c6b 43872010-09-02 Joseph Myers <joseph@codesourcery.com>
4388
4389 * c.opt (Wcomments, Werror-implicit-function-declaration,
4390 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4391 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4392 aliases.
4393 * c-common.c (option_codes): Use OPT_Wcomment instead of
4394 OPT_Wcomments.
4395 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4396 Don't handle options marked as aliases.
4397
2af087f2 43982010-08-25 Richard Guenther <rguenther@suse.de>
4399
4400 * c-common.c (c_common_get_alias_set): Remove special
4401 handling for pointers.
4402
48148244 44032010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4404
4405 * c-common.c: Use FOR_EACH_VEC_ELT.
4406 * c-gimplify.c: Likewise.
4407 * c-pragma.c: Likewise.
4408
89c69892 44092010-08-16 Joseph Myers <joseph@codesourcery.com>
4410
4411 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4412 RejectDriver.
4413 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4414 RejectDriver.
4415 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4416 instead of OPT_MDX and OPT_MMDX.
4417
e28aa114 44182010-08-16 Joseph Myers <joseph@codesourcery.com>
4419
4420 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4421
99b66d21 44222010-08-12 Joseph Myers <joseph@codesourcery.com>
4423
4424 * c.opt (MD, MMD): Change to MDX and MMDX.
4425 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4426
666f4bf0 44272010-08-11 Joseph Myers <joseph@codesourcery.com>
4428
4429 * c-opts.c (c_common_handle_option): Call handle_generated_option
4430 instead of handle_option.
4431
5ec815f6 44322010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4433
4434 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4435 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4436
d13143cf 44372010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4438
4439 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4440 (pending_redefine_extname): Change type to a VEC.
4441 (add_to_renaming_pragma_list): Update for new type of
4442 pending_redefine_extname.
5ec815f6 4443 (maybe_apply_renaming_pragma): Likewise.
d13143cf 4444
2008c983 44452010-08-04 Arnaud Charlet <charlet@adacore.com>
4446
4447 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4448 visited.
4449 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4450 decide whether a type has already been declared/seen.
4451 Do not go to the original type.
4452 (dump_nested_types): New parameter forward.
4453 Generate forward declaration if needed and mark type as visited.
4454 (print_ada_declaration): Call dump_nested_types if not already done.
4455 Mark types as visited.
4456
9b091a73 44572010-08-03 Joseph Myers <joseph@codesourcery.com>
4458
4459 * c.opt (-print-pch-checksum): Remove option.
4460 * c-opts.c (c_common_handle_option): Don't handle
4461 OPT_print_pch_checksum.
4462
b78351e5 44632010-07-27 Joseph Myers <joseph@codesourcery.com>
4464
4465 * c-common.h (c_common_handle_option): Update prototype and return
4466 value type.
4467 * c-opts.c (c_common_handle_option): Update prototype and return
4468 value type. Update calls to handle_option and
4469 enable_warning_as_error.
4470
34416a90 44712010-07-27 Jakub Jelinek <jakub@redhat.com>
4472
4473 PR c/45079
4474 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4475
fecf9011 44762010-07-27 Joseph Myers <joseph@codesourcery.com>
4477
4478 * c-common.h (c_common_missing_argument): Remove.
4479 * c-opts.c (c_common_missing_argument): Remove.
4480 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4481 idirafter, imacros, include, isysroot, isystem, iquote): Add
4482 MissingArgError.
4483 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4484
e88d34f6 44852010-07-27 Joseph Myers <joseph@codesourcery.com>
4486
4487 * c-common.h (c_common_option_lang_mask,
4488 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4489 New.
4490 (c_common_init_options): Update prototype.
4491 * c-opts.c (c_common_option_lang_mask): New.
4492 (c_common_initialize_diagnostics): Split out of
4493 c_common_init_options.
4494 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4495 New.
4496 (c_common_init_options): Update prototype. Use decoded options in
4497 search for -lang-asm.
4498
1767a056 44992010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4500
4501 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4502 * c-format.c: Likewise.
4503
0b205f4c 45042010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4505
4506 * c-common.h: Include diagnostic-core.h. Error if already
4507 included.
4508 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4509
1c58e3f1 45102010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4511
1f78217c 4512 * c-common.c (IN_GCC_FRONTEND): Do not undef.
1c58e3f1 4513 Do not include expr.h
4514 (vector_mode_valid_p): Move here.
4515
33cc157c 45162010-06-21 DJ Delorie <dj@redhat.com>
4517
4518 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4519 allow these pragmas anywhere.
4520
45212010-06-14 Jakub Jelinek <jakub@redhat.com>
4522
4523 PR bootstrap/44509
4524 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4525 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4526 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4527 ggc_strdup instead of xstrdup.
4528
45292010-06-10 Jakub Jelinek <jakub@redhat.com>
4530
4531 * c-cppbuiltin.c: Include cpp-id-data.h.
4532 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4533 (lazy_hex_fp_value): New function.
4534 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4535
9b40bfbf 45362010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4537
4538 * c-gimplify.c: Do not include tree-flow.h
4539
202d6e5f 45402010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4541
4542 PR other/44034
4543 * c-common.c: Rename targetm member:
4544 targetm.enum_va_list -> targetm.enum_va_list_p
4545
d3237426 45462010-06-28 Anatoly Sokolov <aesok@post.ru>
4547
4548 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4549
596981c8 45502010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4551
4552 * c-cppbuiltin.c: Do not include except.h.
4553
b9bdfa0b 45542010-06-24 Andi Kleen <ak@linux.intel.com>
4555
19931eea 4556 * c-common.c (warn_for_omitted_condop): New.
4557 * c-common.h (warn_for_omitted_condop): Add prototype.
b9bdfa0b 4558
55ad092d 45592010-06-21 Joseph Myers <joseph@codesourcery.com>
4560
4561 * c.opt (lang-objc): Remove.
4562 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4563
9e7c2572 45642010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4565
4566 * c-opts.c: Include "tm_p.h".
4567
615ef0bb 45682010-06-20 Joseph Myers <joseph@codesourcery.com>
4569
4570 * c-common.c (parse_optimize_options): Update call to
4571 decode_options.
4572
aef48c9a 45732010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4574
4575 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4576 new type of types_used_by_cur_var_decl.
4577
d74003b4 45782010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4579
4580 PR bootstrap/44512
4581 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4582 for C++ standard compliance.
4583
1194d077 45842010-06-16 Jason Merrill <jason@redhat.com>
4585
4586 * c.opt: Add -Wnoexcept.
4587
d473d901 45882010-06-16 Richard Guenther <rguenther@suse.de>
4589
4590 PR c/44555
4591 * c-common.c (c_common_truthvalue_conversion): Remove
4592 premature and wrong optimization concering ADDR_EXPRs.
4593
b62dbfd3 45942010-06-15 Arnaud Charlet <charlet@adacore.com>
4595
4596 * c-ada-spec.c (dump_sloc): Remove column info.
4597 (is_simple_enum): New function.
4598 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4599 enum types when relevant.
4600
200dd99c 46012010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4602
19931eea 4603 * c-common.c (conversion_warning): Warn at expression
200dd99c 4604 location.
4605
abf6a617 46062010-06-10 Joseph Myers <joseph@codesourcery.com>
4607
4608 * c-opts.c (c_common_handle_option): Don't handle
4609 OPT_fshow_column.
4610
ba72912a 46112010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4612
4613 * c-pragma.c (push_alignment): Use typed GC allocation.
4614 (handle_pragma_push_options): Likewise.
4615
4616 * c-common.c (parse_optimize_options): Likewise.
4617
4618 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4619 option.
4620
4aafe913 46212010-06-07 Joseph Myers <joseph@codesourcery.com>
4622
4623 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4624 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4625 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4626 flag_signed_bitfields, warn_strict_null_sentinel,
4627 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4628 flag_gen_declaration, flag_no_gnu_keywords,
4629 flag_implement_inlines, flag_implicit_templates,
4630 flag_implicit_inline_templates, flag_optional_diags,
4631 flag_elide_constructors, flag_default_inline, flag_rtti,
4632 flag_conserve_space, flag_access_control, flag_check_new,
4633 flag_new_for_scope, flag_weak, flag_working_directory,
4634 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4635 flag_enforce_eh_specs, flag_threadsafe_statics,
4636 flag_pretty_templates): Remove.
4637 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4638 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4639 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4640 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4641 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4642 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4643 flag_no_gnu_keywords, flag_implement_inlines,
4644 flag_implicit_templates, flag_implicit_inline_templates,
4645 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4646 flag_rtti, flag_conserve_space, flag_access_control,
4647 flag_check_new, flag_new_for_scope, flag_weak,
4648 flag_working_directory, flag_use_cxa_atexit,
4649 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4650 flag_threadsafe_statics, flag_pretty_templates,
4651 warn_strict_null_sentinel): Remove.
4652 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4653 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4654 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4655 fimplicit-inline-templates, fimplicit-templates,
4656 flax-vector-conversions, fms-extensions, fnil-receivers,
4657 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4658 frtti, fshort-double, fshort-enums, fshort-wchar,
4659 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4660 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4661 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4662 gen-decls, undef): Use Var.
4663 (fdefault-inline, foptional-diags): Document as doing nothing.
4664 * c-opts.c (c_common_handle_option): Remove cases for options now
4665 using Var. Mark ignored options as such.
4666
7bedc3a0 46672010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4668
19931eea 4669 * c-common.c: Moved to here from parent directory.
7bedc3a0 4670 * c-common.def: Likewise.
4671 * c-common.h: Likewise.
4672 * c-cppbuiltin.c: Likewise.
4673 * c-dump.c: Likewise.
4674 * c-format.c: Likewise.
4675 * c-format.h : Likewise.
4676 * c-gimplify.c: Likewise.
4677 * c-lex.c: Likewise.
4678 * c-omp.c: Likewise.
4679 * c.opt: Likewise.
4680 * c-opts.c: Likewise.
4681 * c-pch.c: Likewise.
4682 * c-ppoutput.c: Likewise.
4683 * c-pragma.c: Likewise.
4684 * c-pragma.h: Likewise.
4685 * c-pretty-print.c: Likewise.
4686 * c-pretty-print.h: Likewise.
4687 * c-semantics.c: Likewise.
4688 * stub-objc.c: Likewise.
4689
4690 * c-common.c: Include gt-c-family-c-common.h.
4691 * c-pragma.c: Include gt-c-family-c-pragma.h.
4692\f
d353bf18 4693Copyright (C) 2010-2015 Free Software Foundation, Inc.
7bedc3a0 4694
4695Copying and distribution of this file, with or without modification,
4696are permitted in any medium without royalty provided the copyright
4697notice and this notice are preserved.