]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
Improve documentation of register constraints.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
41dbbb37
TS
12015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2 Bernd Schmidt <bernds@codesourcery.com>
3 James Norris <jnorris@codesourcery.com>
4 Cesar Philippidis <cesar@codesourcery.com>
5 Ilmir Usmanov <i.usmanov@samsung.com>
6 Jakub Jelinek <jakub@redhat.com>
7
8 * c.opt (fopenacc): New option.
9 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
10 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
11 New macros.
12 * c-common.h (c_finish_oacc_wait): New prototype.
13 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
14 (c_finish_oacc_wait): New function.
15 * c-pragma.c (oacc_pragmas): New variable.
16 (c_pp_lookup_pragma, init_pragma): Handle it.
17 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
18 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
19 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
20 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
21 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
22 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
23 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
24 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
25 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
26 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
27 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
28 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
29 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
30 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
31 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
32 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
33 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
34 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
35 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
36 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
37 PRAGMA_OACC_CLAUSE_WORKER.
38
5434dc07
MD
392015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
40
41 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
42 for the new option fstack-protector_explicit.
43 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
44 (handle_stack_protect_attribute): New function.
45
de1b5c17
MU
462015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
47
48 * c.opt: New option -Warray-bounds=.
49
adfac8df
JJ
502015-01-09 Michael Collison <michael.collison@linaro.org>
51
52 * array-notation-common.c: Include hash-set.h, machmode.h,
53 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
54 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
55 * c-ada-spec.c: Ditto.
56 * c-cilkplus.c: Ditto.
57 * c-common.c: Include input.h due to flattening of tree.h.
58 Define macro GCC_C_COMMON_C.
59 * c-common.h: Flatten tree.h header files into c-common.h.
60 Remove include of tree-core.h.
61 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
62 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
63 fold-const.h, wide-int.h, and inchash.h due to
64 flattening of tree.h.
65 * c-dump.c: Ditto.
66 * c-format.c: Flatten tree.h header files into c-common.h.
67 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
68 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
69 fold-const.h, wide-int.h, and inchash.h due to
70 flattening of tree.h.
71 * c-dump.c: Include hash-set.h, machmode.h,
72 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
73 fold-const.h, wide-int.h, and inchash.h due to
74 flattening of tree.h.
75 * c-format.c: Include hash-set.h, machmode.h,
76 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
77 fold-const.h, wide-int.h, inchash.h and real.h due to
78 flattening of tree.h.
79 * c-gimplify.c: Include hash-set.h, machmode.h,
80 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
81 fold-const.h, wide-int.h, and inchash.h due to
82 flattening of tree.h.
83 * cilk.c: Ditto.
84 * c-lex.c: Ditto.
85 * c-omp.c: Ditto.
86 * c-opts.c: Ditto.
87 * c-pch.c: Ditto.
88 * c-ppoutput.c: Ditto.
89 * c-pragma.c: Ditto.
90 * c-pretty-print.c: Ditto.
91 * c-semantics.c: Ditto.
92 * c-ubsan.c: Ditto.
93 * stub-objc.c: Ditto.
94
f5481fc4
JM
952015-01-08 Jason Merrill <jason@redhat.com>
96
97 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
98 do_ubsan_in_current_function.
99 (ubsan_maybe_instrument_reference_or_call): Likewise.
100 * c-ubsan.h: Declare it.
101
de35aa66
MS
1022015-01-08 Mike Stump <mikestump@comcast.net>
103
104 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
105
4a9a42ab
MP
1062015-01-07 Marek Polacek <polacek@redhat.com>
107
108 PR c/64440
109 * c-common.c (c_fully_fold_internal): Warn for division and modulo
110 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
111
2f42e5de
TS
1122015-01-05 Trevor Saunders <tsaunders@mozilla.com>
113
114 PR c++/31397
115 * c.opt (Wsuggest-override): New option.
116
5624e564
JJ
1172015-01-05 Jakub Jelinek <jakub@redhat.com>
118
119 Update copyright years.
120
5bd012f8
MP
1212015-01-05 Marek Polacek <polacek@redhat.com>
122
123 PR c/64423
124 * c-common.c (warn_array_subscript_with_type_char): Add location_t
125 parameter. Use it.
126 * c-common.h (warn_array_subscript_with_type_char): Update
127 declaration.
128
a7fa8d18
ESR
1292014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
130
131 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
132 Control macro with flag_sized_deallocation.
133
768952be
MU
1342014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
135
136 * c.opt (Wdiscarded-array-qualifiers): New option.
137
1f8d3e84
JJ
1382014-12-19 Jakub Jelinek <jakub@redhat.com>
139
140 PR preprocessor/63831
141 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
142 and __has_cpp_attribute here.
143 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
144 c_common_has_attribute.
145 * c-common.h (c_common_has_attribute): New prototype.
146 * c-lex.c (init_c_lex): Set cb->has_attribute to
147 c_common_has_attribute instead of cb_has_attribute.
148 (get_token_no_padding): New function.
149 (cb_has_attribute): Renamed to ...
150 (c_common_has_attribute): ... this. No longer static. Use
151 get_token_no_padding, require ()s, don't build TREE_LIST
152 unnecessarily, fix up formatting, adjust diagnostics, call
153 init_attributes.
154
20b06add
JM
1552014-12-15 Jason Merrill <jason@redhat.com>
156
157 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
158 (-Wsized-deallocation): New.
159 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
160 to on in C++14 and up.
161
94a073b2
JM
1622014-12-11 Jason Merrill <jason@redhat.com>
163
acaa5911
JM
164 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
165
94a073b2
JM
166 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
167 we aren't complaining about VLAs.
168
7fb66c15
MP
1692014-12-06 Marek Polacek <polacek@redhat.com>
170
171 PR tree-optimization/64183
172 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
173 shift-expression if it is integer_type_node. Use types_compatible_p.
174
b731b390
JJ
1752014-11-29 Jakub Jelinek <jakub@redhat.com>
176
177 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
178 last argument from create_tmp_var_raw and create_tmp_var calls.
179 * cilk.c (gimplify_cilk_spawn): Likewise.
180 * c-omp.c (c_finish_omp_atomic): Likewise.
181
6a4da643
MP
1822014-11-28 Marek Polacek <polacek@redhat.com>
183
184 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
185 instead of unsigned_type_node.
186
541e35a6
MP
1872014-11-28 Marek Polacek <polacek@redhat.com>
188
189 PR c/63862
190 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
191 to op1_utype.
192 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
193 expression to unsigned_type_node.
194
dcc97066
MW
1952014-11-20 Mark Wielaard <mjw@redhat.com>
196
197 PR debug/38757
198 * c-opts.c (set_std_c89): Set lang_hooks.name.
199 (set_std_c99): Likewise.
200 (set_std_c11): Likewise.
201 (set_std_cxx98): Likewise.
202 (set_std_cxx11): Likewise.
203 (set_std_cxx14): Likewise.
204 (set_std_cxx1z): Likewise.
205
aa7da51a
JJ
2062014-11-21 Jakub Jelinek <jakub@redhat.com>
207
208 PR target/63764
209 * c-common.h (convert_vector_to_pointer_for_subscript): Change
210 return type to bool.
009a3480 211 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
212 (convert_vector_to_pointer_for_subscript): Change return type to
213 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
214 and copy it into a TARGET_EXPR and use that instead of *vecp
215 directly.
216
538dd0b7
DM
2172014-11-19 David Malcolm <dmalcolm@redhat.com>
218
219 Merger of git branch "gimple-classes-v2-option-3".
220 * ChangeLog.gimple-classes: New.
221 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
222 from being just a vec<gimple> to a vec<gbind *>.
223
c39a5e99
JJ
2242014-11-18 Jakub Jelinek <jakub@redhat.com>
225
226 PR sanitizer/63813
227 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
228 argument to ptype, set type to TREE_TYPE (ptype). Don't call
229 get_pointer_alignment for non-pointers. Use ptype, or if it is
230 reference type, corresponding pointer type, as type of kind
231 argument.
232 (ubsan_maybe_instrument_reference,
233 ubsan_maybe_instrument_member_call): Adjust callers.
234
8537a4a9
MP
2352014-11-15 Marek Polacek <polacek@redhat.com>
236
237 PR middle-end/63884
238 * array-notation-common.c (is_sec_implicit_index_fn): Return false
239 for NULL fndecl.
240 (extract_array_notation_exprs): Return for NULL node.
241
2079956a
JM
2422014-11-12 Joseph Myers <joseph@codesourcery.com>
243
244 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
245 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
246
1304953e
JJ
2472014-11-12 Jakub Jelinek <jakub@redhat.com>
248
249 PR c/59708
250 * c-common.c (check_builtin_function_arguments): Handle
251 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
252
e5e44252
AK
2532014-11-10 Andi Kleen <ak@linux.intel.com>
254
255 PR c/60804
256 * c-common.h (check_no_cilk): Declare.
257 * cilk.c (get_error_location): New function.
258 (check_no_cilk): Dito.
259
e64b984d
AK
2602014-11-10 Andi Kleen <ak@linux.intel.com>
261
262 * cilk.c (recognize_spawn): Use expression location
263 for error message.
264
13c21655
PC
2652014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
266
267 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
268
42fd12b1
ESR
2692014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
270
271 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
272 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
273 (__cpp_range_based_for, __cpp_initializer_lists,
274 __cpp_delegating_constructors, __cpp_nsdmi,
275 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
276 for C++11; (__cpp_attribute_deprecated): Remove in favor of
277 __has_cpp_attribute.
278 * c-lex.c (cb_has_attribute): New callback CPP function;
279 (init_c_lex): Set has_attribute callback.
280
6f450181
RB
2812014-11-04 Richard Biener <rguenther@suse.de>
282
283 * c-common.c (shorten_compare): Do not shorten mixed
284 DFP and non-DFP compares.
285
26f0e1d6
ESR
2862014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
287
288 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
289 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
290 Commentary and rearrangement of tests.
291 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
292 Commentary and rearrangement of tests.
293 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
294 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
295
ef4bddc2
RS
2962014-10-29 Richard Sandiford <richard.sandiford@arm.com>
297
298 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
299 enum from machine_mode.
300
c582198b
AM
3012014-10-28 Andrew MacLeod <amacleod@redhat.com>
302
adfac8df
JJ
303 * c-common.c: Adjust include files.
304 * c-gimplify.c: Ditto.
305 * cilk.c: Ditto.
306 * c-pragma.c: Ditto.
307 * c-ubsan.c: Ditto.
c582198b 308
60393bbc
AM
3092014-10-27 Andrew MacLeod <amacleod@redhat.com>
310
311 * c-gimplify.c: Adjust include files.
312
d723bb7c
MLI
3132014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
314
315 PR c++/53061
316 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
317 c_common_initialize_diagnostics.
318 * c-common.h: Likewise.
319
90f3520e
MP
3202014-10-24 Marek Polacek <polacek@redhat.com>
321
322 PR c/56980
323 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
324 print "struct"/"union"/"enum" for typedefed names.
325
59d7607a
MP
3262014-10-23 Marek Polacek <polacek@redhat.com>
327
328 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
329 in unsigned type.
330
d95a2703
JJ
3312014-10-22 Jakub Jelinek <jakub@redhat.com>
332 Yury Gribov <y.gribov@samsung.com>
333
334 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
335 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
336 instead of flag_sanitize_recover as bool flag.
337
8e6ef852
KY
3382014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
339
340 * cilk.c: Revert previous change.
341
948cf550
IZ
3422014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
343
344 PR c/63307
345 * cilk.c: Include vec.h.
346 (struct cilk_decls): New structure.
347 (wrapper_parm_cb): Split this function to...
348 (fill_decls_vec): ...this...
349 (create_parm_list): ...and this.
350 (compare_decls): New function.
351 (for_local_cb): Remove.
352 (wrapper_local_cb): Ditto.
353 (build_wrapper_type): For now first traverse and fill vector of
354 declarations then sort it and then deal with sorted vector.
355 (cilk_outline): Ditto.
356 (declare_one_free_variable): Ditto.
357
92574c7c
MP
3582014-10-17 Marek Polacek <polacek@redhat.com>
359
360 * c-opts.c (c_common_post_options): Set warn_implicit_int.
361 * c.opt (Wimplicit-int): Initialize to -1.
362
83685514
AM
3632014-10-16 Andrew MacLeod <amacleod@redhat.com>
364
365 * c-pragma.c: Adjust include files.
366 * c-semantics.c: Likewise.
367
5b8300ea
DD
3682014-10-16 DJ Delorie <dj@redhat.com>
369
370 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
371 multiples of bytes.
372
5f83e90b
JM
3732014-10-14 Jason Merrill <jason@redhat.com>
374
375 PR c++/63455
376 * c-common.h (CPP_PREPARSED_EXPR): New.
377 (N_CP_TTYPES): Adjust.
378
d73326ca
MP
3792014-10-15 Marek Polacek <polacek@redhat.com>
380
381 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
382
78a7c317
DD
3832014-10-14 DJ Delorie <dj@redhat.com>
384
385 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
386 types, not just __int128.
387 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
388 types, not just __int128.
389 (cpp_atomic_builtins): Round pointer sizes up.
390 (type_suffix): Use type precision, not specific types.
391 * c-common.c (c_common_reswords): Remove __int128 special case.
392 (c_common_type_for_size): Check for all __intN types, not just
393 __int128.
394 (c_common_type_for_mode): Likewise.
395 (c_common_signed_or_unsigned_type): Likewise.
396 (c_build_bitfield_integer_type): Likewise.
397 (c_common_nodes_and_builtins): Likewise.
398 (keyword_begins_type_specifier): Likewise.
399 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
400 __intN variants.
401
2a22f99c
TS
4022014-10-12 Trevor Saunders <tsaunders@mozilla.com>
403
404 * c-common.c: Use hash_table instead of hashtab.
405
2a8ef767
ESR
4062014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
407
adfac8df 408 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
409 C++11 section.
410
3c9aabbd
MG
4112014-10-03 Marc Glisse <marc.glisse@inria.fr>
412
413 PR c++/54427
414 PR c++/57198
415 PR c++/58845
416 * c-common.c (warn_logical_operator): Punt for vectors.
417
a15f7cb8
ESR
4182014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
419
420 Implement SD-6: SG10 Feature Test Recommendations
421 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
422 macros and the __has_header macro.
423
8d0cf15e
JM
4242014-09-30 Jason Merrill <jason@redhat.com>
425
dd5d5481
JM
426 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
427 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
428 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
429
b752325e
JM
430 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
431 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
432
8d0cf15e
JM
433 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
434 * c-common.c (c_common_reswords): Remove __is_convertible_to.
435
083e891e
MP
4362014-09-24 Marek Polacek <polacek@redhat.com>
437
438 PR c/61405
439 PR c/53874
440 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
441
7861b648
AK
4422014-09-23 Andi Kleen <ak@linux.intel.com>
443
444 * c-common.c (handle_no_reorder_attribute): New function.
445 (c_common_attribute_table): Add no_reorder attribute.
446
9a79452d
JM
4472014-09-22 Joseph Myers <joseph@codesourcery.com>
448
449 * c-cppbuiltin.c (c_cpp_builtins): Define
450 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
451 modes.
452
dd69f047
JM
4532014-09-18 Joseph Myers <joseph@codesourcery.com>
454
455 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
456 for supported floating-point modes.
457
737a4826
MLI
4582014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
459
460 * c.opt (Wpsabi): Use LangEnabledBy.
461 * c-opts.c (c_common_handle_option): Do not handle here.
462
8cc4b7a2
JM
4632014-09-12 Joseph Myers <joseph@codesourcery.com>
464
465 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
466 macros for floating-point modes.
467
179b5a55
MG
4682014-09-11 Marc Glisse <marc.glisse@inria.fr>
469
470 PR target/58757
471 * c-cppbuiltin.c (builtin_define_float_constants): Correct
472 __*_DENORM_MIN__ without denormals.
473
570a11fe
JJ
4742014-09-10 Jakub Jelinek <jakub@redhat.com>
475
476 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
477 ubsan_instrument_vla, ubsan_instrument_return): Adjust
478 ubsan_create_data callers.
479 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
480 index is constant or BIT_AND_EXPR with constant mask and is
481 small enough for the bound.
482 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
483 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
484
b559c810
MLI
4852014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
486
487 * c.opt: Add CppReason to various flags.
488 (Wdate-time): Re-sort.
489 * c-common.c: Include c-common.h earlier.
490 (struct reason_option_codes_t): Delete.
491 (c_option_controlling_cpp_error): Prefix global type and struct
492 with cpp_.
493
1ef33fd4
MLI
4942014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
495
496 * c.opt (Wnormalized): New.
497 (Wnormalized=): Use Enum and Reject Negative.
498 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
499
66bb34c0
JM
5002014-09-08 Joseph Myers <joseph@codesourcery.com>
501
502 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
503 digits of floating-point modes if -fbuilding-libgcc.
504
53d68b9f
JM
5052014-09-05 Joseph Myers <joseph@codesourcery.com>
506
507 * c-cppbuiltin.c (c_cpp_builtins): Also define
508 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
509 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
510 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
511 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
512 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
513 __LIBGCC_STACK_GROWS_DOWNWARD__,
514 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
515 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
516 __LIBGCC_DWARF_FRAME_REGISTERS__,
517 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
518 __LIBGCC_STACK_POINTER_REGNUM__ and
519 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
520 (builtin_define_with_value): Handle backslash-escaping in string
521 macro values.
522
f65586dc
RB
5232014-09-05 Richard Biener <rguenther@suse.de>
524
525 PR middle-end/63148
526 * c-format.c (check_format_arg): Properly handle
527 effectively signed POINTER_PLUS_EXPR offset.
528
2b71f4a4
MLI
5292014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
530
531 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
532 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
533 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
534 and Init.
535 * c-opts.c (c_common_handle_option): Do not handle here.
536 (sanitize_cpp_opts): Likewise.
537 * c-common.c (struct reason_option_codes_t): Handle
538 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
539
d2e4feca
MP
5402014-09-03 Marek Polacek <polacek@redhat.com>
541
542 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
543
9a771876
JJ
5442014-09-02 Jakub Jelinek <jakub@redhat.com>
545 Balaji V. Iyer <balaji.v.iyer@intel.com>
546 Igor Zamyatin <igor.zamyatin@intel.com>
547
548 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
549 * c-common.c (c_common_reswords): Added _Cilk_for.
550 * c-common.h (enum rid): Added RID_CILK_FOR.
551 (cilk_for_number_of_iterations): Add declaration.
552 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
553 CILK_FOR.
554 * c-pragma.c (init_pragma): Register "grainsize" pragma.
555 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
556
81b5d104
MLI
5572014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
558
559 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
560 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
561 Wundef): Use CPP, Var and Init.
562 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
563
b753b37b
MLI
5642014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
565
566 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
567 * c-opts.c (c_common_handle_option): Do not handle here.
568
028aee17
JM
5692014-08-25 Jason Merrill <jason@redhat.com>
570
571 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
572 -std=c++14 and -std=gnu++14, rather than the reverse.
573 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
574 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
575 * c-common.h (cxx_dialect): Remove cxx1y.
576
e4276ba5
ESR
5772014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
578
579 * c-common.h (enum cxx_dialect): Add cxx14.
580 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
581 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
582 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
583
a545cacd
JM
5842014-08-22 Jason Merrill <jason@redhat.com>
585
586 * c.opt (std=gnu++17): Fix alias.
587
59ea0364
MP
5882014-08-22 Marek Polacek <polacek@redhat.com>
589
590 PR c++/62199
591 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
592 check for vector types. Drop LHS argument.
593 * c-common.h (warn_logical_not_parentheses): Adjust.
594
596e808c
MLI
5952014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
596
597 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
598 (Wmultichar): Likewise.
599 (Wdate-time): Use C-family languages instead of Common. Use CPP
600 and Var.
601 * c-opts.c (c_common_handle_option): Do not handle the above
602 options here.
603 (sanitize_cpp_opts): Likewise.
604
18767f65
MLI
6052014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
606
607 PR fortran/44054
608 * c-opts.c: Include tree-diagnostics.h.
609 (c_diagnostic_finalizer): New.
610 (c_common_initialize_diagnostics): Use it.
611
b4413594
MLI
6122014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
613
614 PR preprocessor/51303
615 * c-common.c (struct reason_option_codes_t option_codes):
616 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
617
43f9a13c
MLI
6182014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
619
620 PR c/60975
621 PR c/53063
622 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
623 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
624 (c_common_post_options): Call init_global_opts_from_cpp.
625 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
626
04159acf
MP
6272014-08-19 Marek Polacek <polacek@redhat.com>
628
629 PR c++/62153
630 * c-common.c (maybe_warn_bool_compare): New function.
631 * c-common.h (maybe_warn_bool_compare): Declare.
632 * c.opt (Wbool-compare): New option.
633
35aff4fb
MP
6342014-08-19 Marek Polacek <polacek@redhat.com>
635
636 * c.opt (Wc99-c11-compat): New option.
637
177cce46
MP
6382014-08-19 Marek Polacek <polacek@redhat.com>
639
640 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
641 to warn_c90_c99_compat.
642 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
643 to -1.
644
6ae9194f
MLI
6452014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
646 Steven Bosscher <steven@gcc.gnu.org>
647
648 PR c/52952
649 * c-format.c: Add extra_arg_loc and format_string_loc to struct
650 format_check_results.
651 (check_function_format): Use true and add comment for boolean
652 argument.
653 (finish_dollar_format_checking): Use explicit location when warning.
654 (check_format_info): Likewise.
655 (check_format_arg): Set extra_arg_loc and format_string_loc.
656 (check_format_info_main): Use explicit location when warning.
657 (check_format_types): Pass explicit location.
658 (format_type_warning): Likewise.
659
8e54f6d3
MLI
6602014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
661
662 PR fortran/44054
663 * c-format.c: Handle Fortran flags.
664
cd4e76fc
IZ
6652014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
666
667 PR other/61962
668 * array-notation-common.c (find_rank): Added handling for other
669 types of references.
670
f3bede71
MP
6712014-08-10 Marek Polacek <polacek@redhat.com>
672
673 PR c/51849
674 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
675 * c.opt (Wc90-c99-compat): Add option.
676
9f25a338
TS
6772014-08-07 Trevor Saunders <tsaunders@mozilla.com>
678
679 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
680
62e4eb35
MP
6812014-08-03 Marek Polacek <polacek@redhat.com>
682
683 * c-common.c (check_case_value): Add location_t parameter. Use it.
684 (c_add_case_label): Pass loc to check_case_value.
685
b787e7a2
TS
6862014-08-02 Trevor Saunders <tsaunders@mozilla.com>
687
688 * cilk.c: Use hash_map instead of pointer_map.
689
6e2830c3
TS
6902014-08-02 Trevor Saunders <tsaunders@mozilla.com>
691
692 * c-gimplify.c: Use hash_set instead of pointer_set.
693
a7ee52fb
IZ
6942014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
695
696 PR middle-end/61455
697 * array-notation-common.c (extract_array_notation_exprs): Handling
698 of DECL_EXPR added.
699
944fa280
JJ
7002014-08-01 Jakub Jelinek <jakub@redhat.com>
701
702 * c-common.h (min_align_of_type): Removed prototype.
703 * c-common.c (min_align_of_type): Removed.
704 * c-ubsan.h (ubsan_maybe_instrument_reference,
705 ubsan_maybe_instrument_member_call): New prototypes.
706 * c-ubsan.c: Include stor-layout.h and builtins.h.
707 (ubsan_maybe_instrument_reference_or_call,
708 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
709 functions.
710
b4dfdc11
MG
7112014-07-31 Marc Glisse <marc.glisse@inria.fr>
712
713 PR c++/60517
714 * c.opt (-Wreturn-local-addr): Move to common.opt.
715
a41844e5
JM
7162014-07-30 Jason Merrill <jason@redhat.com>
717
718 PR c++/61659
719 PR c++/61687
720 Revert:
721 * c.opt (-fuse-all-virtuals): New.
722
976d5a22
TT
7232014-07-30 Tom Tromey <tromey@redhat.com>
724
725 PR c/59855
726 * c.opt (Wdesignated-init): New option.
727 * c-common.c (c_common_attribute_table): Add "designated_init".
728 (handle_designated_init): New function.
729
cdc94aca
MP
7302014-07-24 Marek Polacek <polacek@redhat.com>
731
732 PR c/57653
733 * c-opts.c (c_finish_options): If -imacros is in effect, return.
734
f41373b6
DS
7352014-07-16 Dodji Seketeli <dodji@redhat.com>
736
737 PR preprocessor/60723 - missing system-ness marks for macro tokens
738 * c-ppoutput.c (struct print::prev_was_system_token): New data
739 member.
740 (init_pp_output): Initialize it.
741 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
742 (do_line_change): Return a flag saying if a line marker was
743 emitted or not.
744 (scan_translation_unit): Detect if the system-ness of the token we
745 are about to emit is different from the one of the previously
746 emitted token. If so, emit a line marker. Avoid emitting useless
747 adjacent line markers. Avoid emitting line markers for tokens
748 originating from the expansion of built-in macros.
749 (scan_translation_unit_directives_only): Adjust.
750
4d661eaa
MP
7512014-07-15 Marek Polacek <polacek@redhat.com>
752
753 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
754 TYPE_MAX_VALUE is NULL.
755
b108f48f
JJ
7562014-07-14 Jakub Jelinek <jakub@redhat.com>
757
758 PR middle-end/61294
759 * c.opt (Wmemset-transposed-args): New warning.
760
c0221884
JM
7612014-07-10 Jason Merrill <jason@redhat.com>
762
763 PR c++/61659
764 PR c++/61687
765 * c.opt (-fuse-all-virtuals): New.
766
63dfbb95
RB
7672014-07-09 Richard Biener <rguenther@suse.de>
768
769 PR c-family/61741
770 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
771 using unsigned arithmetic if overflow does not wrap instead of
772 if overflow is undefined.
773
773ec47f
MP
7742014-07-06 Marek Polacek <polacek@redhat.com>
775
776 PR c/6940
777 * c.opt (Wsizeof-array-argument): New option.
778
00a7ba58
JJ
7792014-07-03 Jakub Jelinek <jakub@redhat.com>
780
781 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
782 comments->count <= 1, as comments->entries might be NULL.
783
52ec0ea3
MP
7842014-07-01 Marek Polacek <polacek@redhat.com>
785
786 * c.opt (Wint-conversion): New option.
787
d5c3d343
MP
7882014-07-01 Marek Polacek <polacek@redhat.com>
789
790 PR c/58286
791 * c.opt (Wincompatible-pointer-types): New option.
792
6e7ceb17
PC
7932014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
794
795 PR c++/51400
796 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
797 Do not discard TYPE_QUALS of type.
798
da73100b
JM
7992014-06-26 Jason Merrill <jason@redhat.com>
800
801 * c-common.h (enum cxx_dialect): Add cxx1z.
802 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
803 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
804
08eedf75
TJ
8052014-06-26 Teresa Johnson <tejohnson@google.com>
806
807 * c-common.h (get_dump_info): Declare.
808 * c-gimplify.c (c_genericize): Use saved dump files.
809 * c-opts.c (c_common_parse_file): Begin and end dumps
810 once around parsing invocation.
811 (get_dump_info): New function.
812
7b56b2f8
MP
8132014-06-23 Marek Polacek <polacek@redhat.com>
814 Andrew MacLeod <amacleod@redhat.com>
815
816 PR c/61553
817 * c-common.c (get_atomic_generic_size): Don't segfault if the
818 type doesn't have a size.
819
0e37a2f3
MP
8202014-06-20 Marek Polacek <polacek@redhat.com>
821
822 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
823 (ubsan_walk_array_refs_r): New function.
824 (c_genericize): Instrument array bounds.
825 * c-ubsan.c: Include "internal-fn.h".
826 (ubsan_instrument_division): Mark instrumented arrays as having
827 side effects. Adjust ubsan_type_descriptor call.
828 (ubsan_instrument_shift): Likewise.
829 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
830 (ubsan_instrument_bounds): New function.
831 (ubsan_array_ref_instrumented_p): New function.
832 (ubsan_maybe_instrument_array_ref): New function.
833 * c-ubsan.h (ubsan_instrument_bounds): Declare.
834 (ubsan_array_ref_instrumented_p): Declare.
835 (ubsan_maybe_instrument_array_ref): Declare.
836
8372014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
838
839 PR lto/61123
840 * c.opt (fshort-enums): Add to LTO.
841 * c.opt (fshort-wchar): Likewise.
842
5c3d09f7
MP
8432014-06-16 Marek Polacek <polacek@redhat.com>
844
845 PR c/60439
846 * c.opt (Wswitch-bool): Add Var.
847
9cf32741
JJ
8482014-06-12 Jakub Jelinek <jakub@redhat.com>
849
850 PR middle-end/61486
851 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
852 #pragma omp target teams or
853 #pragma omp {,target }teams distribute simd.
854
62984918
JM
8552014-06-12 Jason Merrill <jason@redhat.com>
856
857 * c.opt (Wabi=, fabi-compat-version): New.
858 * c-opts.c (c_common_handle_option): Handle -Wabi=.
859 (c_common_post_options): Handle flag_abi_compat_version default.
860 Disallow -fabi-compat-version=1.
861 * c-common.h (abi_version_crosses): New.
862
f961457f
JH
8632014-06-11 Jan Hubicka <hubicka@ucw.cz>
864
adfac8df 865 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
866 section names that are no longer trees.
867
92d28cbb
JJ
8682014-06-10 Jakub Jelinek <jakub@redhat.com>
869
870 PR fortran/60928
871 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
872 (omp_pragmas): ... back here.
873
742938c9
MP
8742014-06-05 Marek Polacek <polacek@redhat.com>
875
876 PR c/49706
877 * c-common.c (warn_logical_not_parentheses): New function.
878 * c-common.h (warn_logical_not_parentheses): Declare.
879 * c.opt (Wlogical-not-parentheses): New option.
880
9d548dfb
MP
8812014-06-04 Marek Polacek <polacek@redhat.com>
882
883 PR c/30020
884 * c-common.c (check_case_bounds): Add location parameter.
885 Use it.
886 (c_add_case_label): Pass loc to check_case_bounds.
887
fedfecef
MP
8882014-06-03 Marek Polacek <polacek@redhat.com>
889
890 PR c/60439
891 * c.opt (Wswitch-bool): New option.
892
f6a7cffc
TS
8932014-05-22 Thomas Schwinge <thomas@codesourcery.com>
894
040d18b6
TS
895 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
896 Remove prototypes.
897 (record_types_used_by_current_var_decl): Move prototype to where
898 it belongs.
899
f6a7cffc
TS
900 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
901 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
902 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
903
632f2871
RS
9042014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
905
906 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
907 * c-common.c (c_common_nodes_and_builtins): Don't initialize
908 void_zero_node.
909 * c-pretty-print.c (pp_c_void_constant): New function.
910 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
911 (c_pretty_printer::expression): Handle VOID_CST.
912 * cilk.c (extract_free_variables): Likewise.
913 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
914 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
915
766090c2
TS
9162014-05-17 Trevor Saunders <tsaunders@mozilla.com>
917
918 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
919 * c-pragma.c (push_alignment): Adjust.
920 (handle_pragma_push_options): Likewise.
921
661a0813
MP
9222014-05-09 Marek Polacek <polacek@redhat.com>
923
924 PR c/50459
925 * c-common.c (check_user_alignment): Return -1 if alignment is error
926 node.
927 (handle_aligned_attribute): Don't call default_conversion on
928 FUNCTION_DECLs.
929 (handle_vector_size_attribute): Likewise.
930 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
931 (handle_sentinel_attribute): Call default_conversion and allow even
932 integral types as an argument.
933
2793eeab
MP
9342014-05-08 Marek Polacek <polacek@redhat.com>
935
936 PR c/61053
937 * c-common.c (min_align_of_type): New function factored out from...
938 (c_sizeof_or_alignof_type): ...here.
939 * c-common.h (min_align_of_type): Declare.
940
f827930a
MP
9412014-05-08 Marek Polacek <polacek@redhat.com>
942
943 PR c/61077
944 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
945 parameter type of main.
946
ca49b74e
DD
9472014-05-07 DJ Delorie <dj@redhat.com>
948
949 * c-cppbuiltin.c (print_bits_of_hex): New.
950 (builtin_define_type_minmax): Print values using hex so as not to
951 require a pre-computed list of string values.
952
1d60af08
KZ
9532014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
954 Mike Stump <mikestump@comcast.net>
955 Richard Sandiford <rdsandiford@googlemail.com>
956
957 * c-ada-spec.c: Include wide-int.h.
958 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
959 (dump_generic_ada_node): Use wide-int interfaces.
960 * c-common.c: Include wide-int-print.h.
961 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
962 (pointer_int_sum): Use wide-int interfaces.
963 (c_common_nodes_and_builtins): Use make_int_cst.
964 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
965 (handle_alloc_size_attribute): Use wide-int interfaces.
966 (get_nonnull_operand): Likewise.
967 * c-format.c (get_constant): Use tree_fits_uhwi_p.
968 * c-lex.c: Include wide-int.h.
969 (narrowest_unsigned_type): Take a widest_int rather than two
970 HOST_WIDE_INTs.
971 (narrowest_signed_type): Likewise.
972 (interpret_integer): Update accordingly. Use wide-int interfaces.
973 (lex_charconst): Use wide-int interfaces.
974 * c-pretty-print.c: Include wide-int.h.
975 (pp_c_integer_constant): Use wide-int interfaces.
976 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
977 INT_CST_LT_UNSIGNED.
978
b15458be
RB
9792014-05-06 Richard Biener <rguenther@suse.de>
980
981 * c-opts.c (c_common_post_options): For -freestanding,
982 -fno-hosted and -fno-builtin disable pattern recognition
983 if not enabled explicitely.
984
6577374e
MP
9852014-05-02 Marek Polacek <polacek@redhat.com>
986
987 * c.opt (Wsizeof-pointer-memaccess): Describe option.
988
d00887e8
MP
9892014-05-01 Marek Polacek <polacek@redhat.com>
990
991 PR c/43245
992 * c.opt (Wdiscarded-qualifiers): Add.
993
f8ed5150
MP
9942014-04-30 Marek Polacek <polacek@redhat.com>
995
996 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
997 INT_MIN / -1 sanitization only for integer types.
998
45484dcf
MP
9992014-04-25 Marek Polacek <polacek@redhat.com>
1000
1001 PR c/18079
1002 * c-common.c (handle_noinline_attribute): Warn if the attribute
1003 conflicts with always_inline attribute.
1004 (handle_always_inline_attribute): Warn if the attribute conflicts
1005 with noinline attribute.
1006
38e514c0
MP
10072014-04-25 Marek Polacek <polacek@redhat.com>
1008
1009 PR c/60156
1010 * c-common.c (check_main_parameter_types): Warn about variadic main.
1011
44875f92
MS
10122014-04-24 Mike Stump <mikestump@comcast.net>
1013
1014 * c.opt (Wshadow-ivar): Default to on.
1015
dcaaa5a0
DP
10162014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1017
1018 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1019
c07d7c02
MP
10202014-04-23 Marek Polacek <polacek@redhat.com>
1021
1022 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1023
1c33c9b7
JJ
10242014-04-22 Jakub Jelinek <jakub@redhat.com>
1025
1026 PR sanitizer/60275
1027 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1028 if flag_sanitize_undefined_trap_on_error.
1029 (ubsan_instrument_division, ubsan_instrument_shift,
1030 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1031 if !flag_sanitize_recover.
1032
793c625f
MG
10332014-04-22 Marc Glisse <marc.glisse@inria.fr>
1034
1035 PR libstdc++/43622
1036 * c-common.c (registered_builtin_types): Make non-static.
1037 * c-common.h (registered_builtin_types): Declare.
1038
b0f1bf36
RB
10392014-04-14 Richard Biener <rguenther@suse.de>
1040 Marc Glisse <marc.glisse@inria.fr>
1041
1042 PR c/60819
1043 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1044 apply may-alias the scalar pointer type when applicable.
1045
3b07fa4a
IZ
10462014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1047
1048 PR middle-end/60467
1049 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1050 as possible argument for Cilk_spawn.
1051
cbbd2b1c
TB
10522014-04-11 Tobias Burnus <burnus@net-b.de>
1053
1054 PR c/60194
1055 * c.opt (Wformat-signedness): Add
1056 * c-format.c(check_format_types): Use it.
1057
6415bd5d
JM
10582014-04-11 Jason Merrill <jason@redhat.com>
1059
1060 PR c++/57926
1061 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1062 default_conversion for an array argument.
1063
6525783a
MP
10642014-04-08 Marek Polacek <polacek@redhat.com>
1065
1066 PR sanitizer/60745
1067 * c-ubsan.c: Include asan.h.
1068 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1069
880a467b
NS
10702014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1071
1072 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1073
7b59ff2d
MP
10742014-04-02 Marek Polacek <polacek@redhat.com>
1075
1076 * c-common.h (c_expand_expr): Remove declaration.
1077
8edbfaa6
JJ
10782014-03-28 Jakub Jelinek <jakub@redhat.com>
1079
1080 PR c++/60689
1081 * c-common.c (add_atomic_size_parameter): When creating new
1082 params vector, push the size argument first.
1083
07d72e1d
JJ
10842014-03-26 Jakub Jelinek <jakub@redhat.com>
1085
1086 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1087 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1088 ubsan_create_data callers.
1089
b35e0fa0
JJ
10902014-03-22 Jakub Jelinek <jakub@redhat.com>
1091
1092 PR debug/60603
1093 * c-opts.c (c_finish_options): Restore cb_file_change call to
1094 <built-in>.
1095
39a1ebb3
JJ
10962014-03-13 Jakub Jelinek <jakub@redhat.com>
1097
1098 PR middle-end/36282
1099 * c-pragma.c (apply_pragma_weak): Only look at
1100 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1101 DECL_ASSEMBLER_NAME_SET_P (decl).
1102 (maybe_apply_pending_pragma_weaks): Exit early if
1103 vec_safe_is_empty (pending_weaks) rather than only when
1104 !pending_weaks.
1105 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1106 set assembler name back to NULL afterwards.
1107
a07f6ed2
JM
11082014-03-11 Jason Merrill <jason@redhat.com>
1109
1110 * c.opt: Add -std=gnu++14.
1111
75b107f5
IB
11122014-03-11 Ian Bolton <ian.bolton@arm.com>
1113
1114 * c-opts.c (c_common_post_options): Don't override
1115 -ffp-contract=fast if unsafe-math-optimizations is on.
1116
f42c637e
PM
11172014-03-08 Paulo Matos <paulo@matos-sorge.com>
1118
1119 * c.opt: Enable LTO FE for fshort-double.
1120
70e24808
JM
11212014-03-07 Jason Merrill <jason@redhat.com>
1122
1123 * c.opt: Add -std=c++14.
1124
3af9c5e9
MP
11252014-03-06 Marek Polacek <polacek@redhat.com>
1126
1127 PR c/60197
1128 * cilk.c (contains_cilk_spawn_stmt): New function.
1129 (contains_cilk_spawn_stmt_walker): Likewise.
1130 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1131 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1132
b3bdf019
JJ
11332014-03-03 Jakub Jelinek <jakub@redhat.com>
1134
1135 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1136 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1137 even when flag_preprocess_only.
1138
ca7e759d
JM
11392014-02-26 Jason Merrill <jason@redhat.com>
1140
1141 PR c++/59231
1142 PR c++/11586
1143 * c-common.c (shorten_compare): Don't check
1144 c_inhibit_evaluation_warnings.
1145
28e41874
JJ
11462014-02-19 Jakub Jelinek <jakub@redhat.com>
1147
cca615af
JJ
1148 PR c/37743
1149 * c-common.c (c_common_nodes_and_builtins): When initializing
1150 c_uint{16,32,64}_type_node, also set corresponding
1151 uint{16,32,64}_type_node to the same value.
1152
28e41874
JJ
1153 PR c++/60267
1154 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1155 for PRAGMA_IVDEP if flag_preprocess_only.
1156
c2bf53a1
JJ
11572014-02-12 Jakub Jelinek <jakub@redhat.com>
1158
1159 PR c/60101
1160 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1161 if false, add ADD itself, rather than vice versa.
1162 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1163 copy. For SAVE_EXPR, only call merge_tlist once.
1164
8fcbce72
JJ
11652014-02-08 Jakub Jelinek <jakub@redhat.com>
1166
1167 PR middle-end/60092
1168 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1169 and tree_to_uhwi.
1170 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1171 functions.
1172 (c_common_attribute_table): Add alloc_align and assume_aligned
1173 attributes.
1174
0a756a3f
MP
11752014-02-06 Marek Polacek <polacek@redhat.com>
1176
1177 PR c/60087
1178 * c-common.c (warn_for_sign_compare): Call warning_at with location
1179 instead of warning.
1180
7ec4847a
MP
11812014-02-05 Marek Polacek <polacek@redhat.com>
1182
1183 PR c/53123
1184 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1185 statement.
1186
66f20604
MP
11872014-02-04 Marek Polacek <polacek@redhat.com>
1188
1189 PR c/60036
1190 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1191 SAVE_EXPR.
1192
5d77fb19
MG
11932014-02-03 Marc Glisse <marc.glisse@inria.fr>
1194
1195 PR c++/53017
1196 PR c++/59211
1197 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1198 handle_vector_size_attribute, handle_nonnull_attribute): Call
1199 default_conversion on the attribute argument.
1200 (handle_nonnull_attribute): Increment the argument number.
1201
81e5eca8
MP
12022014-01-31 Marek Polacek <polacek@redhat.com>
1203
1204 PR c/59963
1205 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1206 build_function_call_vec.
1207 (resolve_overloaded_builtin): Likewise.
1208 * c-common.h (build_function_call_vec): Adjust declaration.
1209
68fca595
MP
12102014-01-30 Marek Polacek <polacek@redhat.com>
1211
1212 PR c/59940
1213 * c-common.h (unsafe_conversion_p): Adjust declaration.
1214 (warnings_for_convert_and_check): Likewise.
1215 (convert_and_check): Likewise.
1216 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1217 expansion_point_location_if_in_system_header on it.
1218 (warnings_for_convert_and_check): Add location parameter. Call
1219 expansion_point_location_if_in_system_header on it. Use it.
1220 (convert_and_check): Add location parameter. Use it.
1221 (conversion_warning): Likewise.
1222 (c_add_case_label): Adjust convert_and_check calls.
1223 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1224
b72271b9
BI
12252014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1226
1227 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1228 flag_cilkplus.
1229 * c-pragma.c (init_pragma): Likewise.
1230 * c.opt: Likewise.
1231
393e8e8b
MP
12322014-01-23 Marek Polacek <polacek@redhat.com>
1233
1234 PR c/59846
1235 * c-common.c (shorten_compare): Add location_t parameter.
1236 * c-common.h (shorten_binary_op): Adjust declaration.
1237
f04dda30
MP
12382014-01-23 Marek Polacek <polacek@redhat.com>
1239
1240 PR c/58346
1241 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1242 * c-common.h: Declare it.
1243
621955cb
EB
12442014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1245
1246 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1247 * c-ada-spec.c (dump_ads): Likewise.
1248 (cpp_check): Likewise.
1249 (dump_ada_specs): Likewise.
1250
12512014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
1252
1253 PR c++/49718
1254 * c-common.c (handle_no_instrument_function_attribute): Allow
1255 no_instrument_function attribute in class member
1256 definition/declaration.
1257
241f845a
JJ
12582014-01-15 Jakub Jelinek <jakub@redhat.com>
1259
1260 PR c/58943
1261 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1262 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1263 being COMPOUND_EXPR.
1264 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1265 operand a SAVE_EXPR and second MODIFY_EXPR.
1266
e83b8e2e
JJ
12672014-01-09 Jakub Jelinek <jakub@redhat.com>
1268
1269 PR target/58115
1270 * c-pch.c (c_common_write_pch): Call
1271 prepare_target_option_nodes_for_pch.
1272
23a5b65a
RS
12732014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1274
1275 Update copyright years
1276
f9030485
RS
12772014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1278
1279 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1280 the copyright notice.
1281
f2aa696b
EB
12822013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1283
1284 * c-ada-spec.c (print_constructor): New function.
1285 (print_destructor): Retrieve the origin of the destructor.
1286 (print_ada_declaration): Revamp handling of constructors/destructors.
1287
1f26ac87
JM
12882013-12-23 Stuart Hastings <stuart@apple.com>
1289 Bill Maddox <maddox@google.com>
1290 Jason Merrill <jason@redhat.com>
1291
1292 * c.opt: Add -fdeclone-ctor-dtor.
1293 * c-opts.c (c_common_post_options): Default to on iff -Os.
1294
41958c28
BI
12952013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1296
1297 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1298 attribute.
1299 * c-pragma.h (enum pragma_cilk_clause): Remove.
1300 (enum pragma_omp_clause): Added the following fields:
1301 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1302 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1303 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1304 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1305 PRAGMA_CILK_CLAUSE_UNIFORM.
1306
1307
12893402
BI
13082013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1309
1310 * cilk.c (cilk_outline): Made this function non-static.
1311 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1312 (create_cilk_wrapper): Added a new parameter: a function pointer.
1313 (c_install_body_w_frame_cleanup): Remove
1314 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1315 * c-common.h (cilk_outline): New prototype.
1316 (gimplify_cilk_spawn): Removed two parameters.
1317 (cilk_install_body_with_frame_cleanup): New prototype.
1318 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1319 CILK_SPAWN_STMT case.
1320
085b42ed
BS
13212013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1322
2ce064c3
BS
1323 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1324
085b42ed
BS
1325 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1326 (int_array_type_node): Remove.
1327 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1328
9e36c9ed
MP
13292013-12-05 Marek Polacek <polacek@redhat.com>
1330
1331 PR c/52023
1332 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1333 [ADJUST_FIELD_ALIGN].
1334
296674db
JM
13352013-12-04 Joseph Myers <joseph@codesourcery.com>
1336
1337 PR c/52023
1338 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1339 and check field alignment if set.
1340 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1341 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1342
31e071ae
MP
13432013-12-04 Jakub Jelinek <jakub@redhat.com>
1344 Marek Polacek <polacek@redhat.com>
1345
1346 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1347 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1348
d7947e19
L
13492013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1350
1351 PR c/59309
1352 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1353 arguments.
1354
fad7652e
JJ
13552013-11-29 Jakub Jelinek <jakub@redhat.com>
1356
1357 PR c/59280
1358 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1359 goto invalid. If it is error_mark_node, don't issue further
1360 diagnostics.
1361
8b5e1202
SO
13622013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1363
1364 * c.opt (Wopenmp-simd): New.
1365
0a508bb6
JJ
13662013-11-22 Jakub Jelinek <jakub@redhat.com>
1367
1368 * c-ubsan.h (ubsan_instrument_return): New prototype.
1369 * c-ubsan.c (ubsan_instrument_return): New function.
1370
2fb9a547
AM
13712013-11-22 Andrew MacLeod <amacleod@redhat.com>
1372
1373 * c-common.c: Add required include files from gimple.h.
1374 * c-gimplify.c: Likewise
1375 * cilk.c: Likewise
1376
8400e75e
DM
13772013-11-22 David Malcolm <dmalcolm@redhat.com>
1378
1379 * c-common.c (unsafe_conversion_p): Remove use of
1380 EXPR_LOC_OR_HERE macro.
1381 (conversion_warning): Likewise.
1382 (warnings_for_convert_and_check): Likewise.
1383 (warn_for_collisions_1): Likewise.
1384 (shorten_compare): Likewise, and remove use of in_system_header
1385 macro, using the location from the former.
1386 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1387 (cb_def_pragma): Remove use of in_system_header macro.
1388 (lex_string): Likewise.
1389 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1390
eb1ce453
KZ
13912013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1392 Mike Stump <mikestump@comcast.net>
1393 Richard Sandiford <rdsandiford@googlemail.com>
1394
1395 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1396 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1397 tree_fits_shwi_p or tree_fits_uhwi_p.
1398 (dump_generic_ada_node): Likewise.
1399 * c-format.c (check_format_arg): Likewise.
1400 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1401
6b3b8c27
KZ
14022013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1403
1404 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1405
49b0aa18
JC
14062013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1407
1408 PR c/53001
1409 * c-common.c (unsafe_conversion_p): Make this function
1410 return an enumeration with more detail.
1411 (conversion_warning): Use the new return type of
1412 unsafe_conversion_p to separately warn either about conversions
1413 that lower floating point number precision or about the other
1414 kinds of conversions.
1415 * c-common.h (enum conversion_safety): New enumeration.
1416 (unsafe_conversion_p): switching return type to
1417 conversion_safety enumeration.
1418 * c.opt: Adding new warning -Wfloat-conversion and
1419 enabling it with -Wconversion.
1420
b826515a
BS
14212013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1422
1423 * c-opts.c: Include plugin.h.
1424 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1425
b9a55b13
MP
14262013-11-19 Marek Polacek <polacek@redhat.com>
1427
1428 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1429 call.
1430 (ubsan_instrument_shift): Likewise.
1431 (ubsan_instrument_vla): Likewise.
1432
7d362f6c
RS
14332013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1434
1435 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1436 cast to unsigned type.
1437
386b1f1f
RS
14382013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1439
1440 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1441 tree_low_cst.
1442 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1443 rather than tree_low_cst.
1444
ae7e9ddd
RS
14452013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1446
1447 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1448 tree_to_uhwi throughout.
1449
9439e9a1
RS
14502013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1451
1452 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1453 tree_low_cst (..., 0) with tree_to_shwi throughout.
1454
cc269bb6
RS
14552013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1456
1457 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1458 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1459
9541ffee
RS
14602013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1461
1462 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1463 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1464
c02065fc
AH
14652013-11-15 Aldy Hernandez <aldyh@redhat.com>
1466
1467 * c-cilkplus.c: New file.
1468 * c-common.c (readonly_error): Add location argument.
1469 * c-common.h (readonly_error): Same.
1470 (c_finish_cilk_clauses): Protoize.
1471 (c_check_cilk_loop): Same.
1472 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1473 Do not fail on error_mark_node.
1474 Abstract increment canonicalization to here...
1475 (c_omp_for_incr_canonicalize_ptr): New.
1476 c-pragma.c (init_pragma): Register "simd" pragma.
1477 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1478 (enum pragma_cilk_clause): New.
1479
9cc65f15
RS
14802013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1481
1482 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1483 wchar_type and host_integerp checks.
1484
18f429e2
AM
14852013-11-14 Andrew MacLeod <amacleod@redhat.com>
1486
1487 * c-common.c: Likewise.
1488 * c-gimplify.c: Likewise.
1489 * cilk.c: Likewise.
1490
d8a2d370
DN
14912013-11-14 Diego Novillo <dnovillo@google.com>
1492
1493 * c-common.c: Include fold-const.h.
1494 Include stor-layout.h.
1495 Include calls.h.
1496 Include stringpool.h.
1497 Include attribs.h.
1498 Include varasm.h.
1499 Include trans-mem.h.
1500 * c-cppbuiltin.c: Include stor-layout.h.
1501 Include stringpool.h.
1502 * c-format.c: Include stringpool.h.
1503 * c-lex.c: Include stringpool.h.
1504 Include stor-layout.h.
1505 * c-pragma.c: Include stringpool.h.
1506 Include attribs.h.
1507 Include varasm.h.
1508 Include gcc-symtab.h.
1509 * c-pretty-print.c: Include stor-layout.h.
1510 Include attribs.h.
1511 * cilk.c: Include stringpool.h.
1512 Include calls.h.
1513
38b7bc7f
JM
15142013-11-13 Joseph Myers <joseph@codesourcery.com>
1515
1516 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1517 * c-common.c (c_common_reswords): Add __auto_type.
1518 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1519
45b0be94
AM
15202013-11-12 Andrew MacLeod <amacleod@redhat.com>
1521
18f429e2
AM
1522 * c-common.c: Include gimplify.h.
1523 * c-gimplify.c: Likewise.
1524 * cilk.c: Likewise.
1525 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1526 * c-ubsan.c: Don't include gimple.h.
45b0be94 1527
582d9b50
JM
15282013-11-12 Joseph Myers <joseph@codesourcery.com>
1529
1530 * c-common.c (c_common_reswords): Add _Thread_local.
1531
6b28e197
JM
15322013-11-09 Joseph Myers <joseph@codesourcery.com>
1533
1534 * c-common.c (atomic_size_supported_p): New function.
1535 (resolve_overloaded_atomic_exchange)
1536 (resolve_overloaded_atomic_compare_exchange)
1537 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1538 Use it instead of comparing size with a local list of sizes.
1539
267bac10
JM
15402013-11-07 Andrew MacLeod <amacleod@redhat.com>
1541 Joseph Myers <joseph@codesourcery.com>
1542
1543 * c-common.h (enum rid): Add RID_ATOMIC.
1544 * c-common.c (c_common_reswords): Add _Atomic.
1545 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1546 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1547 * c-format.c (check_format_types): Check for extra _Atomic
1548 qualifiers in format argument.
1549 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1550 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1551
5157b91e
TB
15522013-11-06 Tobias Burnus <burnus@net-b.de>
1553
1554 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1555
6dbe0958
JM
15562013-11-06 Joseph Myers <joseph@codesourcery.com>
1557
1558 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1559 standards modes.
1560 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1561 to mean lack of IEEE 754 support.
1562
e8ff5196
TB
15632013-11-05 Tobias Burnus <burnus@net-b.de>
1564
1565 * c.opt (-Wdate-time): New option
1566 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1567
254a0760
JM
15682013-11-05 Joseph Myers <joseph@codesourcery.com>
1569
1570 * c-cppbuiltin.c (cpp_iec_559_value): Test
1571 flag_excess_precision_cmdline not flag_excess_precision.
1572
6d7f7e0a
TB
15732013-11-05 Tobias Burnus <burnus@net-b.de>
1574
1575 * c.opt (fopenmp-simd): New option.
1576 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1577 (omp_pragmas): ... this new struct.
1578 (c_pp_lookup_pragma): Also walk omp_pragmas.
1579 (init_pragma): Init pragmas for -fopenmp-simd.
1580
55a7f02f
MP
15812013-11-04 Marek Polacek <polacek@redhat.com>
1582
1583 PR c++/58979
1584 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1585
9193fb05
JM
15862013-11-04 Joseph Myers <joseph@codesourcery.com>
1587
1588 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1589 New functions.
1590 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1591
94159ecf
EB
15922013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1593
1594 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1595 (dump_ada_specs): Adjust prototype of second callback.
1596 * c-ada-spec.c (cpp_check): New global variable.
1597 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1598 (print_generic_ada_decl): Likewise.
1599 (has_static_fields): Change return type to bool and add guard.
1600 (has_nontrivial_methods): New predicate.
1601 (is_tagged_type): Change return type to bool.
1602 (separate_class_package): Call has_nontrivial_methods.
1603 (pp_ada_tree_identifier): Minor tweaks.
1604 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1605 (dump_ada_array_domains): Likewise.
1606 (dump_ada_array_type): Likewise.
1607 (dump_template_types): Remove cpp_check parameter and do not pass it to
1608 dump_generic_ada_node.
1609 (dump_ada_template): Likewise.
1610 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1611 recursively.
1612 (print_ada_methods): Change return type to integer. Remove cpp_check
1613 parameter and do not pass it down.
1614 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1615 dump_generic_ada_node.
1616 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1617 accessing methods.
1618 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1619 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1620 value of print_ada_methods.
1621 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1622 Set cpp_check to it before invoking dump_ada_nodes.
1623 (dump_ada_specs): Likewise.
1624
b906f4ca
MP
16252013-11-03 Marek Polacek <polacek@redhat.com>
1626
1627 * c-ubsan.c: Don't include hash-table.h.
1628 (ubsan_instrument_vla): New function.
1629 * c-ubsan.h: Declare it.
1630
5e20cdc9
DM
16312013-10-31 David Malcolm <dmalcolm@redhat.com>
1632
1633 Automated part of renaming of symtab_node_base to symtab_node.
1634
1635 Patch autogenerated by rename_symtab.py from
1636 https://github.com/davidmalcolm/gcc-refactoring-scripts
1637 revision 58bb219cc090b2f4516a9297d868c245495ee622
1638
1639 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1640 symtab_node_base to symtab_node.
1641
7057e645
ESR
16422013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1643
1644 Implement C++14 digit separators.
1645 * c-lex.c (interpret_float): Remove digit separators from scratch string
1646 before building real literal.
1647
193ea7bc
JJ
16482013-10-30 Jakub Jelinek <jakub@redhat.com>
1649
1650 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1651
939b37da
BI
16522013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1653
1654 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1655 fields.
1656 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1657 enabled.
1658 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1659 (insert_cilk_frame): New prototype.
1660 (cilk_init_builtins): Likewise.
1661 (gimplify_cilk_spawn): Likewise.
1662 (c_cilk_install_body_w_frame_cleanup): Likewise.
1663 (cilk_detect_spawn_and_unwrap): Likewise.
1664 (cilk_set_spawn_marker): Likewise.
1665 (build_cilk_sync): Likewise.
1666 (build_cilk_spawn): Likewise.
1667 * cilk.c: New file.
1668
67348ccc
DM
16692013-10-29 David Malcolm <dmalcolm@redhat.com>
1670
1671 Patch autogenerated by refactor_symtab.py from
1672 https://github.com/davidmalcolm/gcc-refactoring-scripts
1673 revision 58bb219cc090b2f4516a9297d868c245495ee622
1674
1675 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1676 to a true class hierarchy.
1677 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1678
d570872d
RS
16792013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1680
1681 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1682
98906124
JL
16832013-10-26 Jeff Law <law@redhat.com>
1684
adfac8df
JJ
1685 * c-common.c (c_define_builtins): Remove mudflap support.
1686 * c.opt: Ignore and warn for mudflap options.
98906124 1687
d73749df 16882013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
1689
1690 PR other/33426
1691 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1692 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1693
3f04b1bb
JM
16942013-10-23 Jason Merrill <jason@redhat.com>
1695
1696 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1697
acf0174b
JJ
16982013-10-11 Jakub Jelinek <jakub@redhat.com>
1699
acd15a28
JJ
1700 * c-common.h (omp_clause_mask::operator !=): New method.
1701 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1702 instead of if (mask & something) tests everywhere.
1703
acf0174b
JJ
1704 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1705 201307 instead of 201107.
1706 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1707 (c_common_attribute_table): Add "omp declare target" and
1708 "omp declare simd" attributes.
1709 (handle_omp_declare_target_attribute,
1710 handle_omp_declare_simd_attribute): New functions.
1711 * c-omp.c: Include c-pragma.h.
1712 (c_finish_omp_taskgroup): New function.
1713 (c_finish_omp_atomic): Add swapped argument, if true,
1714 build the operation first with rhs, lhs arguments and use NOP_EXPR
1715 build_modify_expr.
1716 (c_finish_omp_for): Add code argument, pass it down to make_code.
1717 (c_omp_split_clauses): New function.
1718 (c_split_parallel_clauses): Removed.
1719 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1720 c_omp_declare_simd_clauses_to_decls): New functions.
1721 * c-common.h (omp_clause_mask): New type.
1722 (OMP_CLAUSE_MASK_1): Define.
1723 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1724 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1725 omp_clause_mask::operator |, omp_clause_mask::operator &,
1726 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1727 omp_clause_mask::operator ==): New methods.
1728 (enum c_omp_clause_split): New.
1729 (c_finish_omp_taskgroup): New prototype.
1730 (c_finish_omp_atomic): Add swapped argument.
1731 (c_finish_omp_for): Add code argument.
1732 (c_omp_split_clauses): New prototype.
1733 (c_split_parallel_clauses): Removed.
1734 (c_omp_declare_simd_clauses_to_numbers,
1735 c_omp_declare_simd_clauses_to_decls): New prototypes.
1736 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1737 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1738 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1739 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1740 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1741 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1742 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1743 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1744 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1745 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1746 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1747 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1748 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1749 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1750 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1751 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1752 PRAGMA_OMP_CLAUSE_UNIFORM.
1753
826cacfe
MG
17542013-10-09 Marc Glisse <marc.glisse@inria.fr>
1755
1756 PR tree-optimization/20318
1757 * c-common.c (handle_returns_nonnull_attribute): New function.
1758 (c_common_attribute_table): Add returns_nonnull.
1759
2284b034
MG
17602013-10-03 Marc Glisse <marc.glisse@inria.fr>
1761
1762 PR c++/19476
1763 * c.opt (fcheck-new): Move to common.opt.
1764
b56e9788
MP
17652013-09-25 Marek Polacek <polacek@redhat.com>
1766 Jakub Jelinek <jakub@redhat.com>
1767
1768 PR sanitizer/58413
1769 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1770 an expression if we can prove it is correct.
1771 (ubsan_instrument_division): Likewise. Remove unnecessary
1772 check.
1773
ce6923c5
MP
17742013-09-18 Marek Polacek <polacek@redhat.com>
1775
1776 PR sanitizer/58411
1777 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1778 Declare it.
1779 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1780
fb5610fb
IS
17812013-09-14 Iain Sandoe <iain@codesourcery.com>
1782
1783 PR target/48094
1784 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1785 fobjc-gc, freplace-objc-classes): Accept for LTO.
1786
88b0e79e
JC
17872013-09-13 Jacek Caban <jacek@codeweavers.com>
1788
1789 * c-target.def: New hook
1790
c9b0866a
PC
17912013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1792
1793 PR c++/43452
1794 * c.opt (Wdelete-incomplete): Add.
1795
0af94e6f
JR
17962013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1797
1798 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1799 (vector_types_compatible_elements_p): New function.
1800 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1801 declaration.
1802 (vector_types_compatible_elements_p): Declare.
1803
7c26172c
GDR
18042013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1805
1806 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1807 a virtual member function.
1808 (pp_simple_type_specifier): Remove.
1809 (pp_c_type_specifier): Likewise.
1810 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1811 Rename from pp_c_type_specifier. Adjust.
1812 (c_pretty_printer::c_pretty_printer): Do not assign to
1813 simple_type_specifier.
1814
20059c8b
GDR
18152013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1816
1817 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1818 member function.
1819 (c_pretty_printer::storage_class_specifier): Likewise.
1820 (c_pretty_printer::initializer): Likewise.
1821 (pp_declaration): Remove.
1822 (pp_declaration_specifiers): Likewise.
1823 (pp_abstract_declarator): Likewise.
1824 (pp_declarator): Likewise.
1825 (pp_type_id): Likewise.
1826 (pp_statement): Likewise.
1827 (pp_constant): Likewise.
1828 (pp_id_expression): Likewise.
1829 (pp_primary_expression): Likewise.
1830 (pp_unary_expression): Likewise.
1831 (pp_multiplicative_expression): Likewise.
1832 (pp_conditional_expression): Likewise.
1833 (pp_assignment_expression): Likewise.
1834 (pp_expression): Likewise.
1835 (pp_c_type_id): Likewise.
1836 (pp_c_storage_class_specifier): Likewise.
1837 * c-pretty-print.c (pp_c_type_cast): Tidy.
1838 (pp_c_pointer): Likewise.
1839 (pp_c_type_specifier): Likewise.
1840 (pp_c_parameter_type_list): Likewise.
1841 (pp_c_function_definition): Likewise.
1842 (pp_c_init_declarator): Likewise.
1843 (pp_c_initializer_list): Likewise.
1844 (pp_c_constructor_elts): Likewise.
1845 (c_pretty_printer::direct_abstract_declarator): Likewise.
1846 (c_pretty_printer::declaration_specifiers): Likewise.
1847 (c_pretty_printer::primary_expression): Likewise.
1848 (c_pretty_printer::postfix_expression): Likewise.
1849 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1850 (c_pretty_printer::storage_class_specifier): Rename from
1851 pp_c_storage_class_specifier.
1852 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1853 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1854 storage_class_specifier, initializer, offset_list, flags.
1855
de5a5fa1
MP
18562013-08-30 Marek Polacek <polacek@redhat.com>
1857
1858 * c-ubsan.c: New file.
1859 * c-ubsan.h: New file.
1860
8f0e4d72
GDR
18612013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1862
1863 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1864 member function.
1865 (c_pretty_printer::declaration_specifiers): Likewise.
1866 (c_pretty_printer::declarator): Likewise.
1867 (c_pretty_printer::abstract_declarator): Likewise.
1868 (c_pretty_printer::direct_abstract_declarator): Likewise.
1869 (c_pretty_printer::direct_declarator): Likewise.
1870 (c_pretty_printer::function_specifier): Likewise.
1871 (pp_declaration): Adjust.
1872 (pp_declaration_specifiers): Likewise.
1873 (pp_abstract_declarator): Likewise.
1874 (pp_direct_declarator): Likewise.
1875 (pp_function_specifier): Likewise.
1876 (pp_direct_abstract_declarator): Remove as unused.
1877 (pp_c_declaration): Remove.
1878 (pp_c_declaration_specifiers): Likewise.
1879 (pp_c_declarator): Likewise.
1880 (pp_c_direct_declarator): Likewise.
1881 (pp_c_function_specifier): Likewise.
1882 (pp_c_direct_abstract_declarator): Likewise.
1883 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1884 from pp_c_abstract_declarator. Adjust.
1885 (c_pretty_printer::direct_abstract_declarator): Rename from
1886 pp_c_direct_abstract_declarator. Adjust.
1887 (c_pretty_printer::function_specifier): Rename from
1888 pp_c_function_specifier. Adjust.
1889 (c_pretty_printer::declaration_specifiers): Rename from
1890 pp_c_declaration_specifiers. Adjust.
1891 (c_pretty_printer::direct_declarator): Rename from
1892 pp_c_direct_declarator. Adjust.
1893 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1894 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1895 (c_pretty_printer::c_pretty_printer): Do not assign to
1896 declaration, declaration_specifiers, declarator,
1897 direct_declarator, direct_abstract_declarator, function_specifier.
1898
00d34d3a
GDR
18992013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1900
1901 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1902 virtual member function.
1903 (c_pretty_printer::multiplicative_expression): Likewise.
1904 (c_pretty_printer::conditional_expression): Likewise.
1905 (c_pretty_printer::assignment_expression): Likewise.
1906 (c_pretty_printer::expression): Likewise.
1907 (pp_unary_expression): Adjust.
1908 (pp_multiplicative_expression): Likewise.
1909 (pp_assignment_expression): Likewise.
1910 (pp_conditional_expression): Likewise.
1911 (pp_expression): Likewise.
1912 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1913 from pp_c_unary_expression. Adjust.
1914 (c_pretty_printer::multiplicative_expression): Rename from
1915 pp_c_multiplicative_expression. Adjust.
1916 (c_pretty_printer::conditional_expression): Rename from
1917 pp_c_conditional_expression. Adjust.
1918 (c_pretty_printer::assignment_expression): Rename from
1919 pp_c_assignment_expression. Adjust.
1920 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1921 (c_pretty_printer::c_pretty_printer): Do not assign to
1922 unary_expression, multiplicative_expression,
1923 conditional_expression, expression.
1924
fb22178f
GDR
19252013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1926
1927 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1928 virtual member function.
1929 (pp_postfix_expression): Adjust.
1930 (pp_c_postfix_expression): Remove.
1931 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1932 from pp_c_postfix_expression. Adjust.
1933 (c_pretty_printer::c_pretty_printer): Do not assign to
1934 postfix_expression.
1935
7ecc2600
GDR
19362013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1937
1938 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1939 virtua member function.
1940 (pp_primary_expression): Adjust.
1941 (pp_c_primary_expression): Remove.
1942 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1943 from pp_c_primary_expression. Adjust.
1944 (pp_c_initializer_list): Use pp_primary_expression.
1945 (c_pretty_printer::c_pretty_printer): Do not assign to
1946 primary_expression.
1947
0691175f
GDR
19482013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1949
1950 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1951 * c-pretty-print.c (M_): Remove.
1952 (c_pretty_printer::translate_string): Define.
1953 (pp_c_type_specifier): Use it.
1954 (pp_c_primary_expression): Likewise.
1955 (pp_c_expression): Likewise.
1956
66dfe4c4
GDR
19572013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1958
1959 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1960 virtual function.
1961 (pp_c_id_expression): Remove.
1962 (pp_id_expression): Adjust.
1963 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1964 pp_c_id_expression. Adjust.
1965 (pp_c_postfix_expression): Use pp_id_expression.
1966 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1967
ca43e9d5
GDR
19682013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1969
1970 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1971 member function.
1972 (pp_constant): Adjust.
1973 (pp_c_constant): Remove.
1974 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1975 pp_c_constant. Adjust.
1976 (pp_c_constant)
1977 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1978 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1979
da6ca2b5
GDR
19802013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1981
1982 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1983 (c_pretty_printer::c_pretty_printer): Declare.
1984 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1985 c_pretty_printer_init. Adjust.
1986 (print_c_tree): Do not call c_pretty_printer_init.
1987 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1988
65a372f4
AC
19892013-08-09 Arnaud Charlet <charlet@adacore.com>
1990
1991 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1992
fd9b0f32
PC
19932013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1994
1995 PR c++/58080
1996 * c-common.c (pointer_int_sum): Add bool parameter.
1997 * c-common.h (pointer_int_sum): Adjust declaration.
1998
e0aec1e9
GDR
19992013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2000
2001 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2002 c_pretty_printer variable.
2003
b066401f
GDR
20042013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2005
2006 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2007 (pp_base): Remove.
2008 (pp_c_base): Likewise. Adjust users.
2009 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2010 (pp_c_whitespace): Do not call pp_base.
2011 (pp_c_left_paren): Likewise.
2012 (pp_c_right_paren): Likewise.
2013 (pp_c_left_brace): Likewise.
2014 (pp_c_right_brace): Likewise.
2015 (pp_c_left_bracket): Likewise.
2016 (pp_c_right_bracket): Likewise.
2017 (pp_c_dot): Likewise.
2018 (pp_c_ampersand): Likewise.
2019 (pp_c_star): Likewise.
2020 (pp_c_arrow): Likewise.
2021 (pp_c_semicolon): Likewise.
2022 (pp_c_complement): Likewise.
2023 (pp_c_exclamation): Likewise.
2024 (pp_c_direct_declarator): Likewise.
2025 (pp_c_ws_string): Likewise.
2026 (pp_c_identifier): Likewise.
2027 (pp_c_statement): Likewise.
2028 (print_c_tree): Likewise.
2029
65e5a578
ESR
20302013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2031
2032 PR c++/58072
2033 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2034 provide useful error strings.
2035
137a1a27
GDR
20362013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2037
2038 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2039 printer functions instead of pp_string or operators and punctuators.
2040 (dump_generic_ada_node): Likewise.
2041 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2042 (pp_c_relational_expression): Likewise.
2043 (pp_c_logical_or_expression): Likewise.
2044
07838b13
GDR
20452013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2046
2047 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2048 functions instead of pp_character.
2049 (pp_ada_tree_identifier): Likewise.
2050 (dump_ada_double_name): Likewise.
2051 (dump_ada_function_declaration): Likewise.
2052 (dump_ada_array_domains): Likewise.
2053 (dump_template_types): Likewise.
2054 (dump_generic_ada_node): Likewise.
2055 (print_ada_declaration): Likewise.
2056 (print_ada_struct_decl): Likewise.
2057 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2058
433cc7b0
TT
20592013-07-23 Tom Tromey <tromey@redhat.com>
2060
2061 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2062 * c-common.c (c_common_reswords): Add _Generic.
2063
688010ba
OB
20642013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2065
2066 * c-common.c: Fix typos.
2067 * c-common.h: Likewise.
2068
2a99e5e6
LL
20692013-07-13 Lubos Lunak <l.lunak@suse.cz>
2070
2071 PR c++/55203
2072 * c-common.c (c_common_attribute_table): Add warn_unused.
2073 (handle_warn_unused_attribute): New.
2074
c26302d5
JJ
20752013-07-10 Jakub Jelinek <jakub@redhat.com>
2076
2077 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2078 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2079
dfeadaa0
PC
20802013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2081
2082 PR c++/57869
2083 * c.opt: Add Wconditionally-supported.
2084
6a2fa4b2
GS
20852013-07-08 Graham Stott <graham.stott@btinternet.com>
2086
adfac8df 2087 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
2088 unused variables l_length and l_node.
2089
ecdbd01a 20902013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2091
2092 PR c/57821
2093 * c-common.c (complete_array_type): Delay folding first index
2094 like other indices. When folding, check for index overflow.
2095
bedc293e
MG
20962013-06-27 Marc Glisse <marc.glisse@inria.fr>
2097
2098 PR c++/57509
2099 * c-common.h (c_build_vec_perm_expr): New complain argument.
2100 * c-common.c (c_build_vec_perm_expr): Likewise.
2101 Use save_expr also in C++.
2102
604b2bfc
GDR
21032013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2104
2105 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2106 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2107 * c-opts.c (c_common_post_options): Likewise.
2108
dfeadaa0 21092013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
2110
2111 * array-notation-common.c (length_mismatch_in_expr): Changed the
2112 parameter type's from a dynamic array to a vec_tree. Also removed
2113 the size parameters.
2114 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2115 the change above.
2116
2ce86d2e
BI
21172013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2118
2119 * c-common.h (struct cilkplus_an_parts): New structure.
2120 (struct cilkplus_an_loop_parts): Likewise.
2121 (cilkplus_extract_an_triplets): New prototype.
2122 (fix_sec_implicit_args): Likewise.
2123 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2124 (fix_sec_implicit_args): Likewise.
604b2bfc 2125
07a6825b
BI
21262013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2127
2128 * array-notation-common.c (find_inv_trees): Removed an unwanted
2129 typecasting.
2130 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2131 enum rid to enum tree_code.
2132
08346abd
JH
21332013-06-11 Jan Hubicka <jh@suse.cz>
2134
2135 * c-common.c (handle_alias_ifunc_attribute): Do not set
2136 DECL_EXTERNAL for weakref variables.
2137 * c-pragma.c (handle_pragma_weak): Make sure aliases
2138 are not declared as external.
2139
d60f1706
BI
21402013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2141
2142 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2143 function from c/c-array-notation.c.
2144 (is_cilkplus_reduce_builtin): Likewise.
2145 (find_rank): Likewise.
2146 (extract_array_notation_exprs): Likewise.
2147 (replace_array_notations): Likewise.
2148 (find_inv_trees): Likewise.
2149 (replace_inv_trees): Likewise.
2150 (contains_array_notation_expr): Likewise.
2151 (find_correct_array_notation_type): Likewise.
2152 * c-common.h (struct inv_list): Moved this struct from the file
2153 c/c-array-notation.c and added a new field called additional tcodes.
2154 (length_mismatch_in_expr_p): New prototype.
2155 (is_cilkplus_reduce_builtin): Likewise.
2156 (find_rank): Likewise.
2157 (extract_array_notation_exprs): Likewise.
2158 (replace_array_notation): Likewise.
2159 (find_inv_trees): Likewise.
2160 (replace_inv_trees): Likewise.
2161 (find_correct_array_notation_type): Likewise.
dfeadaa0 2162
36536d79
BI
21632013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2164
2165 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2166 function array_notation_init_builtins is called.
2167 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2168 * c-common.def (ARRAY_NOTATION_REF): New tree.
2169 * c-common.h (build_array_notation_expr): New function declaration.
2170 (build_array_notation_ref): Likewise.
2171 (extract_sec_implicit_index_arg): New extern declaration.
2172 (is_sec_implicit_index_fn): Likewise.
2173 (ARRAY_NOTATION_CHECK): New define.
2174 (ARRAY_NOTATION_ARRAY): Likewise.
2175 (ARRAY_NOTATION_START): Likewise.
2176 (ARRAY_NOTATION_LENGTH): Likewise.
2177 (ARRAY_NOTATION_STRIDE): Likewise.
2178 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2179 ARRAY_NOTATION_REF.
2180 (pp_c_expression): Likewise.
2181 * c.opt (flag_enable_cilkplus): New flag.
2182 * array-notation-common.c: New file.
2183
f7716d57
JJ
21842013-05-14 Jakub Jelinek <jakub@redhat.com>
2185
2186 PR c++/57274
2187 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2188
a5e0cd1d
MG
21892013-05-10 Marc Glisse <marc.glisse@inria.fr>
2190
2191 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2192 vectors.
2193
f6bc1c4a
HS
21942013-05-07 Han Shen <shenhan@google.com>
2195
2196 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2197
3f12f6e9
SKS
21982013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2199
2200 * c-common.c (check_user_alignment): Emit error for negative values.
2201
61949153
PC
22022013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2203
2204 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2205
e93e18e9
PC
22062013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2207
2208 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2209 __GXX_EXPERIMENTAL_CXX1Y__.
2210
44d90fe1
PC
22112013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2212 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2213
2214 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2215 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2216 to simply use OPT_Wpointer_arith.
2217 (c_sizeof_or_alignof_type): Likewise.
2218
13f39b2e
PC
22192013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2220
2221 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2222
4b84d650
JJ
22232013-04-12 Jakub Jelinek <jakub@redhat.com>
2224
2225 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2226 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2227 specifiers.
2228
fb037b5d
SB
22292013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2230
2231 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2232
4e856798
PC
22332013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2234
2235 * c-common.c (pointer_int_sum): Remove dead code.
2236
4b1baac8
RS
22372013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2238
2239 PR middle-end/56524
2240 * c-common.c (handle_optimize_attribute): Don't call
2241 save_optabs_if_changed.
2242
0b50e654
JJ
22432013-03-05 Jakub Jelinek <jakub@redhat.com>
2244
2245 PR middle-end/56461
2246 * c-pch.c (pch_init): Free target_validity at the end.
2247
48c41403
JJ
22482013-03-04 Jakub Jelinek <jakub@redhat.com>
2249
2250 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2251
e664c61c
KS
22522013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2253 Jakub Jelinek <jakub@redhat.com>
2254
2255 PR sanitizer/56454
2256 * c-common.c (handle_no_sanitize_address_attribute): New function.
2257 (c_common_attribute_table): Add no_sanitize_address attribute.
2258 (handle_no_address_safety_analysis_attribute): Add
2259 no_sanitize_address attribute, not no_address_safety_analysis
2260 attribute.
2261
a475fd3d 22622013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
2263
2264 PR target/52555
2265 * c-common.c (handle_optimize_attribute): Call
2266 save_optabs_if_changed.
2267
f6007d99
JJ
22682013-02-18 Jakub Jelinek <jakub@redhat.com>
2269 Steven Bosscher <steven@gcc.gnu.org>
2270
2271 PR pch/54117
2272 * c-opts.c (c_common_post_options): If debug info is enabled
2273 and non-dwarf*, refuse to load PCH files and when writing PCH
2274 file warn.
2275
cf35e2b1
JJ
22762013-02-05 Jakub Jelinek <jakub@redhat.com>
2277
2278 PR middle-end/56167
2279 * c-common.c (handle_error_attribute): Fix condition.
2280
32887460
JJ
22812013-01-30 Jakub Jelinek <jakub@redhat.com>
2282
2283 PR c++/55742
2284 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2285
5af057d8
JM
22862013-01-18 Jason Merrill <jason@redhat.com>
2287
2288 PR target/54908
2289 * c.opt (-fextern-tls-init): New.
2290 * c-opts.c (c_common_post_options): Handle it.
2291
cc83c823
JJ
22922013-01-09 Jakub Jelinek <jakub@redhat.com>
2293
2294 PR c/48418
2295 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2296 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2297 and is either negative or bigger or equal to type precision
2298 of the first operand.
2299
a859517f
MP
23002012-12-03 Marek Polacek <polacek@redhat.com>
2301
2302 PR c/55570
2303 * c-common.c (check_user_alignment): Swap order of tests,
2304 check TREE_CODE first.
2305
2d7aa578
ESR
23062012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2307
2308 PR c++/52654
2309 * c-common.h (overflow_type): New enum.
2310 (build_userdef_literal): Add overflow_type argument.
2311 (tree_userdef_literal): Add overflow_type.
2312 (USERDEF_LITERAL_OVERFLOW): New access macro.
2313 * c-common.c (build_userdef_literal): Add overflow_type
2314 argument.
2315 * c-lex.c (c_lex_with_flags): Add overflow_type to
2316 build_userdef_literal calls.
2317 (interpret_integer, interpret_float): Add overflow_type argument.
2318
cc3c4f62
RB
23192012-11-28 Richard Biener <rguenther@suse.de>
2320
2321 PR c/35634
2322 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2323 here and use a type with proper overflow behavior for types that would
2324 need to be promoted for the arithmetic.
2325
77bc5132
JJ
23262012-11-23 Jakub Jelinek <jakub@redhat.com>
2327
2328 PR sanitizer/55435
2329 * c-common.c (handle_no_address_safety_analysis_attribute): New
2330 function.
2331 (c_common_attribute_table): Add no_address_safety_analysis.
2332
5dc99c46
SB
23332012-11-16 Simon Baldwin <simonb@google.com>
2334
2335 * c.opt: Add f[no-]canonical-system-headers.
2336 * c-opts.c (c_common_handle_option): Handle
2337 OPT_fcanonical_system_headers.
2338
a4a0016d
ESR
23392012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2340
2341 PR c++/54413
2342 * c-opts.c (c_common_handle_option): Set new flags.
2343 * c.opt: Describe new flags.
2344
7dbb85a7
JM
23452012-11-09 Jason Merrill <jason@redhat.com>
2346
2347 * c.opt (Wabi-tag): New.
2348
ad7bac31
AK
23492012-11-09 Andi Kleen <ak@linux.intel.com>
2350
2351 PR 55139
2352 * c-common.c (get_atomic_generic_size): Mask with
2353 MEMMODEL_MASK
2354
7332899a
MLI
23552012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2356
2357 PR c/53063
2358 * c.opt (Wformat): Make it Alias Wformat=1.
2359 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2360 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2361 LangEnabledBy.
2362 (Wformat=): RejectNegative. Use LangEnabledBy.
2363 (Wnonnull): Use LangEnabledBy.
2364 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2365 * c-format.c (set_Wformat): Delete.
2366 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2367 (maybe_read_dollar_number): Likewise.
2368 (avoid_dollar_number): Likewise.
2369 (finish_dollar_format_checking): Likewise.
2370 (check_format_info): Likewise.
2371 (check_format_info_main): Likewise.
2372 (check_format_types): Likewise.
2373 (format_type_warning): Likewise.
2374 * c-common.c (int): Likewise.
2375 (check_function_sentinel): Likewise.
2376 * c-common.h (warn_format,set_Wformat): Do not declare here.
2377
34a180a6
MLI
23782012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2379
2380 PR c/53063
2381 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2382 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2383 Use LangEnabledBy.
2384 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2385 common.opt.
2386 (Wvariadic-macros): Init(1).
2387 * c-opts.c (c_common_handle_option): Do not handle them
2388 explicitly.
2389 (c_common_post_options): Likewise.
2390 (sanitize_cpp_opts): warn_unused_macros is now
2391 cpp_warn_unused_macros.
2392 (push_command_line_include): Likewise.
2393 * c-common.c (warn_unknown_pragmas): Do not define.
2394 * c-common.h (warn_unknown_pragmas): Do not declare.
2395
3f46d6a5
MLI
23962012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2397
2398 PR c/51294
2399 * c-common.c (conversion_warning): Handle conditional expressions.
2400
880661a4
JW
24012012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2402
2403 PR c++/54930
2404 * c.opt (Wreturn_local_addr): Define new option.
2405
4514a96b
JM
24062012-10-25 Jason Merrill <jason@redhat.com>
2407
f14edc1a
JM
2408 * c.opt (Wvirtual-move-assign): New.
2409
4514a96b
JM
2410 * c.opt (Winherited-variadic-ctor): New.
2411
93100c6b
MG
24122012-10-25 Marc Glisse <marc.glisse@inria.fr>
2413
2414 PR c++/54427
2415 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2416
1efcb8c6
JM
24172012-10-23 Joseph Myers <joseph@codesourcery.com>
2418
2419 * c-common.h (pch_cpp_save_state): Declare.
2420 * c-target.def (c_preinclude): New hook.
2421 * c-opts.c (done_preinclude): New.
2422 (push_command_line_include): Handle default preincluded header.
2423 (cb_file_change): Call pch_cpp_save_state when calling
2424 push_command_line_include.
2425 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2426 (pch_cpp_save_state): New.
2427 (pch_init): Call pch_cpp_save_state conditionally, instead of
2428 calling cpp_save_state.
2429
4a0ae68e
MLI
24302012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2431
2432 PR c/53063
2433 PR c/40989
2434 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2435 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2436 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2437 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2438 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2439 * c-opts.c (c_common_handle_option): Remove explicit handling from
2440 here.
2441 (c_common_post_options): Likewise.
2442
67e4210b
EB
24432012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2444
2445 * c-ada-spec.c (LOCATION_COL): Delete.
2446 (compare_location): New function.
2447 (compare_node): Use it.
2448 (compare_comment): Likewise.
2449
65d4f2cd
MLI
24502012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2451
2452 PR c/53063
2453 PR c/40989
2454 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2455 * c-opts.c (c_common_handle_option): Do not set them here. Add
2456 comment.
2457 (c_common_post_options): Likewise.
2458
909881cb
EB
24592012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2460
2461 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2462 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2463 Remove POINTER_TYPE handling, add large unsigned handling and use
2464 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2465
3a785c97
JJ
24662012-10-12 Jakub Jelinek <jakub@redhat.com>
2467
2468 PR c/54381
2469 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2470 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2471 locs and array of 3 trees instead of just single loc and single
2472 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2473 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2474 For *cmp* builtins that take two sources strings report warnings
2475 about first and second source, not about destination and source.
2476
5e54f81d
MG
24772012-10-12 Marc Glisse <marc.glisse@inria.fr>
2478
2479 PR c++/53055
2480 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2481
f5b02f1e
EB
24822012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2483
2484 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2485 declaring something coming from another file.
2486
b46dbc6c
AC
24872012-10-10 Arnaud Charlet <charlet@adacore.com>
2488
f5b02f1e 2489 PR ada/54845
b46dbc6c
AC
2490 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2491
5d9de0d0
PC
24922012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2493
2494 PR c++/54194
2495 * c-common.c (warn_about_parentheses): Add location_t parameter;
2496 use EXPR_LOC_OR_LOC.
2497 * c-common.h: Update declaration.
2498
a212e43f
MG
24992012-10-09 Marc Glisse <marc.glisse@inria.fr>
2500
2501 PR c++/54427
2502 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2503 more operations. Make error messages optional.
2504 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2505 (scalar_to_vector): Declare.
2506
b1db7f91
JM
25072012-10-08 Jason Merrill <jason@redhat.com>
2508
2509 * c-common.c (c_common_reswords): Add thread_local.
2510
e28d52cf
DS
25112012-10-08 Dodji Seketeli <dodji@redhat.com>
2512
2513 PR c++/53528 C++11 attribute support
2514 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2515 new functions.
2516 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2517 static function.
2518 (handle_aligned_attribute): In choose strictest alignment
2519 among many. Use new check_cxx_fundamental_alignment_constraints.
2520 (handle_transparent_union_attribute): In c++11 attribute syntax,
2521 don't look through typedefs.
2522
3b78de56
AC
25232012-10-04 Arnaud Charlet <charlet@adacore.com>
2524
2525 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2526 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2527 out of dumpfile.h.
2528
6040bb5f
DC
25292012-09-25 Dehao Chen <dehao@google.com>
2530
2531 PR middle-end/54645
3b78de56 2532 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
2533 map when read in the pch.
2534
0b07a57e
AC
25352012-09-18 Arnaud Charlet <charlet@adacore.com>
2536
2537 * c-ada-spec.c: Style fixes.
2538
da5182be
TQ
25392012-09-18 Thomas Quinot <quinot@adacore.com>
2540
2541 * c.opt (-fada-spec-parent): Define new command line switch.
2542 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2543 is specified, generate binding spec as a child of the specified unit.
2544
0ccb505d
PC
25452012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2546 Manuel López-Ibáñez <manu@gcc.gnu.org>
2547
2548 PR c++/53210
2549 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2550
c583af79
AC
25512012-08-23 Arnaud Charlet <charlet@adacore.com>
2552
2553 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2554 for pointers, and add missing Convention C pragma.
2555 (print_ada_struct_decl): Add missing aliased keyword.
2556 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2557
1a4049e7
JJ
25582012-08-17 Jakub Jelinek <jakub@redhat.com>
2559
2560 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2561 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2562 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2563 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2564 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2565
70b5e7dc
RG
25662012-08-10 Richard Guenther <rguenther@suse.de>
2567
2568 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2569
f8923f7e
SB
25702012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2571
2572 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2573 instead of separate pp_newline and pp_flush.
2574 (print_c_tree): Likewise.
2575
e45abe1f
RH
25762012-07-26 Richard Henderson <rth@redhat.com>
2577
2578 * c-common.c (handle_hot_attribute): Allow labels.
2579 (handle_cold_attribute): Likewise.
2580
332f1d24
JJ
25812012-07-20 Jakub Jelinek <jakub@redhat.com>
2582
2583 PR c++/28656
2584 * c-common.c (check_function_nonnull): Handle multiple nonnull
2585 attributes properly.
2586
7ee2468b
SB
25872012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2588
2589 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2590 * c-ada-spec.c: Likewise.
2591 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2592
ee7b28eb
SB
25932012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2594
2595 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2596 Remove code conditional on it.
2597
6bdf3519
SB
25982012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2599
2600 * c-gimplify.c: Do not include basic-block.h.
2601 * c-common.c: Do not include linfuncs.h.
2602
532aafad
SB
26032012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2604
2605 * c-common.h: Include tree.h.
2606
8d0d1915
JM
26072012-07-02 Jason Merrill <jason@redhat.com>
2608
2609 PR c++/53524
2610 * c-common.c (get_priority): Call default_conversion.
2611
fbc873ad
UB
26122012-07-01 Uros Bizjak <ubizjak@gmail.com>
2613
2614 * c-pch.c (c_common_write_pch): Remove unused variables.
2615
d4a10d0a
SB
26162012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2617
2618 * cppspec.c: Moved from gcc/ to here.
2619
6f3a2e23
KT
26202012-06-27 Kai Tietz <ktietz@redhat.com>
2621
2622 PR preprocessor/37215
2623 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2624
8ca92d04
SB
26252012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2626
2627 * c-common.h (c_common_print_pch_checksum): Remove.
2628 * c-pch.c: Do not include output.h.
2629 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2630 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2631 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2632 (struct c_pch_header): Remove.
2633 (get_ident): Update gpch version.
2634 (pch_init): Do not print executable_checksum to asm_out_file.
2635 Do not fail if there is no asm_out_file to read back from. Set
2636 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2637 (c_common_write_pch): Verify that nothing was written to asm_out_file
2638 since pch_init was called. Do not write a c_pch_header, and do not
2639 copy from asm_out_file to the PCH.
2640 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2641 the content of asm_out_file from the PCH.
2642 (c_common_print_pch_checksum): Remove.
2643 * c-opts.c (c_common_init): Print out executable_checksum directly.
2644
70f42967
SB
26452012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2646
2647 * c-target.def (objc_declare_unresolved_class_reference,
2648 objc_declare_class_definition): Add new hooks.
2649
a8781821
SB
26502012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2651
2652 * c-lex.c: Do not include output.h.
2653 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2654 Remove uses of ASM_OUTPUT_IDENT.
2655
9e1a8dd1
RR
26562012-06-15 Marc Glisse <marc.glisse@inria.fr>
2657
2658 PR c++/51033
2659 * c-common.h (c_build_vec_perm_expr): Move decl here.
2660 * c-common.c (c_build_vec_perm_expr): Move definition
2661 here.
2662
6f07a821
SB
26632012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2664
2665 * c.opt (fconserve-space): Turn into a no-op.
2666
9faeb493 26672012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
2668
2669 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2670 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2671 both the start and end of the function.
2672
a4b7d13c
SB
26732012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2674
2675 * c-common.c: Do not include output.h.
2676 * c-pragma.c: Likewise.
2677
c265f413
SA
26782012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2679
2680 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2681 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2682 (lang_decl_name): Handle namespace decls.
2683
be7a421e
SB
26842012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2685
2686 * c-ada-spec.c: Do not include output.h.
2687 * c-semantics.c: Likewise.
2688
65de6659
JM
26892012-05-29 Joseph Myers <joseph@codesourcery.com>
2690
2691 * c-common.c: Fix typo.
2692
ca5f4331
MM
26932012-05-29 Michael Matz <matz@suse.de>
2694
2695 * c-common.h (c_expand_decl): Remove prototype.
2696
4f7f7aca
MLI
26972012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2698
2699 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2700 * c-opts.c (c_common_handle_option): Remove code handling
2701 warn_missing_braces.
2702
4a792f9b
PC
27032012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2704
2705 PR c++/25137
2706 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2707 -Wmissing_braces.
2708
650dc14a
DS
27092012-05-22 Dodji Seketeli <dodji@redhat.com>
2710
2711 PR c++/53322
2712 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2713
9b095bf1
MLI
27142012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2715
2716 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2717 * c-opts.c (c_common_handle_option): Do not handle explicitly
2718 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2719
0b2c4be5
DS
27202012-05-16 Dodji Seketeli <dodji@redhat.com>
2721
2722 PR preprocessor/7263
2723 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2724 to cpp_classify_number. For diagnostics, use the precise location
2725 instead of the global input_location.
2726
a1bde5af
PC
27272012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2728
d02924ef 2729 PR c++/11856
a1bde5af
PC
2730 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2731
d1ede5f4
BS
27322012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2733
a1bde5af 2734 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 2735
f2bc201f
MLI
27362012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2737
2738 PR 53063
2739 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2740 Wreorder): Use LangEnabledBy.
2741 * c-opts.c (c_common_handle_option): Do not enable them
2742 explicitly. Call lang-specific generated functions.
2743 (c_common_post_options): Do not set them here.
2744
95744782
MLI
27452012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2746
2747 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2748 Wmissing-field-initializers,Wmissing-parameter-type,
2749 Wold-style-declaration,Woverride-init): Use EnabledBy.
2750 * c-opts.c (c_common_post_options): Do not set here explicitly.
2751
7d5a5747
MLI
27522012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2753
2754 PR 53063
2755 * c-opts.c (c_common_handle_option): Use handle_generated_option
2756 to enable sub-options.
2757
5a3c9cf2
PC
27582012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2759
2760 PR c++/53158
2761 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2762
3ac8781c
RG
27632012-05-10 Richard Guenther <rguenther@suse.de>
2764
2765 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2766 adjust commentary about TYPE_IS_SIZETYPE types.
2767
1e537948
MLI
27682012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2769
2770 PR c++/53261
2771 * c-common.c (warn_logical_operator): Check that argument of
2772 integer_zerop is not NULL.
2773
f2c4a785
MLI
27742012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2775
2776 PR c/43772
2777 * c-common.c (warn_logical_operator): Do not warn if either side
2778 is already true or false.
2779
50f305ca
MLI
27802012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2781
2782 PR c/51712
2783 * c-common.c (expr_original_type): New.
2784 (shorten_compare): Do not warn for enumeration types.
2785
0c3641b0
MLI
27862012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2787
2788 * c.opt (fpermissive): Add Var(flag_permissive).
2789
7edaa4d2
MG
27902012-04-30 Marc Glisse <marc.glisse@inria.fr>
2791
2792 PR c++/51033
2793 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2794 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2795
b9c8da34
DS
27962012-04-30 Dodji Seketeli <dodji@redhat.com>
2797
2798 Add -Wvarargs option
2799 * c.opt (Wvarargs): Define new option.
2800
e6c69da0
MLI
28012012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2802
2803 * c-common.c (check_function_arguments): Replace
2804 Wmissing-format-attribute with Wsuggest-attribute=format.
2805
90137d8f
MLI
28062012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2807
2808 * c.opt (Wsuggest-attribute=format): New. Alias of
2809 Wmissing-format-attribute.
2810 * c-format.c (decode_format_type): Replace
2811 Wmissing-format-attribute with Wsuggest-attribute=format.
2812 (check_function_format): Likewise.
2813
9faeb493 28142012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
2815
2816 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2817 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2818 * c.opt: Add Wliteral-suffix.
2819
c1771a20
MLI
28202012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2821
2822 PR c/44774
2823 * c.opt (Wpedantic): New.
2824 (pedantic): Alias Wpedantic.
2825 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2826 (c_common_post_options): Likewise.
2827 (sanitize_cpp_opts): Likewise.
2828 * c-lex.c (interpret_float): Likewise.
2829 * c-format.c (check_format_types): Likewise.
2830 * c-common.c (pointer_int_sum): Likewise.
2831 (c_sizeof_or_alignof_type): Likewise.
2832 (c_add_case_label): Likewise.
2833 (c_do_switch_warnings): Likewise.
2834 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2835
04b391c1
JM
28362012-04-15 Jason Merrill <jason@redhat.com>
2837
2838 PR c++/52818
2839 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2840 (C_STD_NAME): Distinguish between C++98 and C++11.
2841
ac868f29
EB
28422012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2843
2844 PR target/52624
2845 * c-common.h (uint16_type_node): Rename into...
2846 (c_uint16_type_node): ...this.
2847 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2848 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2849
fd4116f4
MLI
28502012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2851
2852 * c-common.c (warn_if_unused_value): Move definition to here.
2853 * c-common.h (warn_if_unused_value): Move declaration to here.
2854
573ac65e
WB
28552012-03-23 William Bader <williambader@hotmail.com>
2856
2857 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2858
552b8185
JM
28592012-03-20 Jason Merrill <jason@redhat.com>
2860
2861 * c-common.h (enum cxx_dialect): Add cxx1y.
2862 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2863 test.
2864 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2865 * c-opts.c (c_common_post_options): Likewise.
2866 (set_std_cxx1y): New.
2867 (c_common_handle_option): Call it.
2868 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2869
04398fa8
PC
28702012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2871
2872 PR c++/14710
2873 * c.opt ([Wuseless-cast]): Add.
2874
d2a12ae7
RG
28752012-03-16 Richard Guenther <rguenther@suse.de>
2876
2877 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2878
a12bf402
MLI
28792012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2880
2881 PR c++/44783
2882 * c.opt (ftemplate-backtrace-limit) Add.
2883
5c30094f
RO
28842012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2885
2886 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2887 handling.
2888 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2889 (init_pragma): Don't register extern_prefix.
2890
21fa2faf
RG
28912012-03-12 Richard Guenther <rguenther@suse.de>
2892
2893 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2894 (builtin_type_for_size): Likewise.
2895
e3793c6f
JJ
28962012-02-13 Jakub Jelinek <jakub@redhat.com>
2897
2898 PR c++/52215
2899 * c-common.c (sync_resolve_params): Don't decide whether to convert
2900 or not based on TYPE_SIZE comparison, convert whenever arg_type
2901 is unsigned INTEGER_TYPE.
2902
93286335
PC
29032012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2904
2905 PR c/52118
2906 * c.opt ([Wunused-local-typedefs]): Fix description.
2907
7a421706
MS
29082012-01-24 Mike Stump <mikestump@comcast.net>
2909
2910 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2911 exactly.
2912
ba9b1f11
RG
29132012-01-18 Richard Guenther <rguenther@suse.de>
2914
2915 * c-opts.c (c_common_post_options): Reset LTO flags if
2916 we are about to generate a PCH.
2917
465406be
PC
29182012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2919
2920 PR c++/51777
2921 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2922 use pp_unsigned_wide_integer.
2923
aee15221
RG
29242012-01-10 Richard Guenther <rguenther@suse.de>
2925
2926 PR middle-end/51806
2927 * c-opts.c (c_common_handle_option): Move -Werror handling
2928 to language independent code.
2929
5720c0dc
RG
29302012-01-05 Richard Guenther <rguenther@suse.de>
2931
2932 PR middle-end/51764
2933 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2934 from common.opt.
2935
73ac190a
PC
29362011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2937
2938 PR c++/51316
2939 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2940 of array types with an unknown bound.
2941
48b0b196
JM
29422011-12-20 Joseph Myers <joseph@codesourcery.com>
2943
2944 * c-common.c (flag_isoc99): Update comment to refer to C11.
2945 (flag_isoc1x): Change to flag_isoc11.
2946 * c-common.h (flag_isoc99): Update comment to refer to C11.
2947 (flag_isoc1x): Change to flag_isoc11.
2948 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2949 C11.
2950 * c-opts.c (set_std_c1x): Change to set_std_c11.
2951 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2952 Call set_std_c11.
2953 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2954 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2955 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2956 standard.
2957 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2958 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2959 (std=gnu1x): Make alias of std=gnu11.
2960
d58d6eb5
JM
29612011-12-19 Jason Merrill <jason@redhat.com>
2962
2963 PR c++/51228
2964 * c-common.c (handle_transparent_union_attribute): Check the first
2965 field if the type is complete.
2966
b3908fcc
JW
29672011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2968
2969 PR libstdc++/51365
2970 * c-common.c (RID_IS_FINAL): Add.
2971 * c-common.h (RID_IS_FINAL): Add.
2972
fea3ca91
IS
29732011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2974
2975 * c.opt (fgnu-runtime): Provide full description.
2976 (fnext-runtime): Likewise.
2977 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2978
62bad7cd
AM
29792011-11-28 Andrew MacLeod <amacleod@redhat.com>
2980
2981 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2982 predefines in one place. Add LOCK_FREE predefines.
2983 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2984 new func.
2985
c466c4ff
AM
29862011-11-24 Andrew MacLeod <amacleod@redhat.com>
2987
2988 PR c/51256
9faeb493 2989 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2990 conditions
9faeb493
UB
2991 (resolve_overloaded_atomic_exchange,
2992 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2993 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2994 error_mark_node for error conditions.
9faeb493 2995
a5952633
RG
29962011-11-08 Richard Guenther <rguenther@suse.de>
2997
2998 PR middle-end/51010
2999 c-family/
3000
0a35513e
AH
30012011-11-07 Richard Henderson <rth@redhat.com>
3002 Aldy Hernandez <aldyh@redhat.com>
3003 Torvald Riegel <triegel@redhat.com>
3004
3005 Merged from transactional-memory.
3006
3007 * c-common.c (handle_tm_wrap_attribute,
3008 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3009 (struct c_common_reswords): Added __transaction* keywords.
3010 (struct c_common_attribute_table): Added transaction* and tm_regparm
3011 attributes.
3012 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3013 masks.
3014 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3015 find_tm_attribute): Declare.
3016
6d87092d
JM
30172011-11-07 Jason Merrill <jason@redhat.com>
3018
3019 PR c++/35688
3020 * c-common.c, c-common.h: Revert yesterday's changes.
3021
8e7860a1
JM
30222011-11-06 Jason Merrill <jason@redhat.com>
3023
3024 PR c++/35688
3025 * c-common.c (decl_has_visibility_attr): Split out from...
3026 (c_determine_visibility): ...here.
3027 * c-common.h: Declare it.
3028
d19fa6b5
JM
30292011-11-06 Joseph Myers <joseph@codesourcery.com>
3030
3031 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3032 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3033 type.
3034 (check_user_alignment): New. Split out of
3035 handle_aligned_attribute. Disallow integer constants with
3036 noninteger types. Conditionally allow zero.
3037 (handle_aligned_attribute): Use check_user_alignment.
3038 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3039
86951993
AM
30402011-11-06 Andrew MacLeod <amacleod@redhat.com>
3041 Richard Henderson <rth@redhat.com>
3042
3043 Merged from cxx-mem-model.
3044
3045 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 3046 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
3047 parameters that are the same type size.
3048 (get_atomic_generic_size): New. Find size of generic
3049 atomic function parameters and do typechecking.
3050 (add_atomic_size_parameter): New. Insert size into parameter list.
3051 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3052 either __atomic_exchange_n or external library call.
9faeb493 3053 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3054 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3055 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3056 __atomic_load_n or an external library call.
3057 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3058 __atomic_store_n or an external library call.
3059 (resolve_overloaded_builtin): Handle new __atomic builtins.
3060
cf9e9959
EB
30612011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3062
3063 PR c++/50608
3064 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3065 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3066 <INDIRECT_REF>: Return the argument.
3067 <ARRAY_REF>: Remove special code for negative offset.
3068 Call fold_build_pointer_plus instead of size_binop.
3069 (fold_offsetof): Remove STOP_REF argument and adjust.
3070 * c-common.h (fold_offsetof_1): Declare.
3071 (fold_offsetof): Remove STOP_REF argument.
3072
25339f10
JM
30732011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3074
3075 PR c++/50810
3076 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3077 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3078 Wnarrowing for C++0x and C++98.
3079 * c.opt ([Wnarrowing]): Update.
3080
89401152
PC
30812011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3082
3083 PR c++/44277
3084 * c.opt: Add Wzero-as-null-pointer-constant.
3085
97e3ad20
JM
30862011-10-31 Jason Merrill <jason@redhat.com>
3087
15694fdd
JM
3088 * c.opt (-fdeduce-init-list): Off by default.
3089
97e3ad20
JM
3090 PR c++/50920
3091 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3092 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3093 and -Wc++11-compat.
3094 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3095
fb9120e3
RAV
30962011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3097
3098 PR c++/30066
3099 * c.opt (fvisibility-inlines-hidden): Description change.
3100
3ce4f9e4
ESR
31012011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3102
3103 Implement C++11 user-defined literals.
3104 * c-common.c (build_userdef_literal): New.
3105 * c-common.def: New tree code.
3106 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3107 * c-lex.c (interpret_float): Add suffix parm.
3108 (c_lex_with_flags): Build literal tokens.
3109
5f53c243
PC
31102011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3111
3112 PR c++/50841
3113 Revert:
3114 2011-10-23 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
263734e1
PC
31222011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3123
3124 PR c++/50810
3125 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3126 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3127 Wnarrowing for C++0x and C++98.
3128 * c.opt ([Wnarrowing]): Update.
3129
d2e312d7
PC
31302011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3131
3132 PR c++/45385
3133 * c-common.c (conversion_warning): Remove code looking for
3134 artificial operands.
3135
d17687f6
DS
31362011-10-18 Dodji Seketeli <dodji@redhat.com>
3137
3138 PR bootstrap/50760
3139 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3140 !NO_IMPLICIT_EXTERN_C.
d17687f6 3141
fc8396e9
PC
31422011-10-17 Michael Spertus <mike_spertus@symantec.com>
3143
3144 * c-common.c (c_common_reswords): Add __bases,
3145 __direct_bases.
3146 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3147
31482011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3149
3150 PR c++/50757
3151 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3152
847e697a
TT
31532011-10-15 Tom Tromey <tromey@redhat.com>
3154 Dodji Seketeli <dodji@redhat.com>
3155
3156 * c.opt (fdebug-cpp): New option.
3157 * c-opts.c (c_common_handle_option): Handle the option.
3158 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3159 output stream in parameter. Factorized from ...
3160 (maybe_print_line): ... this. Dump location debug information when
3161 -fdebug-cpp is in effect.
3162 (print_line_1): New static function. Takes an output stream in
3163 parameter. Factorized from ...
3164 (print_line): ... here. Dump location information when -fdebug-cpp
3165 is in effect.
3166 (scan_translation_unit): Dump location information when
3167 -fdebug-cpp is in effect.
3168
92582b75
TT
31692011-10-15 Tom Tromey <tromey@redhat.com>
3170 Dodji Seketeli <dodji@redhat.com>
3171
3172 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3173 without argument.
3174 * c-opts.c (c_common_handle_option)<case
3175 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3176 cases. Handle -ftrack-macro-expansion with and without argument.
3177
46427374
TT
31782011-10-15 Tom Tromey <tromey@redhat.com>
3179 Dodji Seketeli <dodji@redhat.com>
3180
3181 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3182 (print_line, cb_define, do_line_change): Adjust to avoid touching
3183 the internals of struct line_map. Use the public API instead.
3184 * c-pch.c (c_common_read_pch): Likewise.
3185 * c-lex.c (fe_file_change): Likewise.
3186
fc8396e9
PC
31872011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3188
3189 PR c++/17212
3190 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3191
31922011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3193
3194 PR c++/33067
3195 * c-pretty-print.c (pp_c_floating_constant): Output
3196 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3197
e79983f4
MM
31982011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3199
3200 * c-common.c (def_builtin_1): Delete old interface with two
3201 parallel arrays to hold standard builtin declarations, and replace
3202 it with a function based interface that can support creating
3203 builtins on the fly in the future. Change all uses, and poison
3204 the old names. Make sure 0 is not a legitimate builtin index.
3205 * c-omp.c (c_finish_omp_barrier): Ditto.
3206 (c_finish_omp_taskwait): Ditto.
3207 (c_finish_omp_flush): Ditto.
3208
6637388f
TG
32092011-10-11 Tristan Gingold <gingold@adacore.com>
3210
3211 * c.opt: (fallow-parameterless-variadic-functions): New.
3212
3797cb21
DS
32132011-09-08 Dodji Seketeli <dodji@redhat.com>
3214
3215 PR c++/33255 - Support -Wunused-local-typedefs warning
3216 * c-common.h (struct c_language_function::local_typedefs): New
3217 field.
9faeb493
UB
3218 (record_locally_defined_typedef, maybe_record_typedef_use)
3219 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 3220 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
3221 (maybe_record_typedef_use)
3222 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
3223 * c.opt: Declare new -Wunused-local-typedefs flag.
3224
693ddb1b
EB
32252011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3226
3227 PR middle-end/50266
3228 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3229 computations.
3230
830c740f
RG
32312011-09-05 Richard Guenther <rguenther@suse.de>
3232
3233 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3234 of integer_minus_one_node for empty array upper bounds.
3235
892a371f
DS
32362011-08-28 Dodji Seketeli <dodji@redhat.com>
3237
3238 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3239 it's the first time it's being called on this main TU.
3240
0e3fdb48
RB
32412011-08-24 Richard Guenther <rguenther@suse.de>
3242
3243 PR c/49396
3244 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3245
32462011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
3247
3248 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3249 defined in cpp_init_builtins and c_cpp_builtins.
3250
d4a83c10
JM
32512011-08-19 Joseph Myers <joseph@codesourcery.com>
3252
3253 * c-common.c (c_common_reswords): Add __builtin_complex.
3254 * c-common.h (RID_BUILTIN_COMPLEX): New.
3255
bbceee64
JM
32562011-08-18 Joseph Myers <joseph@codesourcery.com>
3257
3258 * c-common.c (c_common_reswords): Add _Noreturn.
3259 (keyword_is_function_specifier): Handle RID_NORETURN.
3260 * c-common.h (RID_NORETURN): New.
3261
0e3a99ae
AS
32622011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3263
3264 * c-common.c (unsafe_conversion_p): New function. Check if it is
3265 unsafe to convert an expression to the type.
3266 (conversion_warning): Adjust, use unsafe_conversion_p.
3267 * c-common.h (unsafe_conversion_p): New function declaration.
3268
20906c66
JJ
32692011-08-02 Jakub Jelinek <jakub@redhat.com>
3270
3271 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3272 (c_finish_omp_taskyield): New prototype.
3273 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3274 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3275 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3276 or RHS1 have side-effects, evaluate those too in the right spot,
3277 if it is a decl and LHS is also a decl, error out if they
3278 aren't the same.
3279 (c_finish_omp_taskyield): New function.
3280 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3281 * c-pragma.c (omp_pragmas): Add taskyield.
3282 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3283 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3284 PRAGMA_OMP_CLAUSE_MERGEABLE.
3285
770e5a2e
DS
32862011-07-25 Dodji Seketeli <dodji@redhat.com>
3287
3288 * c-common.h (set_underlying_type): Remove parm name from
3289 declaration.
3290
1baae426
RG
32912011-07-25 Romain Geissler <romain.geissler@gmail.com>
3292
3293 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 3294
fcb21722
JM
32952011-07-22 Jason Merrill <jason@redhat.com>
3296
76f86d00
JM
3297 PR c++/49793
3298 * c.opt (Wnarrowing): New.
3299
3a636414
JM
3300 PR c++/30112
3301 * c-common.h: Declare c_linkage_bindings.
3302 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3303
fcb21722
JM
3304 PR c++/49813
3305 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3306 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3307 as flag_isoc99 for 'restrict'.
3308 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3309
02614448
ILT
33102011-07-21 Ian Lance Taylor <iant@google.com>
3311
3312 PR middle-end/49705
3313 * c-common.c (c_disable_warnings): New static function.
3314 (c_enable_warnings): New static function.
3315 (c_fully_fold_internal): Change local unused_p to bool. Call
3316 c_disable_warnings and c_enable_warnings rather than change
3317 c_inhibit_evaluation_warnings.
3318
34429675
JM
33192011-07-20 Jason Merrill <jason@redhat.com>
3320
3321 PR c++/6709 (DR 743)
3322 PR c++/42603 (DR 950)
3323 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3324 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3325 (CPP_DECLTYPE): New.
3326 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3327
5d49b6a7
RG
33282011-07-19 Richard Guenther <rguenther@suse.de>
3329
3330 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3331 * c-omp.c (c_finish_omp_for): Likewise.
3332
e84a58ff
EB
33332011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3334
3335 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3336 body on the next line.
3337
329af3c7
JM
33382011-07-08 Jason Merrill <jason@redhat.com>
3339
4063e61b
JM
3340 PR c++/45437
3341 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3342
329af3c7
JM
3343 PR c++/49673
3344 * c-common.c (c_apply_type_quals_to_decl): Don't check
3345 TYPE_NEEDS_CONSTRUCTING.
3346
1a072294
RG
33472011-07-06 Richard Guenther <rguenther@suse.de>
3348
3349 * c-common.c (c_common_nodes_and_builtins):
3350 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3351
fce5dddd
RG
33522011-07-05 Richard Guenther <rguenther@suse.de>
3353
3354 * c-common.c (c_common_nodes_and_builtins): Build all common
3355 tree nodes first.
3356
45d439ac
JJ
33572011-06-27 Jakub Jelinek <jakub@redhat.com>
3358
56300785
JJ
3359 * c-common.h (c_tree_chain_next): New static inline function.
3360
45d439ac
JJ
3361 * c-common.c (check_builtin_function_arguments): Handle
3362 BUILT_IN_ASSUME_ALIGNED.
3363
e0a8ecf2
AM
33642011-06-21 Andrew MacLeod <amacleod@redhat.com>
3365
3366 * c-common.c: Add sync_ or SYNC__ to builtin names.
3367 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
3368
33692011-06-20 Pierre Vittet <piervit@pvittet.com>
3370
3371 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3372 handler.
3373 (gen_pragma_handler): New union.
3374 (internal_pragma_handler): New type.
3375 (c_register_pragma_with_data)
3376 (c_register_pragma_with_expansion_and_data): New functions.
3377
3378 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3379 (c_register_pragma, c_register_pragma_with_expansion)
3380 (c_invoke_pragma_handler): Changed to work with
3381 internal_pragma_handler.
3382 (c_register_pragma_with_data)
3383 (c_register_pragma_with_expansion_and_data): New functions.
3384
677f3fa8
JM
33852011-06-14 Joseph Myers <joseph@codesourcery.com>
3386
3387 * c-common.c: Include common/common-target.h.
3388 (handle_section_attribute): Use
3389 targetm_common.have_named_sections.
3390 * c-cppbuiltin.c: Include common/common-target.h.
3391 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3392
d7fc8c14
RG
33932011-06-10 Richard Guenther <rguenther@suse.de>
3394
3395 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3396 to print a IDENTIFIER_NODE.
3397
10e48e39
RO
33982011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3399 Joseph Myers <joseph@codesourcery.com>
3400
3401 * c.opt (fbuilding-libgcc): New option.
3402 * c-cppbuiltin.c (c_cpp_builtins): Define
3403 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3404
6976ae51
JM
34052011-06-07 Jason Merrill <jason@redhat.com>
3406
3ff60975
JM
3407 * c-common.c (max_tinst_depth): Lower default to 900.
3408
6976ae51
JM
3409 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3410
009db074
RG
34112011-06-07 Richard Guenther <rguenther@suse.de>
3412
3413 * c-common.c (c_common_nodes_and_builtins): Do not set
3414 size_type_node or call set_sizetype.
3415
b4592b92
DS
34162011-06-07 Dodji Seketeli <dodji@redhat.com>
3417
3418 PR debug/49130
3419 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 3420 type when using pointer comparison to compare types.
b4592b92 3421
014ab419
JW
34222011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3423
3424 * c.opt: Add -Wdelete-non-virtual-dtor.
3425 * c-opts.c (c_common_handle_option): Include it in -Wall.
3426
4f60111f
NF
34272011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3428
3429 PR bootstrap/49190
3430
3431 Revert:
3432 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3433
3434 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3435 not tree_common.
3436
4cc4f2f4
JJ
34372011-05-27 Jakub Jelinek <jakub@redhat.com>
3438
3439 PR c++/49165
3440 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3441 C++ don't call c_common_truthvalue_conversion on void type arms.
3442
38e01f9e
NF
34432011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3444
3445 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3446 (stmt_list_stack): Define.
3447 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3448 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3449
92e948a8
NF
34502011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3451
3452 * c-common.c (warning_candidate_p): Check for BLOCKs.
3453
a2fc3e63
NF
34542011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3455
3456 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3457 not tree_common.
3458
0957c029
JJ
34592011-05-25 Jakub Jelinek <jakub@redhat.com>
3460
3461 * c-common.c (def_fn_type): Remove extra va_end.
3462
828fb3ba
JM
34632011-05-23 Jason Merrill <jason@redhat.com>
3464
3465 PR c++/48106
3466 * c-common.c (c_common_get_narrower): New.
3467 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3468
dde05067
NF
34692011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3470
3471 * c-common.h (check_function_arguments): Tweak prototype of
3472 check_function_arguments.
3473 * c-common.c (check_function_arguments): Likewise. Adjust
3474 calls to check_function_nonnull, check_function_format, and
3475 check_function_sentinel.
3476 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3477 separate attributes and typelist arguments. Use
3478 FOREACH_FUNCTION_ARGS to iterate over argument types.
3479
3c0d13bf
PC
34802011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3481
3482 * c-common.c (c_common_reswords): Reorder.
3483 * c-common.h (rid): Likewise.
3484
8242dd04
NF
34852011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3486
3487 * c-common.c (def_fn_type): Don't call build_function_type, call
3488 build_function_type_array or build_varargs_function_type_array
3489 instead.
3490 (c_common_nodes_and_builtins): Likewise.
3491
3d528853
NF
34922011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3493
3494 * c-common.c (c_add_case_label): Omit the loc argument to
3495 build_case_label.
3496 * c-common.h (build_case_label): Remove.
3497 * c-semantics.c (build_case_label): Remove.
3498
a04a722b
JM
34992011-05-05 Joseph Myers <joseph@codesourcery.com>
3500
3501 * c-objc.h (objc_start_method_definition): Update prototype.
3502 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3503
e19a18d4
NF
35042011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3505
3506 * c-common.c (check_main_parameter_types): Reindent. Don't use
3507 TYPE_ARG_TYPES directly.
3508 (handle_nonnull_attribute): Likewise.
3509 (sync_resolve_params): Likewise.
3510 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3511 to check_format_string.
3512 (handle_format_attribute): Likewise.
3513 (check_format_string): Take a function type to examine instead of
3514 a type list. Use a function_arg_iterator to step through argument
3515 types.
3516
c62c040f
RG
35172011-05-04 Richard Guenther <rguenther@suse.de>
3518
3519 * c-common.c (fix_string_type): Use size_int for index type bounds.
3520 (start_fname_decls): Do not pass NULL to build_int_cst.
3521 (c_init_attributes): Likewise.
3522 * c-lex.c (c_lex_with_flags): Likewise.
3523
c12ff9d8
JM
35242011-04-27 Jason Merrill <jason@redhat.com>
3525
3526 * c-common.c (make_tree_vector_from_list): New.
3527 * c-common.h: Declare it.
3528
304dfbe3
RG
35292011-04-26 Richard Guenther <rguenther@suse.de>
3530
3531 PR preprocessor/48248
3532 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3533 for output size with -P.
3534
3c0d13bf
PC
35352011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3536
3537 * c-common.c (struct c_common_resword): Add __underlying_type.
3538 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3539
04695783
JM
35402011-04-20 Jim Meyering <meyering@redhat.com>
3541
3542 * c-format.c (init_dollar_format_checking): Remove useless
3543 if-before-free.
3544
0dc33c3c
NP
35452011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3546
3547 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 3548 (objc_detect_field_duplicates): New.
0dc33c3c 3549 * stub-objc.c: Likewise.
3c0d13bf 3550
c59633d9
NP
35512011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3552
3553 * stub-objc.c (objc_declare_protocols): Renamed to
3554 objc_declare_protocol.
3555 * c-objc.h: Likewise.
3c0d13bf 3556
32dabdaf
NP
35572011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3558
3559 * stub-objc.c (objc_declare_class): Updated argument name.
3560
81f653d6
NF
35612011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3562
3563 * c-common.h (c_common_init_ts): Declare.
3564 * c-common.c (c_common_init_ts): Define.
3565
eb345401
NP
35662011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3567
3568 * c-objc.h (objc_build_message_expr): Updated prototype.
3569 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 3570
a358e188
MJ
35712011-04-12 Martin Jambor <mjambor@suse.cz>
3572
3573 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3574 of cgraph_node.
3575
e6313a78
RG
35762011-04-11 Richard Guenther <rguenther@suse.de>
3577
3578 * c-common.c (complete_array_type): Build a range type of
3579 proper type.
3580
dcf0c47e
NF
35812011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3582
3583 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3584 (handle_type_generic_attribute): Likewise.
3585
1ee44b26
JM
35862011-04-07 Jason Merrill <jason@redhat.com>
3587
3588 PR c++/48450
3589 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3590 conversion from C++0x scoped enum.
3591
acce4e77
JM
35922011-04-06 Joseph Myers <joseph@codesourcery.com>
3593
3594 * c-target-def.h: New file.
3595 * c-target.def: New file.
3596 * c-target.h: New file.
3597 * c-common.c (targetcm): Don't define here.
3598 * c-common.h (default_handle_c_option): Declare.
3599 * c-format.c: Include c-target.h instead of target.h.
3600 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3601 include tm.h.
3602 (default_handle_c_option): Move from targhooks.c.
3603
e2eefb55
JJ
36042011-03-29 Jakub Jelinek <jakub@redhat.com>
3605
3606 PR preprocessor/48248
3607 * c-ppoutput.c (print): Add src_file field.
3608 (init_pp_output): Initialize it.
3609 (maybe_print_line): Don't optimize by adding up to 8 newlines
3610 if map->to_file and print.src_file are different file.
3611 (print_line): Update print.src_file.
3612
ba78087b
KT
36132011-03-25 Kai Tietz <ktietz@redhat.com>
3614
3615 * c-ada-spec.c (compare_comment): Use filename_cmp
3616 instead of strcmp for filename.
3617
0edf1bb2
JL
36182011-03-25 Jeff Law <law@redhat.com>
3619
adfac8df 3620 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 3621
c7dc8804
JM
36222011-03-25 Jason Merrill <jason@redhat.com>
3623
3624 * c.opt: Add -std=c++03.
3625
d1d879b1
EB
36262011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3627
3628 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3629
62d784f7
KT
36302011-03-17 Kai Tietz
3631
3632 PR target/12171
5050afdf
KT
3633 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3634 Display allowed attributes for function pointer types.
3635 (pp_c_attributes_display): New function to display
3636 attributes having affects_type_identity flag set to true.
3637 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3638
62d784f7
KT
3639 * c-common.c (c_common_attribute_table):
3640 Add new element.
3641 (c_common_format_attribute_table): Likewise.
3642
82d37118
JM
36432011-03-18 Jason Merrill <jason@redhat.com>
3644
49a000c3
JM
3645 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3646 * c-common.h: Don't declare it here.
3647 * c-common.c: Or define it here.
3648 * c-opts.c (c_common_handle_option): Or set it here.
3649
82d37118
JM
3650 PR c++/35315
3651 * c-common.c (handle_transparent_union_attribute): Don't
3652 make a duplicate type in C++.
3653
17bc631c
JM
36542011-03-15 Jason Merrill <jason@redhat.com>
3655
3656 * c-common.c (max_constexpr_depth): New.
3657 * c-common.h: Declare it.
3658 * c-opts.c (c_common_handle_option): Set it.
3659 * c.opt (fconstexpr-depth): New option.
3660
1b9b91a6
JM
36612011-03-11 Jason Merrill <jason@redhat.com>
3662
f231b5ff
JM
3663 * c-common.c (attribute_takes_identifier_p): Add missing const.
3664
1b9b91a6
JM
3665 PR c++/46803
3666 * c-common.c (attribute_takes_identifier_p): Assume that an
3667 unknown attribute takes an identifier.
3668
a19e4d44
NF
36692011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3670
3671 PR c/47786
3672 * c-common.c (c_type_hash): Call list_length instead of iterating
3673 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3674
982d62f6
JJ
36752011-02-19 Jakub Jelinek <jakub@redhat.com>
3676
3677 PR c/47809
3678 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3679
0a256240
NP
36802011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3681
3682 * c.opt (fobjc-abi-version=) New.
3683 (fobjc-nilcheck): New.
3684
ba9e6dd5
NF
36852011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3686
3687 PR c++/46890
3688 * c-common.h (keyword_is_decl_specifier): Declare.
3689 * c-common.c (keyword_is_decl_specifier): Define.
3690 (keyword_is_function_specifier): New function.
3691
7273813a
JJ
36922011-01-26 Jakub Jelinek <jakub@redhat.com>
3693
3694 PR c/47473
3695 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3696 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3697 REAL_TYPE.
3698
908ef79b
AC
36992011-01-26 Arnaud Charlet <charlet@adacore.com>
3700
3701 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3702
237e9384
JJ
37032011-01-26 Jakub Jelinek <jakub@redhat.com>
3704
3705 PR pch/47430
3706 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3707 after init_c_lex if pch_file is set.
3708
47ea1edf
DK
37092011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3710
d4dba752 3711 PR c++/43601
47ea1edf
DK
3712 * c.opt (-fkeep-inline-dllexport): New switch.
3713
2aa9c6ae
RG
37142011-01-12 Richard Guenther <rguenther@suse.de>
3715
3716 PR middle-end/32511
3717 * c-common.c (handle_weak_attribute): Warn instead of error
3718 on declaring an inline function weak.
3719
7bd11157
TT
37202011-01-05 Tom Tromey <tromey@redhat.com>
3721
3722 * c-common.h (lvalue_error): Update.
3723 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3724 not error.
3725
0e66e494 37262010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 3727
b4f588c4
NP
3728 PR objc/47075
3729 * c-objc.h (objc_finish_message_expr): Added argument to
3730 prototype.
3731
f4da8dce
NF
37322010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3733
3734 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3735 Use prototype_p.
3736
46270f14
NP
37372010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3738
3739 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 3740 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 3741
4816c593
NF
37422010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3743
3744 * c-common.h (readonly_error): Declare.
3745 * c-common.c (readonly_error): Define.
3746
7a6daeb0
NF
37472010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3748
3749 * c-common.h (invalid_indirection_error): Declare.
3750 * c-common.c (invalid_indirection_error): Define.
3751
892f6119
RG
37522010-12-03 Richard Guenther <rguenther@suse.de>
3753
3754 PR c/46745
3755 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3756 (pp_c_unary_expression): Likewise.
3757 (pp_c_expression): Likewise.
3758
6c39e757
NP
37592010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3760
3761 * c-common.h (objc_finish_function): New.
3762 (objc_non_volatilized_type): Removed.
3763 (objc_type_quals_match): Removed.
3764 * stub-objc.c (objc_finish_function): New.
3765 (objc_non_volatilized_type): Removed.
3766 (objc_type_quals_match): Removed.
9faeb493 3767
7c475d11
JM
37682010-11-30 Joseph Myers <joseph@codesourcery.com>
3769
3770 * c-common.h (parse_optimize_options): Declare.
3771 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3772 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3773
71f3e391
JM
37742010-11-29 Joseph Myers <joseph@codesourcery.com>
3775
3776 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3777 GET_ENVIRONMENT.
3778 * c-pch.c (O_BINARY): Don't define here.
3779 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3780
d5fabb58
JM
37812010-11-25 Joseph Myers <joseph@codesourcery.com>
3782
3783 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3784 targetm.except_unwind_info.
3785
299404a1
JM
37862010-11-23 Joseph Myers <joseph@codesourcery.com>
3787
3788 * c-opts.c (c_common_handle_option): Pass location to
3789 set_struct_debug_option.
3790
c98cd5bf
JM
37912010-11-23 Joseph Myers <joseph@codesourcery.com>
3792
3793 * c-common.c (visibility_options): Move from ../opts.c.
3794 * c-common.h (struct visibility_flags, visibility_options):
3795 Declare here.
3796 * c-opts.c (finish_options): Rename to c_finish_options.
3797 (c_common_init): Update call to finish_options.
3798
a9546771
NP
37992010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3800
3801 PR objc/34033
3802 * c-lex.c (lex_string): Check that each string in an Objective-C
3803 string concat sequence starts with either one or zero '@', and
3804 that there are no spurious '@' signs at the end.
3805
24a57808
JM
38062010-11-20 Joseph Myers <joseph@codesourcery.com>
3807
3808 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3809 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3810 HANDLE_PRAGMA_VISIBILITY.
3811 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3812 HANDLE_PRAGMA_VISIBILITY): Don't define.
3813 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3814
a9aa2c3a
NF
38152010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3816
3817 PR c++/16189
3818 PR c++/36888
3819 PR c++/45331
3820 * c-common.h (keyword_begins_type_specifier): Declare.
3821 (keyword_is_storage_class_specifier): Declare.
3822 (keyword_is_type_qualifier): Declare.
3823 * c-common.c (keyword_begins_type_specifier): New function.
3824 (keyword_is_storage_class_specifier): New function.
3825 (keyword_is_type_qualifier): Declare.
3826
5386338c
JM
38272010-11-19 Joseph Myers <joseph@codesourcery.com>
3828
3829 PR c/46547
3830 * c-common.c (in_late_binary_op): Define.
3831 (c_common_truthvalue_conversion): Check in_late_binary_op before
3832 calling c_save_expr.
3833 * c-common.h (in_late_binary_op): Declare.
3834
69ccdddb
JM
38352010-11-19 Joseph Myers <joseph@codesourcery.com>
3836
3837 * c-opts.c (c_common_handle_option): Update calls to
3838 set_struct_debug_option.
3839
6b192a09
NP
38402010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3841
3842 * c-common.h (objc_declare_protocols): Added additional argument.
3843 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 3844
fb52b50a
NF
38452010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3846
3847 PR c/33193
3848 * c-common.h (build_real_imag_expr): Declare.
3849 * c-semantics.c (build_real_imag_expr): Define.
3850
b37421c6
JM
38512010-11-17 Joseph Myers <joseph@codesourcery.com>
3852
3853 * c-opts.c (c_common_parse_file): Take no arguments.
3854 * c-common.h (c_common_parse_file): Update prototype.
3855
07078664
JJ
38562010-11-16 Jakub Jelinek <jakub@redhat.com>
3857
3858 PR c++/46401
3859 * c-common.c (warning_candidate_p): Don't track non-const calls
3860 or STRING_CSTs.
3861
c6a13190
ILT
38622010-11-15 Ian Lance Taylor <iant@google.com>
3863
3864 * c-lex.c (init_c_lex): Set macro debug callbacks if
3865 flag_dump_go_spec is set.
3866
925e8657
NP
38672010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3868
3869 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3870 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3871
bb0a9581
NF
38722010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3873
3874 PR preprocessor/45038
3875 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3876 dialects.
3877
c5fa0890
JM
38782010-11-12 Joseph Myers <joseph@codesourcery.com>
3879
3880 * c-common.h (c_family_lang_mask): Declare.
3881 * c-opts.c (c_family_lang_mask): Make extern.
3882 * c-pragma.c (handle_pragma_diagnostic): Use
3883 control_warning_option.
3884
a4d8c676
JM
38852010-11-12 Joseph Myers <joseph@codesourcery.com>
3886
3887 * c-common.c (parse_optimize_options): Update call to
3888 decode_options.
3889 * c-common.h (c_common_handle_option): Update prototype.
3890 * c-opts.c (c_common_handle_option): Take location_t parameter and
3891 pass it to other functions.
3892
f954bd2c
JM
38932010-11-11 Joseph Myers <joseph@codesourcery.com>
3894
3895 * c-opts.c (warning_as_error_callback): Remove.
3896 (c_common_initialize_diagnostics): Don't call
3897 register_warning_as_error_callback.
3898 (c_common_handle_option): Handle -Werror=normalized= here.
3899
d8a07487
JM
39002010-11-10 Joseph Myers <joseph@codesourcery.com>
3901
3902 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3903 in diagnostic.
3904 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3905 letter.
3906 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3907 Remove trailing '.' from diagnostics.
3908 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3909
d5478783
JM
39102010-11-10 Joseph Myers <joseph@codesourcery.com>
3911
3912 * c-common.c (parse_optimize_options): Pass global_dc to
3913 decode_options.
3914 * c-opts.c (c_common_handle_option): Pass &global_options to
3915 set_Wstrict_aliasing.
3916 * c.opt (v): Don't mark Common or document here.
3917
91ebb981
IS
39182010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3919
3920 PR target/44981
3921 * c-format.c (format_type): New type gcc_objc_string_format_type.
3922 (valid_stringptr_type_p): New.
3923 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3924 (check_format_string): Pass expected type, use
91ebb981
IS
3925 valid_stringptr_type_p (), check that the format string types are
3926 consistent with the format specification.
3927 (decode_format_attr): Warn if NSString is used outside objective-c.
3928 (format_types_orig): Add NSString.
3929 (format_name): New.
3930 (format_flags): New.
3931 (check_format_arg): Handle format strings requiring an external parser.
3932 first_target_format_type: New variable.
3933 (handle_format_attribute): Set up first_target_format_type, pass the
3934 expected format arg string type to check_format_string().
3935 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3936 * stub-objc.c (objc_string_ref_type_p): New.
3937 (objc_check_format_arg): New.
3938
bede2adc
NP
39392010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3940
9faeb493 3941 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3942 * c-common.h (objc_build_class_component_ref): New.
3943 * stub-objc.c (objc_build_class_component_ref): New.
3944
9a179d01
NP
39452010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3946
3947 * c.opt (Wproperty-assign-default): New option.
3948
22d8d616
NP
39492010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3950
3951 Implemented -fobjc-std=objc1 flag.
3952 * c.opt (fobjc-std=objc1): New option.
3953
2debdb4f
NP
39542010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3955
3956 Implemented format and noreturn attributes for Objective-C methods.
3957 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3958 attribute for Objective-C methods.
3959
ec52b111
JM
39602010-10-31 Jason Merrill <jason@redhat.com>
3961
3962 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3963 EXPR_LOC_OR_HERE.
3964
46a88c12
NP
39652010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3966
3967 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3968 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3969 (objc_add_property_declaration): Removed arguments for copies and
3970 ivar.
3971 (objc_build_getter_call): Renamed to
3972 objc_maybe_build_component_ref.
3973 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3974 (objc_is_property_ref): New.
3975 * c-common.c (c_common_reswords): Removed copies and ivar.
3976 * stub-objc.c (objc_add_property_declaration): Removed arguments
3977 for copies and ivar.
3978 (objc_build_getter_call): Renamed to
3979 objc_maybe_build_component_ref.
3980 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3981 (objc_is_property_ref): New.
9faeb493 3982
1e4bf85b
AC
39832010-10-29 Arnaud Charlet <charlet@adacore.com>
3984 Matthew Gingell <gingell@adacore.com>
3985
3986 * c-ada-spec.c (separate_class_package): New function.
3987 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3988 name of their enclosing package.
3989 (print_ada_declaration): Use separate_class_package.
3990
81f0bab2
JM
39912010-10-27 Jason Merrill <jason@redhat.com>
3992
2b08f2c5
JM
3993 * c-common.c (c_common_reswords): Add __is_literal_type.
3994 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3995
81f0bab2
JM
3996 * c-common.c (check_case_value): Remove special C++ code.
3997
200290f2
NP
39982010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3999
4000 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4001 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4002 and RID_LAST_PATTR.
4003 (objc_add_property_declaration): Added additional arguments.
4004 (objc_property_attribute_kind): Removed.
4005 (objc_set_property_attr): Removed.
4006 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4007 copy and nonatomic.
4008 * stub-objc.c (objc_add_property_declaration): Added additional
4009 arguments.
4010 (objc_set_property_attr): Removed.
9faeb493 4011
f614132b
NP
40122010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4013
4014 * c-common.h (objc_add_property_variable): Renamed to
4015 objc_add_property_declaration. Added location argument.
4016 * stub-objc.c (objc_add_property_variable): Same change.
4017
b8a18805
NP
40182010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4019
4020 * c-common.h (objc_maybe_printable_name): New.
4021 * stub-objc.c (objc_maybe_printable_name): New.
4022
30cd1c5d
AS
40232010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4024 Andrew Pinski <pinskia@gmail.com>
4025
4026 * c-common.h (c_common_mark_addressable_vec): Declare.
4027 * c-common.c (c_common_mark_addressable_vec): New function.
4028
249a82c4
NP
40292010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4030
4031 * c-common.h (objc_set_method_type): Removed.
4032 (objc_add_method_declaration): Added boolean argument.
4033 (objc_start_method_definition): Same change.
4034 (objc_build_method_signature): Same change.
4035 * stub-objc.c (objc_set_method_type): Removed.
4036 (objc_add_method_declaration): Added boolean argument.
4037 (objc_start_method_definition): Same change.
4038 (objc_build_method_signature): Same change.
4039
977e30bc
NP
40402010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4041
4042 * c-common.h (finish_file): Removed.
4043 (objc_write_global_declarations): New.
4044 * c-opts.c (c_common_parse_file): Do not call finish_file.
4045 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 4046
da57d1b9
NP
40472010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4048
4049 Implemented parsing @synthesize and @dynamic for
4050 Objective-C/Objective-C++.
4051 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4052 (objc_add_synthesize_declaration): New.
4053 (objc_add_dynamic_declaration): New.
4054 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4055 * stub-objc.c (objc_add_synthesize_declaration): New.
4056 (objc_add_dynamic_declaration): New.
9faeb493 4057
0069111f
MM
40582010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4059
4060 PR target/46041
4061 * c-cppbuiltin.c (mode_has_fma): Move function here from
4062 builtins.c. Don't use the fma optab, instead just use the
4063 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4064 using -save-temps.
4065
e426b47b
NP
40662010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4067
4068 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4069
e426b47b
NP
4070 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4071
9faeb493 4072 Radar 4330422
e426b47b
NP
4073 * c-common.h (objc_non_volatilized_type): New declaration
4074 * stub-objc.c (objc_non_volatilized_type): New stub.
4075
90fbfdc3
NP
40762010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4077
e426b47b 4078 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
4079
4080 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4081
9faeb493 4082 Radar 4133425
90fbfdc3 4083 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 4084 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 4085
c37d8c30
IS
40862010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4087
4088 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4089 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4090 (objc_ivar_visibility_kind): New enum.
4091 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 4092 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
4093 visibility enum.
4094
1b1562a5
MM
40952010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4096
4097 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4098 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4099 has the appropriate fma builtins.
4100 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4101
668ea4b1
IS
41022010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4103
1b1562a5 4104 merge from FSF apple 'trunk' branch.
668ea4b1 4105 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 4106
668ea4b1
IS
4107 Radars 4436866, 4505126, 4506903, 4517826
4108 * c-common.c (c_common_resword): Define @property and its attributes.
4109 * c-common.h: Define property attribute enum entries.
4110 (OBJC_IS_PATTR_KEYWORD): New.
4111 (objc_property_attribute_kind): New enum.
4112 Declare objc_set_property_attr (), objc_add_property_variable (),
4113 objc_build_getter_call () and objc_build_setter_call ().
4114 * stub-objc.c (objc_set_property_attr): New stub.
4115 (objc_add_property_variable): Likewise.
4116 (objc_build_getter_call): Likewise.
4117 (objc_build_setter_call) Likewise.
1b1562a5 4118
a1178b30
IS
41192010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4120
1b1562a5 4121 merge from FSF apple 'trunk' branch.
a1178b30
IS
4122 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4123
4124 Radar 3803157 (method attributes)
4125 * c-common.c (handle_deprecated_attribute): Recognize
4126 objc methods as valid declarations.
4127 * c-common.h: Declare objc_method_decl ().
1b1562a5 4128 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4129
a75bfaa6
JM
41302010-10-08 Joseph Myers <joseph@codesourcery.com>
4131
4132 * c-common.c (parse_optimize_options): Call
4133 decode_cmdline_options_to_array_default_mask before
4134 decode_options. Update arguments to decode_options.
4135 * c-common.h (c_common_init_options_struct): Declare.
4136 * c-opts.c (c_common_init_options_struct): New. Split out from
4137 c_common_init_options.
4138
f05b9d93
NP
41392010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4140
4141 Implemented fast enumeration for Objective-C.
4142 * c-common.h (objc_finish_foreach_loop): New.
4143 * stub-objc.c (objc_finish_foreach_loop): New.
4144
1ebe4b4f
JM
41452010-10-05 Joseph Myers <joseph@codesourcery.com>
4146
4147 * c-common.h (struct diagnostic_context): Don't declare here.
4148 (c_common_initialize_diagnostics): Declare using
4149 diagnostic_context typedef.
4150 * c-opts.c (c_common_handle_option): Pass global_dc to
4151 handle_generated_option.
4152
d4d24ba4
JM
41532010-10-04 Joseph Myers <joseph@codesourcery.com>
4154
4155 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4156 handle_generated_option.
4157
478a1c5b
ILT
41582010-10-03 Ian Lance Taylor <iant@google.com>
4159
4160 * c.opt (-fplan9-extensions): New option.
4161
82a1c2fe
FXC
41622010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4163
4164 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4165 Remove.
4166 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4167 of duplicating code.
4168
92902b1b
IS
41692010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4170
4171 * c-common.c: Add two new entries for @optional
4172 and @required keywords.
4173
4174 merge from FSF 'apple/trunk' branch.
4175 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4176
4177 Radar 4386773
4178 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4179 objective-c keywords.
4180 (objc_set_method_opt): New declaration.
4181 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 4182
46625112
JM
41832010-09-30 Joseph Myers <joseph@codesourcery.com>
4184
4185 * c-common.c (handle_optimize_attribute): Pass &global_options to
4186 cl_optimization_save and cl_optimization_restore.
4187 * c-opts.c (c_common_handle_option): Pass &global_options to
4188 handle_generated_option.
4189 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4190 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4191 &global_options to cl_optimization_restore.
4192
49b91f05
NP
41932010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4194
4195 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4196 Objective-C/Objective-C++ keywords.
4197
13ed556f 41982010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 4199
9faeb493
UB
4200 Merge from 'apple/trunk' branch on FSF servers.
4201
a6341d57
NP
4202 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4203
4204 Radar 4281748
4205 * c-common.h (objc_check_global_decl): New declaration.
4206 * stub-objc.c (objc_check_global_decl): New stub.
4207
f0036cca
JM
42082010-09-29 Joseph Myers <joseph@codesourcery.com>
4209
4210 * c.opt: Don't use VarExists.
4211
e3339d0f
JM
42122010-09-29 Joseph Myers <joseph@codesourcery.com>
4213
4214 * c-common.c (c_cpp_error): Update names of diagnostic_context
4215 members.
4216 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4217 cl_optimization members.
4218 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4219 sanitize_cpp_opts, finish_options): Update names of cpp_options
4220 members.
4221
1973201f
NP
42222010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4223
4224 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4225 (objc_is_reserved_word): Removed.
4226 * c-common.c: Updated comments.
4227 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4228 objc_is_reserved_word.
4229 * stub-objc.c (objc_is_reserved_word): Removed.
4230
f7e71da5
IS
42312010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4232
9faeb493 4233 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
4234 include attributes.
4235 (objc_start_method_definition): Likewise.
4236 (objc_build_keyword_decl): Likewise.
4237 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4238 (objc_start_method_definition): Likewise.
4239 (objc_build_keyword_decl): Likewise.
4240
c165dca7
IS
42412010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4242
4243 * c-common.h (objc_start_class_interface): Adjust prototype.
4244 (objc_start_category_interface): Likewise.
4245 (objc_start_protocol): Likewise.
4246 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4247 (objc_start_class_interface): Likewise.
4248 (objc_start_category_interface): Likewise.
4249
7458026b
ILT
42502010-09-27 Ian Lance Taylor <iant@google.com>
4251
4252 * c-common.c (c_common_attribute_table): Add no_split_stack.
4253 (handle_no_split_stack_attribute): New static function.
4254
b581b85b
NP
42552010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4256
9faeb493 4257 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
4258
4259 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4260
9faeb493 4261 Radar 4229905
b581b85b
NP
4262 * c-common.h (objc_have_common_type): New declaration.
4263 * stub-objc.c (objc_have_common_type): New stub.
4264
4265 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4266
4267 Radar 4154928
4268 * c-common.h (objc_common_type): New prototype.
9faeb493 4269 * stub-objc.c (objc_common_type): New stub.
b581b85b 4270
46a4da10
JH
42712010-09-24 Jan Hubicka <jh@suse.cz>
4272
4273 * c-common.c (handle_leaf_attribute): New function.
4274 (struct attribute_spec c_common_att): Add leaf.
4275
e200444e
JM
42762010-09-22 Joseph Myers <joseph@codesourcery.com>
4277
4278 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4279 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4280 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4281 -include-barrier, -include-directory, -include-directory=,
4282 -include-directory-after, -include-directory-after=,
4283 -include-prefix, -include-prefix=, -include-with-prefix,
4284 -include-with-prefix=, -include-with-prefix-after,
4285 -include-with-prefix-after=, -include-with-prefix-before,
4286 -include-with-prefix-before=, -no-integrated-cpp,
4287 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4288 -output=, -pedantic, -pedantic-errors, -preprocess,
4289 -print-missing-file-dependencies, -trace-includes, -traditional,
4290 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4291 -user-dependencies, -verbose, -write-dependencies,
4292 -write-user-dependencies, no-integrated-cpp, traditional): New.
4293
29a80ea6
NP
42942010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4295
4296 PR objc/23710
ac1fc2fc
NP
4297 * c-common.h (objc_start_method_definition): Return bool instead
4298 of void.
4299 * stub-objc.c (objc_start_method_definition): Return bool instead
4300 of void.
4301
43022010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4303
4304 PR objc/25965
4305 * c-common.h (objc_get_interface_ivars): New declaration.
4306 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 4307
de621752
ILT
43082010-09-15 Ian Lance Taylor <iant@google.com>
4309
4310 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 4311 messages. Remove period at end of warning message.
de621752 4312
ba885ec5
NS
43132010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4314
4315 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4316 (handle_alias_attribute): ... here.
4317 (handle_ifunc_attribute): New.
4318
c5ee1358
MM
43192010-09-06 Mark Mitchell <mark@codesourcery.com>
4320
4321 * c-common.h (do_warn_double_promotion): Declare.
4322 * c-common.c (do_warn_double_promotion): Define.
4323
0a0b3574
MM
43242010-09-05 Mark Mitchell <mark@codesourcery.com>
4325
4326 * c.opt (Wdouble-promotion): New.
4327
d1779886
JM
43282010-09-02 Joseph Myers <joseph@codesourcery.com>
4329
4330 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4331 fvtable-thunks, fxref): Mark no longer supported in help text.
4332
2d2bd949
JM
43332010-09-02 Joseph Myers <joseph@codesourcery.com>
4334
4335 * c.opt (Wimport, fall-virtual, falt-external-templates,
4336 fdefault-inline, fenum-int-equiv, fexternal-templates,
4337 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4338 fname-mangling-version-, fnew-abi, fnonnull-objects,
4339 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4340 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4341 applicable.
4342 (fhandle-exceptions): Mark with Alias and Warn.
4343 * c-opts.c (c_common_handle_option): Don't handle options marked
4344 as ignored.
4345
5de8299c
JM
43462010-09-02 Joseph Myers <joseph@codesourcery.com>
4347
4348 * c.opt (Wcomments, Werror-implicit-function-declaration,
4349 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4350 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4351 aliases.
4352 * c-common.c (option_codes): Use OPT_Wcomment instead of
4353 OPT_Wcomments.
4354 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4355 Don't handle options marked as aliases.
4356
0ceb0201
RG
43572010-08-25 Richard Guenther <rguenther@suse.de>
4358
4359 * c-common.c (c_common_get_alias_set): Remove special
4360 handling for pointers.
4361
ac47786e
NF
43622010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4363
4364 * c-common.c: Use FOR_EACH_VEC_ELT.
4365 * c-gimplify.c: Likewise.
4366 * c-pragma.c: Likewise.
4367
c878765b
JM
43682010-08-16 Joseph Myers <joseph@codesourcery.com>
4369
4370 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4371 RejectDriver.
4372 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4373 RejectDriver.
4374 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4375 instead of OPT_MDX and OPT_MMDX.
4376
603349bf
JM
43772010-08-16 Joseph Myers <joseph@codesourcery.com>
4378
4379 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4380
644fa7ac
JM
43812010-08-12 Joseph Myers <joseph@codesourcery.com>
4382
4383 * c.opt (MD, MMD): Change to MDX and MMDX.
4384 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4385
481e1176
JM
43862010-08-11 Joseph Myers <joseph@codesourcery.com>
4387
4388 * c-opts.c (c_common_handle_option): Call handle_generated_option
4389 instead of handle_option.
4390
ac8dc9f7
NF
43912010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4392
4393 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4394 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4395
4f8c876d
NF
43962010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4397
4398 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4399 (pending_redefine_extname): Change type to a VEC.
4400 (add_to_renaming_pragma_list): Update for new type of
4401 pending_redefine_extname.
ac8dc9f7 4402 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 4403
3b0c690e
AC
44042010-08-04 Arnaud Charlet <charlet@adacore.com>
4405
4406 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4407 visited.
4408 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4409 decide whether a type has already been declared/seen.
4410 Do not go to the original type.
4411 (dump_nested_types): New parameter forward.
4412 Generate forward declaration if needed and mark type as visited.
4413 (print_ada_declaration): Call dump_nested_types if not already done.
4414 Mark types as visited.
4415
1890bccc
JM
44162010-08-03 Joseph Myers <joseph@codesourcery.com>
4417
4418 * c.opt (-print-pch-checksum): Remove option.
4419 * c-opts.c (c_common_handle_option): Don't handle
4420 OPT_print_pch_checksum.
4421
5f20c657
JM
44222010-07-27 Joseph Myers <joseph@codesourcery.com>
4423
4424 * c-common.h (c_common_handle_option): Update prototype and return
4425 value type.
4426 * c-opts.c (c_common_handle_option): Update prototype and return
4427 value type. Update calls to handle_option and
4428 enable_warning_as_error.
4429
f551f80c
JJ
44302010-07-27 Jakub Jelinek <jakub@redhat.com>
4431
4432 PR c/45079
4433 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4434
61ff2bdc
JM
44352010-07-27 Joseph Myers <joseph@codesourcery.com>
4436
4437 * c-common.h (c_common_missing_argument): Remove.
4438 * c-opts.c (c_common_missing_argument): Remove.
4439 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4440 idirafter, imacros, include, isysroot, isystem, iquote): Add
4441 MissingArgError.
4442 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4443
7a9bf9a4
JM
44442010-07-27 Joseph Myers <joseph@codesourcery.com>
4445
4446 * c-common.h (c_common_option_lang_mask,
4447 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4448 New.
4449 (c_common_init_options): Update prototype.
4450 * c-opts.c (c_common_option_lang_mask): New.
4451 (c_common_initialize_diagnostics): Split out of
4452 c_common_init_options.
4453 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4454 New.
4455 (c_common_init_options): Update prototype. Use decoded options in
4456 search for -lang-asm.
4457
910ad8de
NF
44582010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4459
4460 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4461 * c-format.c: Likewise.
4462
718f9c0f
MLI
44632010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4464
4465 * c-common.h: Include diagnostic-core.h. Error if already
4466 included.
4467 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4468
4d451982
MLI
44692010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4470
adfac8df 4471 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
4472 Do not include expr.h
4473 (vector_mode_valid_p): Move here.
4474
119fe915
SB
44752010-06-21 DJ Delorie <dj@redhat.com>
4476
4477 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4478 allow these pragmas anywhere.
4479
44802010-06-14 Jakub Jelinek <jakub@redhat.com>
4481
4482 PR bootstrap/44509
4483 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4484 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4485 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4486 ggc_strdup instead of xstrdup.
4487
44882010-06-10 Jakub Jelinek <jakub@redhat.com>
4489
4490 * c-cppbuiltin.c: Include cpp-id-data.h.
4491 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4492 (lazy_hex_fp_value): New function.
4493 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4494
6662d794
MLI
44952010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4496
4497 * c-gimplify.c: Do not include tree-flow.h
4498
38f8b050
JR
44992010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4500
4501 PR other/44034
4502 * c-common.c: Rename targetm member:
4503 targetm.enum_va_list -> targetm.enum_va_list_p
4504
9589f23e
AS
45052010-06-28 Anatoly Sokolov <aesok@post.ru>
4506
4507 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4508
3b06d379
SB
45092010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4510
4511 * c-cppbuiltin.c: Do not include except.h.
4512
d166d4c3
AK
45132010-06-24 Andi Kleen <ak@linux.intel.com>
4514
9faeb493
UB
4515 * c-common.c (warn_for_omitted_condop): New.
4516 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 4517
70cb8be6
JM
45182010-06-21 Joseph Myers <joseph@codesourcery.com>
4519
4520 * c.opt (lang-objc): Remove.
4521 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4522
a4c97feb
JR
45232010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4524
4525 * c-opts.c: Include "tm_p.h".
4526
6e2f1956
JM
45272010-06-20 Joseph Myers <joseph@codesourcery.com>
4528
4529 * c-common.c (parse_optimize_options): Update call to
4530 decode_options.
4531
bc87224e
NF
45322010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4533
4534 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4535 new type of types_used_by_cur_var_decl.
4536
b49cf425
JR
45372010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4538
4539 PR bootstrap/44512
4540 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4541 for C++ standard compliance.
4542
59f9c2ed
JM
45432010-06-16 Jason Merrill <jason@redhat.com>
4544
4545 * c.opt: Add -Wnoexcept.
4546
33766b66
RG
45472010-06-16 Richard Guenther <rguenther@suse.de>
4548
4549 PR c/44555
4550 * c-common.c (c_common_truthvalue_conversion): Remove
4551 premature and wrong optimization concering ADDR_EXPRs.
4552
eff7e30c
AC
45532010-06-15 Arnaud Charlet <charlet@adacore.com>
4554
4555 * c-ada-spec.c (dump_sloc): Remove column info.
4556 (is_simple_enum): New function.
4557 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4558 enum types when relevant.
4559
6312e84d
MLI
45602010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4561
9faeb493 4562 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
4563 location.
4564
1cb42611
JM
45652010-06-10 Joseph Myers <joseph@codesourcery.com>
4566
4567 * c-opts.c (c_common_handle_option): Don't handle
4568 OPT_fshow_column.
4569
a9429e29
LB
45702010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4571
4572 * c-pragma.c (push_alignment): Use typed GC allocation.
4573 (handle_pragma_push_options): Likewise.
4574
4575 * c-common.c (parse_optimize_options): Likewise.
4576
4577 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4578 option.
4579
5498f011
JM
45802010-06-07 Joseph Myers <joseph@codesourcery.com>
4581
4582 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4583 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4584 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4585 flag_signed_bitfields, warn_strict_null_sentinel,
4586 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4587 flag_gen_declaration, flag_no_gnu_keywords,
4588 flag_implement_inlines, flag_implicit_templates,
4589 flag_implicit_inline_templates, flag_optional_diags,
4590 flag_elide_constructors, flag_default_inline, flag_rtti,
4591 flag_conserve_space, flag_access_control, flag_check_new,
4592 flag_new_for_scope, flag_weak, flag_working_directory,
4593 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4594 flag_enforce_eh_specs, flag_threadsafe_statics,
4595 flag_pretty_templates): Remove.
4596 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4597 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4598 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4599 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4600 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4601 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4602 flag_no_gnu_keywords, flag_implement_inlines,
4603 flag_implicit_templates, flag_implicit_inline_templates,
4604 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4605 flag_rtti, flag_conserve_space, flag_access_control,
4606 flag_check_new, flag_new_for_scope, flag_weak,
4607 flag_working_directory, flag_use_cxa_atexit,
4608 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4609 flag_threadsafe_statics, flag_pretty_templates,
4610 warn_strict_null_sentinel): Remove.
4611 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4612 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4613 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4614 fimplicit-inline-templates, fimplicit-templates,
4615 flax-vector-conversions, fms-extensions, fnil-receivers,
4616 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4617 frtti, fshort-double, fshort-enums, fshort-wchar,
4618 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4619 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4620 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4621 gen-decls, undef): Use Var.
4622 (fdefault-inline, foptional-diags): Document as doing nothing.
4623 * c-opts.c (c_common_handle_option): Remove cases for options now
4624 using Var. Mark ignored options as such.
4625
39dabefd
SB
46262010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4627
9faeb493 4628 * c-common.c: Moved to here from parent directory.
39dabefd
SB
4629 * c-common.def: Likewise.
4630 * c-common.h: Likewise.
4631 * c-cppbuiltin.c: Likewise.
4632 * c-dump.c: Likewise.
4633 * c-format.c: Likewise.
4634 * c-format.h : Likewise.
4635 * c-gimplify.c: Likewise.
4636 * c-lex.c: Likewise.
4637 * c-omp.c: Likewise.
4638 * c.opt: Likewise.
4639 * c-opts.c: Likewise.
4640 * c-pch.c: Likewise.
4641 * c-ppoutput.c: Likewise.
4642 * c-pragma.c: Likewise.
4643 * c-pragma.h: Likewise.
4644 * c-pretty-print.c: Likewise.
4645 * c-pretty-print.h: Likewise.
4646 * c-semantics.c: Likewise.
4647 * stub-objc.c: Likewise.
4648
4649 * c-common.c: Include gt-c-family-c-common.h.
4650 * c-pragma.c: Include gt-c-family-c-pragma.h.
4651\f
5624e564 4652Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
4653
4654Copying and distribution of this file, with or without modification,
4655are permitted in any medium without royalty provided the copyright
4656notice and this notice are preserved.