]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
[NDS32] Remove some features and options that are not available yet in nds32 port...
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
adfac8df
JJ
12015-01-09 Michael Collison <michael.collison@linaro.org>
2
3 * array-notation-common.c: Include hash-set.h, machmode.h,
4 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
5 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
6 * c-ada-spec.c: Ditto.
7 * c-cilkplus.c: Ditto.
8 * c-common.c: Include input.h due to flattening of tree.h.
9 Define macro GCC_C_COMMON_C.
10 * c-common.h: Flatten tree.h header files into c-common.h.
11 Remove include of tree-core.h.
12 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
13 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
14 fold-const.h, wide-int.h, and inchash.h due to
15 flattening of tree.h.
16 * c-dump.c: Ditto.
17 * c-format.c: Flatten tree.h header files into c-common.h.
18 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
19 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
20 fold-const.h, wide-int.h, and inchash.h due to
21 flattening of tree.h.
22 * c-dump.c: Include hash-set.h, machmode.h,
23 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
24 fold-const.h, wide-int.h, and inchash.h due to
25 flattening of tree.h.
26 * c-format.c: Include hash-set.h, machmode.h,
27 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
28 fold-const.h, wide-int.h, inchash.h and real.h due to
29 flattening of tree.h.
30 * c-gimplify.c: Include hash-set.h, machmode.h,
31 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
32 fold-const.h, wide-int.h, and inchash.h due to
33 flattening of tree.h.
34 * cilk.c: Ditto.
35 * c-lex.c: Ditto.
36 * c-omp.c: Ditto.
37 * c-opts.c: Ditto.
38 * c-pch.c: Ditto.
39 * c-ppoutput.c: Ditto.
40 * c-pragma.c: Ditto.
41 * c-pretty-print.c: Ditto.
42 * c-semantics.c: Ditto.
43 * c-ubsan.c: Ditto.
44 * stub-objc.c: Ditto.
45
f5481fc4
JM
462015-01-08 Jason Merrill <jason@redhat.com>
47
48 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
49 do_ubsan_in_current_function.
50 (ubsan_maybe_instrument_reference_or_call): Likewise.
51 * c-ubsan.h: Declare it.
52
de35aa66
MS
532015-01-08 Mike Stump <mikestump@comcast.net>
54
55 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
56
4a9a42ab
MP
572015-01-07 Marek Polacek <polacek@redhat.com>
58
59 PR c/64440
60 * c-common.c (c_fully_fold_internal): Warn for division and modulo
61 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
62
2f42e5de
TS
632015-01-05 Trevor Saunders <tsaunders@mozilla.com>
64
65 PR c++/31397
66 * c.opt (Wsuggest-override): New option.
67
5624e564
JJ
682015-01-05 Jakub Jelinek <jakub@redhat.com>
69
70 Update copyright years.
71
5bd012f8
MP
722015-01-05 Marek Polacek <polacek@redhat.com>
73
74 PR c/64423
75 * c-common.c (warn_array_subscript_with_type_char): Add location_t
76 parameter. Use it.
77 * c-common.h (warn_array_subscript_with_type_char): Update
78 declaration.
79
a7fa8d18
ESR
802014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
81
82 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
83 Control macro with flag_sized_deallocation.
84
768952be
MU
852014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
86
87 * c.opt (Wdiscarded-array-qualifiers): New option.
88
1f8d3e84
JJ
892014-12-19 Jakub Jelinek <jakub@redhat.com>
90
91 PR preprocessor/63831
92 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
93 and __has_cpp_attribute here.
94 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
95 c_common_has_attribute.
96 * c-common.h (c_common_has_attribute): New prototype.
97 * c-lex.c (init_c_lex): Set cb->has_attribute to
98 c_common_has_attribute instead of cb_has_attribute.
99 (get_token_no_padding): New function.
100 (cb_has_attribute): Renamed to ...
101 (c_common_has_attribute): ... this. No longer static. Use
102 get_token_no_padding, require ()s, don't build TREE_LIST
103 unnecessarily, fix up formatting, adjust diagnostics, call
104 init_attributes.
105
20b06add
JM
1062014-12-15 Jason Merrill <jason@redhat.com>
107
108 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
109 (-Wsized-deallocation): New.
110 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
111 to on in C++14 and up.
112
94a073b2
JM
1132014-12-11 Jason Merrill <jason@redhat.com>
114
acaa5911
JM
115 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
116
94a073b2
JM
117 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
118 we aren't complaining about VLAs.
119
7fb66c15
MP
1202014-12-06 Marek Polacek <polacek@redhat.com>
121
122 PR tree-optimization/64183
123 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
124 shift-expression if it is integer_type_node. Use types_compatible_p.
125
b731b390
JJ
1262014-11-29 Jakub Jelinek <jakub@redhat.com>
127
128 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
129 last argument from create_tmp_var_raw and create_tmp_var calls.
130 * cilk.c (gimplify_cilk_spawn): Likewise.
131 * c-omp.c (c_finish_omp_atomic): Likewise.
132
6a4da643
MP
1332014-11-28 Marek Polacek <polacek@redhat.com>
134
135 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
136 instead of unsigned_type_node.
137
541e35a6
MP
1382014-11-28 Marek Polacek <polacek@redhat.com>
139
140 PR c/63862
141 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
142 to op1_utype.
143 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
144 expression to unsigned_type_node.
145
dcc97066
MW
1462014-11-20 Mark Wielaard <mjw@redhat.com>
147
148 PR debug/38757
149 * c-opts.c (set_std_c89): Set lang_hooks.name.
150 (set_std_c99): Likewise.
151 (set_std_c11): Likewise.
152 (set_std_cxx98): Likewise.
153 (set_std_cxx11): Likewise.
154 (set_std_cxx14): Likewise.
155 (set_std_cxx1z): Likewise.
156
aa7da51a
JJ
1572014-11-21 Jakub Jelinek <jakub@redhat.com>
158
159 PR target/63764
160 * c-common.h (convert_vector_to_pointer_for_subscript): Change
161 return type to bool.
009a3480 162 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
163 (convert_vector_to_pointer_for_subscript): Change return type to
164 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
165 and copy it into a TARGET_EXPR and use that instead of *vecp
166 directly.
167
538dd0b7
DM
1682014-11-19 David Malcolm <dmalcolm@redhat.com>
169
170 Merger of git branch "gimple-classes-v2-option-3".
171 * ChangeLog.gimple-classes: New.
172 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
173 from being just a vec<gimple> to a vec<gbind *>.
174
c39a5e99
JJ
1752014-11-18 Jakub Jelinek <jakub@redhat.com>
176
177 PR sanitizer/63813
178 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
179 argument to ptype, set type to TREE_TYPE (ptype). Don't call
180 get_pointer_alignment for non-pointers. Use ptype, or if it is
181 reference type, corresponding pointer type, as type of kind
182 argument.
183 (ubsan_maybe_instrument_reference,
184 ubsan_maybe_instrument_member_call): Adjust callers.
185
8537a4a9
MP
1862014-11-15 Marek Polacek <polacek@redhat.com>
187
188 PR middle-end/63884
189 * array-notation-common.c (is_sec_implicit_index_fn): Return false
190 for NULL fndecl.
191 (extract_array_notation_exprs): Return for NULL node.
192
2079956a
JM
1932014-11-12 Joseph Myers <joseph@codesourcery.com>
194
195 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
196 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
197
1304953e
JJ
1982014-11-12 Jakub Jelinek <jakub@redhat.com>
199
200 PR c/59708
201 * c-common.c (check_builtin_function_arguments): Handle
202 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
203
e5e44252
AK
2042014-11-10 Andi Kleen <ak@linux.intel.com>
205
206 PR c/60804
207 * c-common.h (check_no_cilk): Declare.
208 * cilk.c (get_error_location): New function.
209 (check_no_cilk): Dito.
210
e64b984d
AK
2112014-11-10 Andi Kleen <ak@linux.intel.com>
212
213 * cilk.c (recognize_spawn): Use expression location
214 for error message.
215
13c21655
PC
2162014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
217
218 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
219
42fd12b1
ESR
2202014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
221
222 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
223 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
224 (__cpp_range_based_for, __cpp_initializer_lists,
225 __cpp_delegating_constructors, __cpp_nsdmi,
226 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
227 for C++11; (__cpp_attribute_deprecated): Remove in favor of
228 __has_cpp_attribute.
229 * c-lex.c (cb_has_attribute): New callback CPP function;
230 (init_c_lex): Set has_attribute callback.
231
6f450181
RB
2322014-11-04 Richard Biener <rguenther@suse.de>
233
234 * c-common.c (shorten_compare): Do not shorten mixed
235 DFP and non-DFP compares.
236
26f0e1d6
ESR
2372014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
238
239 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
240 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
241 Commentary and rearrangement of tests.
242 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
243 Commentary and rearrangement of tests.
244 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
245 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
246
ef4bddc2
RS
2472014-10-29 Richard Sandiford <richard.sandiford@arm.com>
248
249 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
250 enum from machine_mode.
251
c582198b
AM
2522014-10-28 Andrew MacLeod <amacleod@redhat.com>
253
adfac8df
JJ
254 * c-common.c: Adjust include files.
255 * c-gimplify.c: Ditto.
256 * cilk.c: Ditto.
257 * c-pragma.c: Ditto.
258 * c-ubsan.c: Ditto.
c582198b 259
60393bbc
AM
2602014-10-27 Andrew MacLeod <amacleod@redhat.com>
261
262 * c-gimplify.c: Adjust include files.
263
d723bb7c
MLI
2642014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
265
266 PR c++/53061
267 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
268 c_common_initialize_diagnostics.
269 * c-common.h: Likewise.
270
90f3520e
MP
2712014-10-24 Marek Polacek <polacek@redhat.com>
272
273 PR c/56980
274 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
275 print "struct"/"union"/"enum" for typedefed names.
276
59d7607a
MP
2772014-10-23 Marek Polacek <polacek@redhat.com>
278
279 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
280 in unsigned type.
281
d95a2703
JJ
2822014-10-22 Jakub Jelinek <jakub@redhat.com>
283 Yury Gribov <y.gribov@samsung.com>
284
285 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
286 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
287 instead of flag_sanitize_recover as bool flag.
288
8e6ef852
KY
2892014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
290
291 * cilk.c: Revert previous change.
292
948cf550
IZ
2932014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
294
295 PR c/63307
296 * cilk.c: Include vec.h.
297 (struct cilk_decls): New structure.
298 (wrapper_parm_cb): Split this function to...
299 (fill_decls_vec): ...this...
300 (create_parm_list): ...and this.
301 (compare_decls): New function.
302 (for_local_cb): Remove.
303 (wrapper_local_cb): Ditto.
304 (build_wrapper_type): For now first traverse and fill vector of
305 declarations then sort it and then deal with sorted vector.
306 (cilk_outline): Ditto.
307 (declare_one_free_variable): Ditto.
308
92574c7c
MP
3092014-10-17 Marek Polacek <polacek@redhat.com>
310
311 * c-opts.c (c_common_post_options): Set warn_implicit_int.
312 * c.opt (Wimplicit-int): Initialize to -1.
313
83685514
AM
3142014-10-16 Andrew MacLeod <amacleod@redhat.com>
315
316 * c-pragma.c: Adjust include files.
317 * c-semantics.c: Likewise.
318
5b8300ea
DD
3192014-10-16 DJ Delorie <dj@redhat.com>
320
321 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
322 multiples of bytes.
323
5f83e90b
JM
3242014-10-14 Jason Merrill <jason@redhat.com>
325
326 PR c++/63455
327 * c-common.h (CPP_PREPARSED_EXPR): New.
328 (N_CP_TTYPES): Adjust.
329
d73326ca
MP
3302014-10-15 Marek Polacek <polacek@redhat.com>
331
332 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
333
78a7c317
DD
3342014-10-14 DJ Delorie <dj@redhat.com>
335
336 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
337 types, not just __int128.
338 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
339 types, not just __int128.
340 (cpp_atomic_builtins): Round pointer sizes up.
341 (type_suffix): Use type precision, not specific types.
342 * c-common.c (c_common_reswords): Remove __int128 special case.
343 (c_common_type_for_size): Check for all __intN types, not just
344 __int128.
345 (c_common_type_for_mode): Likewise.
346 (c_common_signed_or_unsigned_type): Likewise.
347 (c_build_bitfield_integer_type): Likewise.
348 (c_common_nodes_and_builtins): Likewise.
349 (keyword_begins_type_specifier): Likewise.
350 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
351 __intN variants.
352
2a22f99c
TS
3532014-10-12 Trevor Saunders <tsaunders@mozilla.com>
354
355 * c-common.c: Use hash_table instead of hashtab.
356
2a8ef767
ESR
3572014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
358
adfac8df 359 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
360 C++11 section.
361
3c9aabbd
MG
3622014-10-03 Marc Glisse <marc.glisse@inria.fr>
363
364 PR c++/54427
365 PR c++/57198
366 PR c++/58845
367 * c-common.c (warn_logical_operator): Punt for vectors.
368
a15f7cb8
ESR
3692014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
370
371 Implement SD-6: SG10 Feature Test Recommendations
372 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
373 macros and the __has_header macro.
374
8d0cf15e
JM
3752014-09-30 Jason Merrill <jason@redhat.com>
376
dd5d5481
JM
377 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
378 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
379 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
380
b752325e
JM
381 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
382 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
383
8d0cf15e
JM
384 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
385 * c-common.c (c_common_reswords): Remove __is_convertible_to.
386
083e891e
MP
3872014-09-24 Marek Polacek <polacek@redhat.com>
388
389 PR c/61405
390 PR c/53874
391 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
392
7861b648
AK
3932014-09-23 Andi Kleen <ak@linux.intel.com>
394
395 * c-common.c (handle_no_reorder_attribute): New function.
396 (c_common_attribute_table): Add no_reorder attribute.
397
9a79452d
JM
3982014-09-22 Joseph Myers <joseph@codesourcery.com>
399
400 * c-cppbuiltin.c (c_cpp_builtins): Define
401 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
402 modes.
403
dd69f047
JM
4042014-09-18 Joseph Myers <joseph@codesourcery.com>
405
406 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
407 for supported floating-point modes.
408
737a4826
MLI
4092014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
410
411 * c.opt (Wpsabi): Use LangEnabledBy.
412 * c-opts.c (c_common_handle_option): Do not handle here.
413
8cc4b7a2
JM
4142014-09-12 Joseph Myers <joseph@codesourcery.com>
415
416 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
417 macros for floating-point modes.
418
179b5a55
MG
4192014-09-11 Marc Glisse <marc.glisse@inria.fr>
420
421 PR target/58757
422 * c-cppbuiltin.c (builtin_define_float_constants): Correct
423 __*_DENORM_MIN__ without denormals.
424
570a11fe
JJ
4252014-09-10 Jakub Jelinek <jakub@redhat.com>
426
427 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
428 ubsan_instrument_vla, ubsan_instrument_return): Adjust
429 ubsan_create_data callers.
430 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
431 index is constant or BIT_AND_EXPR with constant mask and is
432 small enough for the bound.
433 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
434 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
435
b559c810
MLI
4362014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
437
438 * c.opt: Add CppReason to various flags.
439 (Wdate-time): Re-sort.
440 * c-common.c: Include c-common.h earlier.
441 (struct reason_option_codes_t): Delete.
442 (c_option_controlling_cpp_error): Prefix global type and struct
443 with cpp_.
444
1ef33fd4
MLI
4452014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
446
447 * c.opt (Wnormalized): New.
448 (Wnormalized=): Use Enum and Reject Negative.
449 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
450
66bb34c0
JM
4512014-09-08 Joseph Myers <joseph@codesourcery.com>
452
453 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
454 digits of floating-point modes if -fbuilding-libgcc.
455
53d68b9f
JM
4562014-09-05 Joseph Myers <joseph@codesourcery.com>
457
458 * c-cppbuiltin.c (c_cpp_builtins): Also define
459 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
460 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
461 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
462 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
463 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
464 __LIBGCC_STACK_GROWS_DOWNWARD__,
465 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
466 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
467 __LIBGCC_DWARF_FRAME_REGISTERS__,
468 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
469 __LIBGCC_STACK_POINTER_REGNUM__ and
470 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
471 (builtin_define_with_value): Handle backslash-escaping in string
472 macro values.
473
f65586dc
RB
4742014-09-05 Richard Biener <rguenther@suse.de>
475
476 PR middle-end/63148
477 * c-format.c (check_format_arg): Properly handle
478 effectively signed POINTER_PLUS_EXPR offset.
479
2b71f4a4
MLI
4802014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
481
482 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
483 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
484 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
485 and Init.
486 * c-opts.c (c_common_handle_option): Do not handle here.
487 (sanitize_cpp_opts): Likewise.
488 * c-common.c (struct reason_option_codes_t): Handle
489 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
490
d2e4feca
MP
4912014-09-03 Marek Polacek <polacek@redhat.com>
492
493 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
494
9a771876
JJ
4952014-09-02 Jakub Jelinek <jakub@redhat.com>
496 Balaji V. Iyer <balaji.v.iyer@intel.com>
497 Igor Zamyatin <igor.zamyatin@intel.com>
498
499 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
500 * c-common.c (c_common_reswords): Added _Cilk_for.
501 * c-common.h (enum rid): Added RID_CILK_FOR.
502 (cilk_for_number_of_iterations): Add declaration.
503 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
504 CILK_FOR.
505 * c-pragma.c (init_pragma): Register "grainsize" pragma.
506 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
507
81b5d104
MLI
5082014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
509
510 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
511 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
512 Wundef): Use CPP, Var and Init.
513 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
514
b753b37b
MLI
5152014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
516
517 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
518 * c-opts.c (c_common_handle_option): Do not handle here.
519
028aee17
JM
5202014-08-25 Jason Merrill <jason@redhat.com>
521
522 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
523 -std=c++14 and -std=gnu++14, rather than the reverse.
524 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
525 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
526 * c-common.h (cxx_dialect): Remove cxx1y.
527
e4276ba5
ESR
5282014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
529
530 * c-common.h (enum cxx_dialect): Add cxx14.
531 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
532 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
533 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
534
a545cacd
JM
5352014-08-22 Jason Merrill <jason@redhat.com>
536
537 * c.opt (std=gnu++17): Fix alias.
538
59ea0364
MP
5392014-08-22 Marek Polacek <polacek@redhat.com>
540
541 PR c++/62199
542 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
543 check for vector types. Drop LHS argument.
544 * c-common.h (warn_logical_not_parentheses): Adjust.
545
596e808c
MLI
5462014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
547
548 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
549 (Wmultichar): Likewise.
550 (Wdate-time): Use C-family languages instead of Common. Use CPP
551 and Var.
552 * c-opts.c (c_common_handle_option): Do not handle the above
553 options here.
554 (sanitize_cpp_opts): Likewise.
555
18767f65
MLI
5562014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
557
558 PR fortran/44054
559 * c-opts.c: Include tree-diagnostics.h.
560 (c_diagnostic_finalizer): New.
561 (c_common_initialize_diagnostics): Use it.
562
b4413594
MLI
5632014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
564
565 PR preprocessor/51303
566 * c-common.c (struct reason_option_codes_t option_codes):
567 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
568
43f9a13c
MLI
5692014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
570
571 PR c/60975
572 PR c/53063
573 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
574 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
575 (c_common_post_options): Call init_global_opts_from_cpp.
576 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
577
04159acf
MP
5782014-08-19 Marek Polacek <polacek@redhat.com>
579
580 PR c++/62153
581 * c-common.c (maybe_warn_bool_compare): New function.
582 * c-common.h (maybe_warn_bool_compare): Declare.
583 * c.opt (Wbool-compare): New option.
584
35aff4fb
MP
5852014-08-19 Marek Polacek <polacek@redhat.com>
586
587 * c.opt (Wc99-c11-compat): New option.
588
177cce46
MP
5892014-08-19 Marek Polacek <polacek@redhat.com>
590
591 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
592 to warn_c90_c99_compat.
593 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
594 to -1.
595
6ae9194f
MLI
5962014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
597 Steven Bosscher <steven@gcc.gnu.org>
598
599 PR c/52952
600 * c-format.c: Add extra_arg_loc and format_string_loc to struct
601 format_check_results.
602 (check_function_format): Use true and add comment for boolean
603 argument.
604 (finish_dollar_format_checking): Use explicit location when warning.
605 (check_format_info): Likewise.
606 (check_format_arg): Set extra_arg_loc and format_string_loc.
607 (check_format_info_main): Use explicit location when warning.
608 (check_format_types): Pass explicit location.
609 (format_type_warning): Likewise.
610
8e54f6d3
MLI
6112014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
612
613 PR fortran/44054
614 * c-format.c: Handle Fortran flags.
615
cd4e76fc
IZ
6162014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
617
618 PR other/61962
619 * array-notation-common.c (find_rank): Added handling for other
620 types of references.
621
f3bede71
MP
6222014-08-10 Marek Polacek <polacek@redhat.com>
623
624 PR c/51849
625 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
626 * c.opt (Wc90-c99-compat): Add option.
627
9f25a338
TS
6282014-08-07 Trevor Saunders <tsaunders@mozilla.com>
629
630 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
631
62e4eb35
MP
6322014-08-03 Marek Polacek <polacek@redhat.com>
633
634 * c-common.c (check_case_value): Add location_t parameter. Use it.
635 (c_add_case_label): Pass loc to check_case_value.
636
b787e7a2
TS
6372014-08-02 Trevor Saunders <tsaunders@mozilla.com>
638
639 * cilk.c: Use hash_map instead of pointer_map.
640
6e2830c3
TS
6412014-08-02 Trevor Saunders <tsaunders@mozilla.com>
642
643 * c-gimplify.c: Use hash_set instead of pointer_set.
644
a7ee52fb
IZ
6452014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
646
647 PR middle-end/61455
648 * array-notation-common.c (extract_array_notation_exprs): Handling
649 of DECL_EXPR added.
650
944fa280
JJ
6512014-08-01 Jakub Jelinek <jakub@redhat.com>
652
653 * c-common.h (min_align_of_type): Removed prototype.
654 * c-common.c (min_align_of_type): Removed.
655 * c-ubsan.h (ubsan_maybe_instrument_reference,
656 ubsan_maybe_instrument_member_call): New prototypes.
657 * c-ubsan.c: Include stor-layout.h and builtins.h.
658 (ubsan_maybe_instrument_reference_or_call,
659 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
660 functions.
661
b4dfdc11
MG
6622014-07-31 Marc Glisse <marc.glisse@inria.fr>
663
664 PR c++/60517
665 * c.opt (-Wreturn-local-addr): Move to common.opt.
666
a41844e5
JM
6672014-07-30 Jason Merrill <jason@redhat.com>
668
669 PR c++/61659
670 PR c++/61687
671 Revert:
672 * c.opt (-fuse-all-virtuals): New.
673
976d5a22
TT
6742014-07-30 Tom Tromey <tromey@redhat.com>
675
676 PR c/59855
677 * c.opt (Wdesignated-init): New option.
678 * c-common.c (c_common_attribute_table): Add "designated_init".
679 (handle_designated_init): New function.
680
cdc94aca
MP
6812014-07-24 Marek Polacek <polacek@redhat.com>
682
683 PR c/57653
684 * c-opts.c (c_finish_options): If -imacros is in effect, return.
685
f41373b6
DS
6862014-07-16 Dodji Seketeli <dodji@redhat.com>
687
688 PR preprocessor/60723 - missing system-ness marks for macro tokens
689 * c-ppoutput.c (struct print::prev_was_system_token): New data
690 member.
691 (init_pp_output): Initialize it.
692 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
693 (do_line_change): Return a flag saying if a line marker was
694 emitted or not.
695 (scan_translation_unit): Detect if the system-ness of the token we
696 are about to emit is different from the one of the previously
697 emitted token. If so, emit a line marker. Avoid emitting useless
698 adjacent line markers. Avoid emitting line markers for tokens
699 originating from the expansion of built-in macros.
700 (scan_translation_unit_directives_only): Adjust.
701
4d661eaa
MP
7022014-07-15 Marek Polacek <polacek@redhat.com>
703
704 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
705 TYPE_MAX_VALUE is NULL.
706
b108f48f
JJ
7072014-07-14 Jakub Jelinek <jakub@redhat.com>
708
709 PR middle-end/61294
710 * c.opt (Wmemset-transposed-args): New warning.
711
c0221884
JM
7122014-07-10 Jason Merrill <jason@redhat.com>
713
714 PR c++/61659
715 PR c++/61687
716 * c.opt (-fuse-all-virtuals): New.
717
63dfbb95
RB
7182014-07-09 Richard Biener <rguenther@suse.de>
719
720 PR c-family/61741
721 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
722 using unsigned arithmetic if overflow does not wrap instead of
723 if overflow is undefined.
724
773ec47f
MP
7252014-07-06 Marek Polacek <polacek@redhat.com>
726
727 PR c/6940
728 * c.opt (Wsizeof-array-argument): New option.
729
00a7ba58
JJ
7302014-07-03 Jakub Jelinek <jakub@redhat.com>
731
732 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
733 comments->count <= 1, as comments->entries might be NULL.
734
52ec0ea3
MP
7352014-07-01 Marek Polacek <polacek@redhat.com>
736
737 * c.opt (Wint-conversion): New option.
738
d5c3d343
MP
7392014-07-01 Marek Polacek <polacek@redhat.com>
740
741 PR c/58286
742 * c.opt (Wincompatible-pointer-types): New option.
743
6e7ceb17
PC
7442014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
745
746 PR c++/51400
747 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
748 Do not discard TYPE_QUALS of type.
749
da73100b
JM
7502014-06-26 Jason Merrill <jason@redhat.com>
751
752 * c-common.h (enum cxx_dialect): Add cxx1z.
753 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
754 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
755
08eedf75
TJ
7562014-06-26 Teresa Johnson <tejohnson@google.com>
757
758 * c-common.h (get_dump_info): Declare.
759 * c-gimplify.c (c_genericize): Use saved dump files.
760 * c-opts.c (c_common_parse_file): Begin and end dumps
761 once around parsing invocation.
762 (get_dump_info): New function.
763
7b56b2f8
MP
7642014-06-23 Marek Polacek <polacek@redhat.com>
765 Andrew MacLeod <amacleod@redhat.com>
766
767 PR c/61553
768 * c-common.c (get_atomic_generic_size): Don't segfault if the
769 type doesn't have a size.
770
0e37a2f3
MP
7712014-06-20 Marek Polacek <polacek@redhat.com>
772
773 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
774 (ubsan_walk_array_refs_r): New function.
775 (c_genericize): Instrument array bounds.
776 * c-ubsan.c: Include "internal-fn.h".
777 (ubsan_instrument_division): Mark instrumented arrays as having
778 side effects. Adjust ubsan_type_descriptor call.
779 (ubsan_instrument_shift): Likewise.
780 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
781 (ubsan_instrument_bounds): New function.
782 (ubsan_array_ref_instrumented_p): New function.
783 (ubsan_maybe_instrument_array_ref): New function.
784 * c-ubsan.h (ubsan_instrument_bounds): Declare.
785 (ubsan_array_ref_instrumented_p): Declare.
786 (ubsan_maybe_instrument_array_ref): Declare.
787
7882014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
789
790 PR lto/61123
791 * c.opt (fshort-enums): Add to LTO.
792 * c.opt (fshort-wchar): Likewise.
793
5c3d09f7
MP
7942014-06-16 Marek Polacek <polacek@redhat.com>
795
796 PR c/60439
797 * c.opt (Wswitch-bool): Add Var.
798
9cf32741
JJ
7992014-06-12 Jakub Jelinek <jakub@redhat.com>
800
801 PR middle-end/61486
802 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
803 #pragma omp target teams or
804 #pragma omp {,target }teams distribute simd.
805
62984918
JM
8062014-06-12 Jason Merrill <jason@redhat.com>
807
808 * c.opt (Wabi=, fabi-compat-version): New.
809 * c-opts.c (c_common_handle_option): Handle -Wabi=.
810 (c_common_post_options): Handle flag_abi_compat_version default.
811 Disallow -fabi-compat-version=1.
812 * c-common.h (abi_version_crosses): New.
813
f961457f
JH
8142014-06-11 Jan Hubicka <hubicka@ucw.cz>
815
adfac8df 816 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
817 section names that are no longer trees.
818
92d28cbb
JJ
8192014-06-10 Jakub Jelinek <jakub@redhat.com>
820
821 PR fortran/60928
822 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
823 (omp_pragmas): ... back here.
824
742938c9
MP
8252014-06-05 Marek Polacek <polacek@redhat.com>
826
827 PR c/49706
828 * c-common.c (warn_logical_not_parentheses): New function.
829 * c-common.h (warn_logical_not_parentheses): Declare.
830 * c.opt (Wlogical-not-parentheses): New option.
831
9d548dfb
MP
8322014-06-04 Marek Polacek <polacek@redhat.com>
833
834 PR c/30020
835 * c-common.c (check_case_bounds): Add location parameter.
836 Use it.
837 (c_add_case_label): Pass loc to check_case_bounds.
838
fedfecef
MP
8392014-06-03 Marek Polacek <polacek@redhat.com>
840
841 PR c/60439
842 * c.opt (Wswitch-bool): New option.
843
f6a7cffc
TS
8442014-05-22 Thomas Schwinge <thomas@codesourcery.com>
845
040d18b6
TS
846 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
847 Remove prototypes.
848 (record_types_used_by_current_var_decl): Move prototype to where
849 it belongs.
850
f6a7cffc
TS
851 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
852 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
853 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
854
632f2871
RS
8552014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
856
857 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
858 * c-common.c (c_common_nodes_and_builtins): Don't initialize
859 void_zero_node.
860 * c-pretty-print.c (pp_c_void_constant): New function.
861 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
862 (c_pretty_printer::expression): Handle VOID_CST.
863 * cilk.c (extract_free_variables): Likewise.
864 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
865 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
866
766090c2
TS
8672014-05-17 Trevor Saunders <tsaunders@mozilla.com>
868
869 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
870 * c-pragma.c (push_alignment): Adjust.
871 (handle_pragma_push_options): Likewise.
872
661a0813
MP
8732014-05-09 Marek Polacek <polacek@redhat.com>
874
875 PR c/50459
876 * c-common.c (check_user_alignment): Return -1 if alignment is error
877 node.
878 (handle_aligned_attribute): Don't call default_conversion on
879 FUNCTION_DECLs.
880 (handle_vector_size_attribute): Likewise.
881 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
882 (handle_sentinel_attribute): Call default_conversion and allow even
883 integral types as an argument.
884
2793eeab
MP
8852014-05-08 Marek Polacek <polacek@redhat.com>
886
887 PR c/61053
888 * c-common.c (min_align_of_type): New function factored out from...
889 (c_sizeof_or_alignof_type): ...here.
890 * c-common.h (min_align_of_type): Declare.
891
f827930a
MP
8922014-05-08 Marek Polacek <polacek@redhat.com>
893
894 PR c/61077
895 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
896 parameter type of main.
897
ca49b74e
DD
8982014-05-07 DJ Delorie <dj@redhat.com>
899
900 * c-cppbuiltin.c (print_bits_of_hex): New.
901 (builtin_define_type_minmax): Print values using hex so as not to
902 require a pre-computed list of string values.
903
1d60af08
KZ
9042014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
905 Mike Stump <mikestump@comcast.net>
906 Richard Sandiford <rdsandiford@googlemail.com>
907
908 * c-ada-spec.c: Include wide-int.h.
909 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
910 (dump_generic_ada_node): Use wide-int interfaces.
911 * c-common.c: Include wide-int-print.h.
912 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
913 (pointer_int_sum): Use wide-int interfaces.
914 (c_common_nodes_and_builtins): Use make_int_cst.
915 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
916 (handle_alloc_size_attribute): Use wide-int interfaces.
917 (get_nonnull_operand): Likewise.
918 * c-format.c (get_constant): Use tree_fits_uhwi_p.
919 * c-lex.c: Include wide-int.h.
920 (narrowest_unsigned_type): Take a widest_int rather than two
921 HOST_WIDE_INTs.
922 (narrowest_signed_type): Likewise.
923 (interpret_integer): Update accordingly. Use wide-int interfaces.
924 (lex_charconst): Use wide-int interfaces.
925 * c-pretty-print.c: Include wide-int.h.
926 (pp_c_integer_constant): Use wide-int interfaces.
927 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
928 INT_CST_LT_UNSIGNED.
929
b15458be
RB
9302014-05-06 Richard Biener <rguenther@suse.de>
931
932 * c-opts.c (c_common_post_options): For -freestanding,
933 -fno-hosted and -fno-builtin disable pattern recognition
934 if not enabled explicitely.
935
6577374e
MP
9362014-05-02 Marek Polacek <polacek@redhat.com>
937
938 * c.opt (Wsizeof-pointer-memaccess): Describe option.
939
d00887e8
MP
9402014-05-01 Marek Polacek <polacek@redhat.com>
941
942 PR c/43245
943 * c.opt (Wdiscarded-qualifiers): Add.
944
f8ed5150
MP
9452014-04-30 Marek Polacek <polacek@redhat.com>
946
947 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
948 INT_MIN / -1 sanitization only for integer types.
949
45484dcf
MP
9502014-04-25 Marek Polacek <polacek@redhat.com>
951
952 PR c/18079
953 * c-common.c (handle_noinline_attribute): Warn if the attribute
954 conflicts with always_inline attribute.
955 (handle_always_inline_attribute): Warn if the attribute conflicts
956 with noinline attribute.
957
38e514c0
MP
9582014-04-25 Marek Polacek <polacek@redhat.com>
959
960 PR c/60156
961 * c-common.c (check_main_parameter_types): Warn about variadic main.
962
44875f92
MS
9632014-04-24 Mike Stump <mikestump@comcast.net>
964
965 * c.opt (Wshadow-ivar): Default to on.
966
dcaaa5a0
DP
9672014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
968
969 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
970
c07d7c02
MP
9712014-04-23 Marek Polacek <polacek@redhat.com>
972
973 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
974
1c33c9b7
JJ
9752014-04-22 Jakub Jelinek <jakub@redhat.com>
976
977 PR sanitizer/60275
978 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
979 if flag_sanitize_undefined_trap_on_error.
980 (ubsan_instrument_division, ubsan_instrument_shift,
981 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
982 if !flag_sanitize_recover.
983
793c625f
MG
9842014-04-22 Marc Glisse <marc.glisse@inria.fr>
985
986 PR libstdc++/43622
987 * c-common.c (registered_builtin_types): Make non-static.
988 * c-common.h (registered_builtin_types): Declare.
989
b0f1bf36
RB
9902014-04-14 Richard Biener <rguenther@suse.de>
991 Marc Glisse <marc.glisse@inria.fr>
992
993 PR c/60819
994 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
995 apply may-alias the scalar pointer type when applicable.
996
3b07fa4a
IZ
9972014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
998
999 PR middle-end/60467
1000 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1001 as possible argument for Cilk_spawn.
1002
cbbd2b1c
TB
10032014-04-11 Tobias Burnus <burnus@net-b.de>
1004
1005 PR c/60194
1006 * c.opt (Wformat-signedness): Add
1007 * c-format.c(check_format_types): Use it.
1008
6415bd5d
JM
10092014-04-11 Jason Merrill <jason@redhat.com>
1010
1011 PR c++/57926
1012 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1013 default_conversion for an array argument.
1014
6525783a
MP
10152014-04-08 Marek Polacek <polacek@redhat.com>
1016
1017 PR sanitizer/60745
1018 * c-ubsan.c: Include asan.h.
1019 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1020
880a467b
NS
10212014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1022
1023 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1024
7b59ff2d
MP
10252014-04-02 Marek Polacek <polacek@redhat.com>
1026
1027 * c-common.h (c_expand_expr): Remove declaration.
1028
8edbfaa6
JJ
10292014-03-28 Jakub Jelinek <jakub@redhat.com>
1030
1031 PR c++/60689
1032 * c-common.c (add_atomic_size_parameter): When creating new
1033 params vector, push the size argument first.
1034
07d72e1d
JJ
10352014-03-26 Jakub Jelinek <jakub@redhat.com>
1036
1037 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1038 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1039 ubsan_create_data callers.
1040
b35e0fa0
JJ
10412014-03-22 Jakub Jelinek <jakub@redhat.com>
1042
1043 PR debug/60603
1044 * c-opts.c (c_finish_options): Restore cb_file_change call to
1045 <built-in>.
1046
39a1ebb3
JJ
10472014-03-13 Jakub Jelinek <jakub@redhat.com>
1048
1049 PR middle-end/36282
1050 * c-pragma.c (apply_pragma_weak): Only look at
1051 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1052 DECL_ASSEMBLER_NAME_SET_P (decl).
1053 (maybe_apply_pending_pragma_weaks): Exit early if
1054 vec_safe_is_empty (pending_weaks) rather than only when
1055 !pending_weaks.
1056 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1057 set assembler name back to NULL afterwards.
1058
a07f6ed2
JM
10592014-03-11 Jason Merrill <jason@redhat.com>
1060
1061 * c.opt: Add -std=gnu++14.
1062
75b107f5
IB
10632014-03-11 Ian Bolton <ian.bolton@arm.com>
1064
1065 * c-opts.c (c_common_post_options): Don't override
1066 -ffp-contract=fast if unsafe-math-optimizations is on.
1067
f42c637e
PM
10682014-03-08 Paulo Matos <paulo@matos-sorge.com>
1069
1070 * c.opt: Enable LTO FE for fshort-double.
1071
70e24808
JM
10722014-03-07 Jason Merrill <jason@redhat.com>
1073
1074 * c.opt: Add -std=c++14.
1075
3af9c5e9
MP
10762014-03-06 Marek Polacek <polacek@redhat.com>
1077
1078 PR c/60197
1079 * cilk.c (contains_cilk_spawn_stmt): New function.
1080 (contains_cilk_spawn_stmt_walker): Likewise.
1081 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1082 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1083
b3bdf019
JJ
10842014-03-03 Jakub Jelinek <jakub@redhat.com>
1085
1086 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1087 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1088 even when flag_preprocess_only.
1089
ca7e759d
JM
10902014-02-26 Jason Merrill <jason@redhat.com>
1091
1092 PR c++/59231
1093 PR c++/11586
1094 * c-common.c (shorten_compare): Don't check
1095 c_inhibit_evaluation_warnings.
1096
28e41874
JJ
10972014-02-19 Jakub Jelinek <jakub@redhat.com>
1098
cca615af
JJ
1099 PR c/37743
1100 * c-common.c (c_common_nodes_and_builtins): When initializing
1101 c_uint{16,32,64}_type_node, also set corresponding
1102 uint{16,32,64}_type_node to the same value.
1103
28e41874
JJ
1104 PR c++/60267
1105 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1106 for PRAGMA_IVDEP if flag_preprocess_only.
1107
c2bf53a1
JJ
11082014-02-12 Jakub Jelinek <jakub@redhat.com>
1109
1110 PR c/60101
1111 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1112 if false, add ADD itself, rather than vice versa.
1113 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1114 copy. For SAVE_EXPR, only call merge_tlist once.
1115
8fcbce72
JJ
11162014-02-08 Jakub Jelinek <jakub@redhat.com>
1117
1118 PR middle-end/60092
1119 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1120 and tree_to_uhwi.
1121 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1122 functions.
1123 (c_common_attribute_table): Add alloc_align and assume_aligned
1124 attributes.
1125
0a756a3f
MP
11262014-02-06 Marek Polacek <polacek@redhat.com>
1127
1128 PR c/60087
1129 * c-common.c (warn_for_sign_compare): Call warning_at with location
1130 instead of warning.
1131
7ec4847a
MP
11322014-02-05 Marek Polacek <polacek@redhat.com>
1133
1134 PR c/53123
1135 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1136 statement.
1137
66f20604
MP
11382014-02-04 Marek Polacek <polacek@redhat.com>
1139
1140 PR c/60036
1141 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1142 SAVE_EXPR.
1143
5d77fb19
MG
11442014-02-03 Marc Glisse <marc.glisse@inria.fr>
1145
1146 PR c++/53017
1147 PR c++/59211
1148 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1149 handle_vector_size_attribute, handle_nonnull_attribute): Call
1150 default_conversion on the attribute argument.
1151 (handle_nonnull_attribute): Increment the argument number.
1152
81e5eca8
MP
11532014-01-31 Marek Polacek <polacek@redhat.com>
1154
1155 PR c/59963
1156 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1157 build_function_call_vec.
1158 (resolve_overloaded_builtin): Likewise.
1159 * c-common.h (build_function_call_vec): Adjust declaration.
1160
68fca595
MP
11612014-01-30 Marek Polacek <polacek@redhat.com>
1162
1163 PR c/59940
1164 * c-common.h (unsafe_conversion_p): Adjust declaration.
1165 (warnings_for_convert_and_check): Likewise.
1166 (convert_and_check): Likewise.
1167 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1168 expansion_point_location_if_in_system_header on it.
1169 (warnings_for_convert_and_check): Add location parameter. Call
1170 expansion_point_location_if_in_system_header on it. Use it.
1171 (convert_and_check): Add location parameter. Use it.
1172 (conversion_warning): Likewise.
1173 (c_add_case_label): Adjust convert_and_check calls.
1174 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1175
b72271b9
BI
11762014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1177
1178 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1179 flag_cilkplus.
1180 * c-pragma.c (init_pragma): Likewise.
1181 * c.opt: Likewise.
1182
393e8e8b
MP
11832014-01-23 Marek Polacek <polacek@redhat.com>
1184
1185 PR c/59846
1186 * c-common.c (shorten_compare): Add location_t parameter.
1187 * c-common.h (shorten_binary_op): Adjust declaration.
1188
f04dda30
MP
11892014-01-23 Marek Polacek <polacek@redhat.com>
1190
1191 PR c/58346
1192 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1193 * c-common.h: Declare it.
1194
621955cb
EB
11952014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1196
1197 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1198 * c-ada-spec.c (dump_ads): Likewise.
1199 (cpp_check): Likewise.
1200 (dump_ada_specs): Likewise.
1201
12022014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
1203
1204 PR c++/49718
1205 * c-common.c (handle_no_instrument_function_attribute): Allow
1206 no_instrument_function attribute in class member
1207 definition/declaration.
1208
241f845a
JJ
12092014-01-15 Jakub Jelinek <jakub@redhat.com>
1210
1211 PR c/58943
1212 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1213 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1214 being COMPOUND_EXPR.
1215 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1216 operand a SAVE_EXPR and second MODIFY_EXPR.
1217
e83b8e2e
JJ
12182014-01-09 Jakub Jelinek <jakub@redhat.com>
1219
1220 PR target/58115
1221 * c-pch.c (c_common_write_pch): Call
1222 prepare_target_option_nodes_for_pch.
1223
23a5b65a
RS
12242014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1225
1226 Update copyright years
1227
f9030485
RS
12282014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1229
1230 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1231 the copyright notice.
1232
f2aa696b
EB
12332013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1234
1235 * c-ada-spec.c (print_constructor): New function.
1236 (print_destructor): Retrieve the origin of the destructor.
1237 (print_ada_declaration): Revamp handling of constructors/destructors.
1238
1f26ac87
JM
12392013-12-23 Stuart Hastings <stuart@apple.com>
1240 Bill Maddox <maddox@google.com>
1241 Jason Merrill <jason@redhat.com>
1242
1243 * c.opt: Add -fdeclone-ctor-dtor.
1244 * c-opts.c (c_common_post_options): Default to on iff -Os.
1245
41958c28
BI
12462013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1247
1248 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1249 attribute.
1250 * c-pragma.h (enum pragma_cilk_clause): Remove.
1251 (enum pragma_omp_clause): Added the following fields:
1252 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1253 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1254 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1255 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1256 PRAGMA_CILK_CLAUSE_UNIFORM.
1257
1258
12893402
BI
12592013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1260
1261 * cilk.c (cilk_outline): Made this function non-static.
1262 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1263 (create_cilk_wrapper): Added a new parameter: a function pointer.
1264 (c_install_body_w_frame_cleanup): Remove
1265 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1266 * c-common.h (cilk_outline): New prototype.
1267 (gimplify_cilk_spawn): Removed two parameters.
1268 (cilk_install_body_with_frame_cleanup): New prototype.
1269 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1270 CILK_SPAWN_STMT case.
1271
085b42ed
BS
12722013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1273
2ce064c3
BS
1274 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1275
085b42ed
BS
1276 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1277 (int_array_type_node): Remove.
1278 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1279
9e36c9ed
MP
12802013-12-05 Marek Polacek <polacek@redhat.com>
1281
1282 PR c/52023
1283 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1284 [ADJUST_FIELD_ALIGN].
1285
296674db
JM
12862013-12-04 Joseph Myers <joseph@codesourcery.com>
1287
1288 PR c/52023
1289 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1290 and check field alignment if set.
1291 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1292 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1293
31e071ae
MP
12942013-12-04 Jakub Jelinek <jakub@redhat.com>
1295 Marek Polacek <polacek@redhat.com>
1296
1297 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1298 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1299
d7947e19
L
13002013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1301
1302 PR c/59309
1303 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1304 arguments.
1305
fad7652e
JJ
13062013-11-29 Jakub Jelinek <jakub@redhat.com>
1307
1308 PR c/59280
1309 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1310 goto invalid. If it is error_mark_node, don't issue further
1311 diagnostics.
1312
8b5e1202
SO
13132013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1314
1315 * c.opt (Wopenmp-simd): New.
1316
0a508bb6
JJ
13172013-11-22 Jakub Jelinek <jakub@redhat.com>
1318
1319 * c-ubsan.h (ubsan_instrument_return): New prototype.
1320 * c-ubsan.c (ubsan_instrument_return): New function.
1321
2fb9a547
AM
13222013-11-22 Andrew MacLeod <amacleod@redhat.com>
1323
1324 * c-common.c: Add required include files from gimple.h.
1325 * c-gimplify.c: Likewise
1326 * cilk.c: Likewise
1327
8400e75e
DM
13282013-11-22 David Malcolm <dmalcolm@redhat.com>
1329
1330 * c-common.c (unsafe_conversion_p): Remove use of
1331 EXPR_LOC_OR_HERE macro.
1332 (conversion_warning): Likewise.
1333 (warnings_for_convert_and_check): Likewise.
1334 (warn_for_collisions_1): Likewise.
1335 (shorten_compare): Likewise, and remove use of in_system_header
1336 macro, using the location from the former.
1337 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1338 (cb_def_pragma): Remove use of in_system_header macro.
1339 (lex_string): Likewise.
1340 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1341
eb1ce453
KZ
13422013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1343 Mike Stump <mikestump@comcast.net>
1344 Richard Sandiford <rdsandiford@googlemail.com>
1345
1346 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1347 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1348 tree_fits_shwi_p or tree_fits_uhwi_p.
1349 (dump_generic_ada_node): Likewise.
1350 * c-format.c (check_format_arg): Likewise.
1351 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1352
6b3b8c27
KZ
13532013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1354
1355 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1356
49b0aa18
JC
13572013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1358
1359 PR c/53001
1360 * c-common.c (unsafe_conversion_p): Make this function
1361 return an enumeration with more detail.
1362 (conversion_warning): Use the new return type of
1363 unsafe_conversion_p to separately warn either about conversions
1364 that lower floating point number precision or about the other
1365 kinds of conversions.
1366 * c-common.h (enum conversion_safety): New enumeration.
1367 (unsafe_conversion_p): switching return type to
1368 conversion_safety enumeration.
1369 * c.opt: Adding new warning -Wfloat-conversion and
1370 enabling it with -Wconversion.
1371
b826515a
BS
13722013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1373
1374 * c-opts.c: Include plugin.h.
1375 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1376
b9a55b13
MP
13772013-11-19 Marek Polacek <polacek@redhat.com>
1378
1379 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1380 call.
1381 (ubsan_instrument_shift): Likewise.
1382 (ubsan_instrument_vla): Likewise.
1383
7d362f6c
RS
13842013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1385
1386 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1387 cast to unsigned type.
1388
386b1f1f
RS
13892013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1390
1391 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1392 tree_low_cst.
1393 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1394 rather than tree_low_cst.
1395
ae7e9ddd
RS
13962013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1397
1398 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1399 tree_to_uhwi throughout.
1400
9439e9a1
RS
14012013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1402
1403 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1404 tree_low_cst (..., 0) with tree_to_shwi throughout.
1405
cc269bb6
RS
14062013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1407
1408 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1409 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1410
9541ffee
RS
14112013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1412
1413 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1414 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1415
c02065fc
AH
14162013-11-15 Aldy Hernandez <aldyh@redhat.com>
1417
1418 * c-cilkplus.c: New file.
1419 * c-common.c (readonly_error): Add location argument.
1420 * c-common.h (readonly_error): Same.
1421 (c_finish_cilk_clauses): Protoize.
1422 (c_check_cilk_loop): Same.
1423 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1424 Do not fail on error_mark_node.
1425 Abstract increment canonicalization to here...
1426 (c_omp_for_incr_canonicalize_ptr): New.
1427 c-pragma.c (init_pragma): Register "simd" pragma.
1428 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1429 (enum pragma_cilk_clause): New.
1430
9cc65f15
RS
14312013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1432
1433 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1434 wchar_type and host_integerp checks.
1435
18f429e2
AM
14362013-11-14 Andrew MacLeod <amacleod@redhat.com>
1437
1438 * c-common.c: Likewise.
1439 * c-gimplify.c: Likewise.
1440 * cilk.c: Likewise.
1441
d8a2d370
DN
14422013-11-14 Diego Novillo <dnovillo@google.com>
1443
1444 * c-common.c: Include fold-const.h.
1445 Include stor-layout.h.
1446 Include calls.h.
1447 Include stringpool.h.
1448 Include attribs.h.
1449 Include varasm.h.
1450 Include trans-mem.h.
1451 * c-cppbuiltin.c: Include stor-layout.h.
1452 Include stringpool.h.
1453 * c-format.c: Include stringpool.h.
1454 * c-lex.c: Include stringpool.h.
1455 Include stor-layout.h.
1456 * c-pragma.c: Include stringpool.h.
1457 Include attribs.h.
1458 Include varasm.h.
1459 Include gcc-symtab.h.
1460 * c-pretty-print.c: Include stor-layout.h.
1461 Include attribs.h.
1462 * cilk.c: Include stringpool.h.
1463 Include calls.h.
1464
38b7bc7f
JM
14652013-11-13 Joseph Myers <joseph@codesourcery.com>
1466
1467 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1468 * c-common.c (c_common_reswords): Add __auto_type.
1469 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1470
45b0be94
AM
14712013-11-12 Andrew MacLeod <amacleod@redhat.com>
1472
18f429e2
AM
1473 * c-common.c: Include gimplify.h.
1474 * c-gimplify.c: Likewise.
1475 * cilk.c: Likewise.
1476 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1477 * c-ubsan.c: Don't include gimple.h.
45b0be94 1478
582d9b50
JM
14792013-11-12 Joseph Myers <joseph@codesourcery.com>
1480
1481 * c-common.c (c_common_reswords): Add _Thread_local.
1482
6b28e197
JM
14832013-11-09 Joseph Myers <joseph@codesourcery.com>
1484
1485 * c-common.c (atomic_size_supported_p): New function.
1486 (resolve_overloaded_atomic_exchange)
1487 (resolve_overloaded_atomic_compare_exchange)
1488 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1489 Use it instead of comparing size with a local list of sizes.
1490
267bac10
JM
14912013-11-07 Andrew MacLeod <amacleod@redhat.com>
1492 Joseph Myers <joseph@codesourcery.com>
1493
1494 * c-common.h (enum rid): Add RID_ATOMIC.
1495 * c-common.c (c_common_reswords): Add _Atomic.
1496 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1497 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1498 * c-format.c (check_format_types): Check for extra _Atomic
1499 qualifiers in format argument.
1500 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1501 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1502
5157b91e
TB
15032013-11-06 Tobias Burnus <burnus@net-b.de>
1504
1505 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1506
6dbe0958
JM
15072013-11-06 Joseph Myers <joseph@codesourcery.com>
1508
1509 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1510 standards modes.
1511 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1512 to mean lack of IEEE 754 support.
1513
e8ff5196
TB
15142013-11-05 Tobias Burnus <burnus@net-b.de>
1515
1516 * c.opt (-Wdate-time): New option
1517 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1518
254a0760
JM
15192013-11-05 Joseph Myers <joseph@codesourcery.com>
1520
1521 * c-cppbuiltin.c (cpp_iec_559_value): Test
1522 flag_excess_precision_cmdline not flag_excess_precision.
1523
6d7f7e0a
TB
15242013-11-05 Tobias Burnus <burnus@net-b.de>
1525
1526 * c.opt (fopenmp-simd): New option.
1527 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1528 (omp_pragmas): ... this new struct.
1529 (c_pp_lookup_pragma): Also walk omp_pragmas.
1530 (init_pragma): Init pragmas for -fopenmp-simd.
1531
55a7f02f
MP
15322013-11-04 Marek Polacek <polacek@redhat.com>
1533
1534 PR c++/58979
1535 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1536
9193fb05
JM
15372013-11-04 Joseph Myers <joseph@codesourcery.com>
1538
1539 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1540 New functions.
1541 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1542
94159ecf
EB
15432013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1544
1545 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1546 (dump_ada_specs): Adjust prototype of second callback.
1547 * c-ada-spec.c (cpp_check): New global variable.
1548 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1549 (print_generic_ada_decl): Likewise.
1550 (has_static_fields): Change return type to bool and add guard.
1551 (has_nontrivial_methods): New predicate.
1552 (is_tagged_type): Change return type to bool.
1553 (separate_class_package): Call has_nontrivial_methods.
1554 (pp_ada_tree_identifier): Minor tweaks.
1555 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1556 (dump_ada_array_domains): Likewise.
1557 (dump_ada_array_type): Likewise.
1558 (dump_template_types): Remove cpp_check parameter and do not pass it to
1559 dump_generic_ada_node.
1560 (dump_ada_template): Likewise.
1561 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1562 recursively.
1563 (print_ada_methods): Change return type to integer. Remove cpp_check
1564 parameter and do not pass it down.
1565 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1566 dump_generic_ada_node.
1567 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1568 accessing methods.
1569 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1570 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1571 value of print_ada_methods.
1572 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1573 Set cpp_check to it before invoking dump_ada_nodes.
1574 (dump_ada_specs): Likewise.
1575
b906f4ca
MP
15762013-11-03 Marek Polacek <polacek@redhat.com>
1577
1578 * c-ubsan.c: Don't include hash-table.h.
1579 (ubsan_instrument_vla): New function.
1580 * c-ubsan.h: Declare it.
1581
5e20cdc9
DM
15822013-10-31 David Malcolm <dmalcolm@redhat.com>
1583
1584 Automated part of renaming of symtab_node_base to symtab_node.
1585
1586 Patch autogenerated by rename_symtab.py from
1587 https://github.com/davidmalcolm/gcc-refactoring-scripts
1588 revision 58bb219cc090b2f4516a9297d868c245495ee622
1589
1590 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1591 symtab_node_base to symtab_node.
1592
7057e645
ESR
15932013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1594
1595 Implement C++14 digit separators.
1596 * c-lex.c (interpret_float): Remove digit separators from scratch string
1597 before building real literal.
1598
193ea7bc
JJ
15992013-10-30 Jakub Jelinek <jakub@redhat.com>
1600
1601 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1602
939b37da
BI
16032013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1604
1605 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1606 fields.
1607 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1608 enabled.
1609 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1610 (insert_cilk_frame): New prototype.
1611 (cilk_init_builtins): Likewise.
1612 (gimplify_cilk_spawn): Likewise.
1613 (c_cilk_install_body_w_frame_cleanup): Likewise.
1614 (cilk_detect_spawn_and_unwrap): Likewise.
1615 (cilk_set_spawn_marker): Likewise.
1616 (build_cilk_sync): Likewise.
1617 (build_cilk_spawn): Likewise.
1618 * cilk.c: New file.
1619
67348ccc
DM
16202013-10-29 David Malcolm <dmalcolm@redhat.com>
1621
1622 Patch autogenerated by refactor_symtab.py from
1623 https://github.com/davidmalcolm/gcc-refactoring-scripts
1624 revision 58bb219cc090b2f4516a9297d868c245495ee622
1625
1626 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1627 to a true class hierarchy.
1628 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1629
d570872d
RS
16302013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1631
1632 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1633
98906124
JL
16342013-10-26 Jeff Law <law@redhat.com>
1635
adfac8df
JJ
1636 * c-common.c (c_define_builtins): Remove mudflap support.
1637 * c.opt: Ignore and warn for mudflap options.
98906124 1638
d73749df 16392013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
1640
1641 PR other/33426
1642 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1643 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1644
3f04b1bb
JM
16452013-10-23 Jason Merrill <jason@redhat.com>
1646
1647 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1648
acf0174b
JJ
16492013-10-11 Jakub Jelinek <jakub@redhat.com>
1650
acd15a28
JJ
1651 * c-common.h (omp_clause_mask::operator !=): New method.
1652 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1653 instead of if (mask & something) tests everywhere.
1654
acf0174b
JJ
1655 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1656 201307 instead of 201107.
1657 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1658 (c_common_attribute_table): Add "omp declare target" and
1659 "omp declare simd" attributes.
1660 (handle_omp_declare_target_attribute,
1661 handle_omp_declare_simd_attribute): New functions.
1662 * c-omp.c: Include c-pragma.h.
1663 (c_finish_omp_taskgroup): New function.
1664 (c_finish_omp_atomic): Add swapped argument, if true,
1665 build the operation first with rhs, lhs arguments and use NOP_EXPR
1666 build_modify_expr.
1667 (c_finish_omp_for): Add code argument, pass it down to make_code.
1668 (c_omp_split_clauses): New function.
1669 (c_split_parallel_clauses): Removed.
1670 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1671 c_omp_declare_simd_clauses_to_decls): New functions.
1672 * c-common.h (omp_clause_mask): New type.
1673 (OMP_CLAUSE_MASK_1): Define.
1674 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1675 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1676 omp_clause_mask::operator |, omp_clause_mask::operator &,
1677 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1678 omp_clause_mask::operator ==): New methods.
1679 (enum c_omp_clause_split): New.
1680 (c_finish_omp_taskgroup): New prototype.
1681 (c_finish_omp_atomic): Add swapped argument.
1682 (c_finish_omp_for): Add code argument.
1683 (c_omp_split_clauses): New prototype.
1684 (c_split_parallel_clauses): Removed.
1685 (c_omp_declare_simd_clauses_to_numbers,
1686 c_omp_declare_simd_clauses_to_decls): New prototypes.
1687 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1688 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1689 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1690 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1691 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1692 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1693 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1694 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1695 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1696 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1697 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1698 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1699 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1700 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1701 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1702 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1703 PRAGMA_OMP_CLAUSE_UNIFORM.
1704
826cacfe
MG
17052013-10-09 Marc Glisse <marc.glisse@inria.fr>
1706
1707 PR tree-optimization/20318
1708 * c-common.c (handle_returns_nonnull_attribute): New function.
1709 (c_common_attribute_table): Add returns_nonnull.
1710
2284b034
MG
17112013-10-03 Marc Glisse <marc.glisse@inria.fr>
1712
1713 PR c++/19476
1714 * c.opt (fcheck-new): Move to common.opt.
1715
b56e9788
MP
17162013-09-25 Marek Polacek <polacek@redhat.com>
1717 Jakub Jelinek <jakub@redhat.com>
1718
1719 PR sanitizer/58413
1720 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1721 an expression if we can prove it is correct.
1722 (ubsan_instrument_division): Likewise. Remove unnecessary
1723 check.
1724
ce6923c5
MP
17252013-09-18 Marek Polacek <polacek@redhat.com>
1726
1727 PR sanitizer/58411
1728 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1729 Declare it.
1730 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1731
fb5610fb
IS
17322013-09-14 Iain Sandoe <iain@codesourcery.com>
1733
1734 PR target/48094
1735 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1736 fobjc-gc, freplace-objc-classes): Accept for LTO.
1737
88b0e79e
JC
17382013-09-13 Jacek Caban <jacek@codeweavers.com>
1739
1740 * c-target.def: New hook
1741
c9b0866a
PC
17422013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1743
1744 PR c++/43452
1745 * c.opt (Wdelete-incomplete): Add.
1746
0af94e6f
JR
17472013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1748
1749 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1750 (vector_types_compatible_elements_p): New function.
1751 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1752 declaration.
1753 (vector_types_compatible_elements_p): Declare.
1754
7c26172c
GDR
17552013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1756
1757 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1758 a virtual member function.
1759 (pp_simple_type_specifier): Remove.
1760 (pp_c_type_specifier): Likewise.
1761 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1762 Rename from pp_c_type_specifier. Adjust.
1763 (c_pretty_printer::c_pretty_printer): Do not assign to
1764 simple_type_specifier.
1765
20059c8b
GDR
17662013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1767
1768 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1769 member function.
1770 (c_pretty_printer::storage_class_specifier): Likewise.
1771 (c_pretty_printer::initializer): Likewise.
1772 (pp_declaration): Remove.
1773 (pp_declaration_specifiers): Likewise.
1774 (pp_abstract_declarator): Likewise.
1775 (pp_declarator): Likewise.
1776 (pp_type_id): Likewise.
1777 (pp_statement): Likewise.
1778 (pp_constant): Likewise.
1779 (pp_id_expression): Likewise.
1780 (pp_primary_expression): Likewise.
1781 (pp_unary_expression): Likewise.
1782 (pp_multiplicative_expression): Likewise.
1783 (pp_conditional_expression): Likewise.
1784 (pp_assignment_expression): Likewise.
1785 (pp_expression): Likewise.
1786 (pp_c_type_id): Likewise.
1787 (pp_c_storage_class_specifier): Likewise.
1788 * c-pretty-print.c (pp_c_type_cast): Tidy.
1789 (pp_c_pointer): Likewise.
1790 (pp_c_type_specifier): Likewise.
1791 (pp_c_parameter_type_list): Likewise.
1792 (pp_c_function_definition): Likewise.
1793 (pp_c_init_declarator): Likewise.
1794 (pp_c_initializer_list): Likewise.
1795 (pp_c_constructor_elts): Likewise.
1796 (c_pretty_printer::direct_abstract_declarator): Likewise.
1797 (c_pretty_printer::declaration_specifiers): Likewise.
1798 (c_pretty_printer::primary_expression): Likewise.
1799 (c_pretty_printer::postfix_expression): Likewise.
1800 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1801 (c_pretty_printer::storage_class_specifier): Rename from
1802 pp_c_storage_class_specifier.
1803 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1804 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1805 storage_class_specifier, initializer, offset_list, flags.
1806
de5a5fa1
MP
18072013-08-30 Marek Polacek <polacek@redhat.com>
1808
1809 * c-ubsan.c: New file.
1810 * c-ubsan.h: New file.
1811
8f0e4d72
GDR
18122013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1813
1814 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1815 member function.
1816 (c_pretty_printer::declaration_specifiers): Likewise.
1817 (c_pretty_printer::declarator): Likewise.
1818 (c_pretty_printer::abstract_declarator): Likewise.
1819 (c_pretty_printer::direct_abstract_declarator): Likewise.
1820 (c_pretty_printer::direct_declarator): Likewise.
1821 (c_pretty_printer::function_specifier): Likewise.
1822 (pp_declaration): Adjust.
1823 (pp_declaration_specifiers): Likewise.
1824 (pp_abstract_declarator): Likewise.
1825 (pp_direct_declarator): Likewise.
1826 (pp_function_specifier): Likewise.
1827 (pp_direct_abstract_declarator): Remove as unused.
1828 (pp_c_declaration): Remove.
1829 (pp_c_declaration_specifiers): Likewise.
1830 (pp_c_declarator): Likewise.
1831 (pp_c_direct_declarator): Likewise.
1832 (pp_c_function_specifier): Likewise.
1833 (pp_c_direct_abstract_declarator): Likewise.
1834 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1835 from pp_c_abstract_declarator. Adjust.
1836 (c_pretty_printer::direct_abstract_declarator): Rename from
1837 pp_c_direct_abstract_declarator. Adjust.
1838 (c_pretty_printer::function_specifier): Rename from
1839 pp_c_function_specifier. Adjust.
1840 (c_pretty_printer::declaration_specifiers): Rename from
1841 pp_c_declaration_specifiers. Adjust.
1842 (c_pretty_printer::direct_declarator): Rename from
1843 pp_c_direct_declarator. Adjust.
1844 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1845 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1846 (c_pretty_printer::c_pretty_printer): Do not assign to
1847 declaration, declaration_specifiers, declarator,
1848 direct_declarator, direct_abstract_declarator, function_specifier.
1849
00d34d3a
GDR
18502013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1851
1852 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1853 virtual member function.
1854 (c_pretty_printer::multiplicative_expression): Likewise.
1855 (c_pretty_printer::conditional_expression): Likewise.
1856 (c_pretty_printer::assignment_expression): Likewise.
1857 (c_pretty_printer::expression): Likewise.
1858 (pp_unary_expression): Adjust.
1859 (pp_multiplicative_expression): Likewise.
1860 (pp_assignment_expression): Likewise.
1861 (pp_conditional_expression): Likewise.
1862 (pp_expression): Likewise.
1863 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1864 from pp_c_unary_expression. Adjust.
1865 (c_pretty_printer::multiplicative_expression): Rename from
1866 pp_c_multiplicative_expression. Adjust.
1867 (c_pretty_printer::conditional_expression): Rename from
1868 pp_c_conditional_expression. Adjust.
1869 (c_pretty_printer::assignment_expression): Rename from
1870 pp_c_assignment_expression. Adjust.
1871 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1872 (c_pretty_printer::c_pretty_printer): Do not assign to
1873 unary_expression, multiplicative_expression,
1874 conditional_expression, expression.
1875
fb22178f
GDR
18762013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1877
1878 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1879 virtual member function.
1880 (pp_postfix_expression): Adjust.
1881 (pp_c_postfix_expression): Remove.
1882 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1883 from pp_c_postfix_expression. Adjust.
1884 (c_pretty_printer::c_pretty_printer): Do not assign to
1885 postfix_expression.
1886
7ecc2600
GDR
18872013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1888
1889 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1890 virtua member function.
1891 (pp_primary_expression): Adjust.
1892 (pp_c_primary_expression): Remove.
1893 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1894 from pp_c_primary_expression. Adjust.
1895 (pp_c_initializer_list): Use pp_primary_expression.
1896 (c_pretty_printer::c_pretty_printer): Do not assign to
1897 primary_expression.
1898
0691175f
GDR
18992013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1900
1901 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1902 * c-pretty-print.c (M_): Remove.
1903 (c_pretty_printer::translate_string): Define.
1904 (pp_c_type_specifier): Use it.
1905 (pp_c_primary_expression): Likewise.
1906 (pp_c_expression): Likewise.
1907
66dfe4c4
GDR
19082013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1909
1910 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1911 virtual function.
1912 (pp_c_id_expression): Remove.
1913 (pp_id_expression): Adjust.
1914 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1915 pp_c_id_expression. Adjust.
1916 (pp_c_postfix_expression): Use pp_id_expression.
1917 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1918
ca43e9d5
GDR
19192013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1920
1921 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1922 member function.
1923 (pp_constant): Adjust.
1924 (pp_c_constant): Remove.
1925 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1926 pp_c_constant. Adjust.
1927 (pp_c_constant)
1928 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1929 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1930
da6ca2b5
GDR
19312013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1932
1933 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1934 (c_pretty_printer::c_pretty_printer): Declare.
1935 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1936 c_pretty_printer_init. Adjust.
1937 (print_c_tree): Do not call c_pretty_printer_init.
1938 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1939
65a372f4
AC
19402013-08-09 Arnaud Charlet <charlet@adacore.com>
1941
1942 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1943
fd9b0f32
PC
19442013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1945
1946 PR c++/58080
1947 * c-common.c (pointer_int_sum): Add bool parameter.
1948 * c-common.h (pointer_int_sum): Adjust declaration.
1949
e0aec1e9
GDR
19502013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1951
1952 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1953 c_pretty_printer variable.
1954
b066401f
GDR
19552013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1956
1957 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1958 (pp_base): Remove.
1959 (pp_c_base): Likewise. Adjust users.
1960 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1961 (pp_c_whitespace): Do not call pp_base.
1962 (pp_c_left_paren): Likewise.
1963 (pp_c_right_paren): Likewise.
1964 (pp_c_left_brace): Likewise.
1965 (pp_c_right_brace): Likewise.
1966 (pp_c_left_bracket): Likewise.
1967 (pp_c_right_bracket): Likewise.
1968 (pp_c_dot): Likewise.
1969 (pp_c_ampersand): Likewise.
1970 (pp_c_star): Likewise.
1971 (pp_c_arrow): Likewise.
1972 (pp_c_semicolon): Likewise.
1973 (pp_c_complement): Likewise.
1974 (pp_c_exclamation): Likewise.
1975 (pp_c_direct_declarator): Likewise.
1976 (pp_c_ws_string): Likewise.
1977 (pp_c_identifier): Likewise.
1978 (pp_c_statement): Likewise.
1979 (print_c_tree): Likewise.
1980
65e5a578
ESR
19812013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1982
1983 PR c++/58072
1984 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1985 provide useful error strings.
1986
137a1a27
GDR
19872013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1988
1989 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1990 printer functions instead of pp_string or operators and punctuators.
1991 (dump_generic_ada_node): Likewise.
1992 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1993 (pp_c_relational_expression): Likewise.
1994 (pp_c_logical_or_expression): Likewise.
1995
07838b13
GDR
19962013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1997
1998 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1999 functions instead of pp_character.
2000 (pp_ada_tree_identifier): Likewise.
2001 (dump_ada_double_name): Likewise.
2002 (dump_ada_function_declaration): Likewise.
2003 (dump_ada_array_domains): Likewise.
2004 (dump_template_types): Likewise.
2005 (dump_generic_ada_node): Likewise.
2006 (print_ada_declaration): Likewise.
2007 (print_ada_struct_decl): Likewise.
2008 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2009
433cc7b0
TT
20102013-07-23 Tom Tromey <tromey@redhat.com>
2011
2012 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2013 * c-common.c (c_common_reswords): Add _Generic.
2014
688010ba
OB
20152013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2016
2017 * c-common.c: Fix typos.
2018 * c-common.h: Likewise.
2019
2a99e5e6
LL
20202013-07-13 Lubos Lunak <l.lunak@suse.cz>
2021
2022 PR c++/55203
2023 * c-common.c (c_common_attribute_table): Add warn_unused.
2024 (handle_warn_unused_attribute): New.
2025
c26302d5
JJ
20262013-07-10 Jakub Jelinek <jakub@redhat.com>
2027
2028 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2029 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2030
dfeadaa0
PC
20312013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2032
2033 PR c++/57869
2034 * c.opt: Add Wconditionally-supported.
2035
6a2fa4b2
GS
20362013-07-08 Graham Stott <graham.stott@btinternet.com>
2037
adfac8df 2038 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
2039 unused variables l_length and l_node.
2040
ecdbd01a 20412013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2042
2043 PR c/57821
2044 * c-common.c (complete_array_type): Delay folding first index
2045 like other indices. When folding, check for index overflow.
2046
bedc293e
MG
20472013-06-27 Marc Glisse <marc.glisse@inria.fr>
2048
2049 PR c++/57509
2050 * c-common.h (c_build_vec_perm_expr): New complain argument.
2051 * c-common.c (c_build_vec_perm_expr): Likewise.
2052 Use save_expr also in C++.
2053
604b2bfc
GDR
20542013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2055
2056 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2057 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2058 * c-opts.c (c_common_post_options): Likewise.
2059
dfeadaa0 20602013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
2061
2062 * array-notation-common.c (length_mismatch_in_expr): Changed the
2063 parameter type's from a dynamic array to a vec_tree. Also removed
2064 the size parameters.
2065 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2066 the change above.
2067
2ce86d2e
BI
20682013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2069
2070 * c-common.h (struct cilkplus_an_parts): New structure.
2071 (struct cilkplus_an_loop_parts): Likewise.
2072 (cilkplus_extract_an_triplets): New prototype.
2073 (fix_sec_implicit_args): Likewise.
2074 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2075 (fix_sec_implicit_args): Likewise.
604b2bfc 2076
07a6825b
BI
20772013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2078
2079 * array-notation-common.c (find_inv_trees): Removed an unwanted
2080 typecasting.
2081 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2082 enum rid to enum tree_code.
2083
08346abd
JH
20842013-06-11 Jan Hubicka <jh@suse.cz>
2085
2086 * c-common.c (handle_alias_ifunc_attribute): Do not set
2087 DECL_EXTERNAL for weakref variables.
2088 * c-pragma.c (handle_pragma_weak): Make sure aliases
2089 are not declared as external.
2090
d60f1706
BI
20912013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2092
2093 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2094 function from c/c-array-notation.c.
2095 (is_cilkplus_reduce_builtin): Likewise.
2096 (find_rank): Likewise.
2097 (extract_array_notation_exprs): Likewise.
2098 (replace_array_notations): Likewise.
2099 (find_inv_trees): Likewise.
2100 (replace_inv_trees): Likewise.
2101 (contains_array_notation_expr): Likewise.
2102 (find_correct_array_notation_type): Likewise.
2103 * c-common.h (struct inv_list): Moved this struct from the file
2104 c/c-array-notation.c and added a new field called additional tcodes.
2105 (length_mismatch_in_expr_p): New prototype.
2106 (is_cilkplus_reduce_builtin): Likewise.
2107 (find_rank): Likewise.
2108 (extract_array_notation_exprs): Likewise.
2109 (replace_array_notation): Likewise.
2110 (find_inv_trees): Likewise.
2111 (replace_inv_trees): Likewise.
2112 (find_correct_array_notation_type): Likewise.
dfeadaa0 2113
36536d79
BI
21142013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2115
2116 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2117 function array_notation_init_builtins is called.
2118 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2119 * c-common.def (ARRAY_NOTATION_REF): New tree.
2120 * c-common.h (build_array_notation_expr): New function declaration.
2121 (build_array_notation_ref): Likewise.
2122 (extract_sec_implicit_index_arg): New extern declaration.
2123 (is_sec_implicit_index_fn): Likewise.
2124 (ARRAY_NOTATION_CHECK): New define.
2125 (ARRAY_NOTATION_ARRAY): Likewise.
2126 (ARRAY_NOTATION_START): Likewise.
2127 (ARRAY_NOTATION_LENGTH): Likewise.
2128 (ARRAY_NOTATION_STRIDE): Likewise.
2129 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2130 ARRAY_NOTATION_REF.
2131 (pp_c_expression): Likewise.
2132 * c.opt (flag_enable_cilkplus): New flag.
2133 * array-notation-common.c: New file.
2134
f7716d57
JJ
21352013-05-14 Jakub Jelinek <jakub@redhat.com>
2136
2137 PR c++/57274
2138 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2139
a5e0cd1d
MG
21402013-05-10 Marc Glisse <marc.glisse@inria.fr>
2141
2142 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2143 vectors.
2144
f6bc1c4a
HS
21452013-05-07 Han Shen <shenhan@google.com>
2146
2147 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2148
3f12f6e9
SKS
21492013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2150
2151 * c-common.c (check_user_alignment): Emit error for negative values.
2152
61949153
PC
21532013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2154
2155 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2156
e93e18e9
PC
21572013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2158
2159 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2160 __GXX_EXPERIMENTAL_CXX1Y__.
2161
44d90fe1
PC
21622013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2163 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2164
2165 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2166 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2167 to simply use OPT_Wpointer_arith.
2168 (c_sizeof_or_alignof_type): Likewise.
2169
13f39b2e
PC
21702013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2171
2172 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2173
4b84d650
JJ
21742013-04-12 Jakub Jelinek <jakub@redhat.com>
2175
2176 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2177 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2178 specifiers.
2179
fb037b5d
SB
21802013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2181
2182 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2183
4e856798
PC
21842013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2185
2186 * c-common.c (pointer_int_sum): Remove dead code.
2187
4b1baac8
RS
21882013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2189
2190 PR middle-end/56524
2191 * c-common.c (handle_optimize_attribute): Don't call
2192 save_optabs_if_changed.
2193
0b50e654
JJ
21942013-03-05 Jakub Jelinek <jakub@redhat.com>
2195
2196 PR middle-end/56461
2197 * c-pch.c (pch_init): Free target_validity at the end.
2198
48c41403
JJ
21992013-03-04 Jakub Jelinek <jakub@redhat.com>
2200
2201 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2202
e664c61c
KS
22032013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2204 Jakub Jelinek <jakub@redhat.com>
2205
2206 PR sanitizer/56454
2207 * c-common.c (handle_no_sanitize_address_attribute): New function.
2208 (c_common_attribute_table): Add no_sanitize_address attribute.
2209 (handle_no_address_safety_analysis_attribute): Add
2210 no_sanitize_address attribute, not no_address_safety_analysis
2211 attribute.
2212
a475fd3d 22132013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
2214
2215 PR target/52555
2216 * c-common.c (handle_optimize_attribute): Call
2217 save_optabs_if_changed.
2218
f6007d99
JJ
22192013-02-18 Jakub Jelinek <jakub@redhat.com>
2220 Steven Bosscher <steven@gcc.gnu.org>
2221
2222 PR pch/54117
2223 * c-opts.c (c_common_post_options): If debug info is enabled
2224 and non-dwarf*, refuse to load PCH files and when writing PCH
2225 file warn.
2226
cf35e2b1
JJ
22272013-02-05 Jakub Jelinek <jakub@redhat.com>
2228
2229 PR middle-end/56167
2230 * c-common.c (handle_error_attribute): Fix condition.
2231
32887460
JJ
22322013-01-30 Jakub Jelinek <jakub@redhat.com>
2233
2234 PR c++/55742
2235 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2236
5af057d8
JM
22372013-01-18 Jason Merrill <jason@redhat.com>
2238
2239 PR target/54908
2240 * c.opt (-fextern-tls-init): New.
2241 * c-opts.c (c_common_post_options): Handle it.
2242
cc83c823
JJ
22432013-01-09 Jakub Jelinek <jakub@redhat.com>
2244
2245 PR c/48418
2246 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2247 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2248 and is either negative or bigger or equal to type precision
2249 of the first operand.
2250
a859517f
MP
22512012-12-03 Marek Polacek <polacek@redhat.com>
2252
2253 PR c/55570
2254 * c-common.c (check_user_alignment): Swap order of tests,
2255 check TREE_CODE first.
2256
2d7aa578
ESR
22572012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2258
2259 PR c++/52654
2260 * c-common.h (overflow_type): New enum.
2261 (build_userdef_literal): Add overflow_type argument.
2262 (tree_userdef_literal): Add overflow_type.
2263 (USERDEF_LITERAL_OVERFLOW): New access macro.
2264 * c-common.c (build_userdef_literal): Add overflow_type
2265 argument.
2266 * c-lex.c (c_lex_with_flags): Add overflow_type to
2267 build_userdef_literal calls.
2268 (interpret_integer, interpret_float): Add overflow_type argument.
2269
cc3c4f62
RB
22702012-11-28 Richard Biener <rguenther@suse.de>
2271
2272 PR c/35634
2273 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2274 here and use a type with proper overflow behavior for types that would
2275 need to be promoted for the arithmetic.
2276
77bc5132
JJ
22772012-11-23 Jakub Jelinek <jakub@redhat.com>
2278
2279 PR sanitizer/55435
2280 * c-common.c (handle_no_address_safety_analysis_attribute): New
2281 function.
2282 (c_common_attribute_table): Add no_address_safety_analysis.
2283
5dc99c46
SB
22842012-11-16 Simon Baldwin <simonb@google.com>
2285
2286 * c.opt: Add f[no-]canonical-system-headers.
2287 * c-opts.c (c_common_handle_option): Handle
2288 OPT_fcanonical_system_headers.
2289
a4a0016d
ESR
22902012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2291
2292 PR c++/54413
2293 * c-opts.c (c_common_handle_option): Set new flags.
2294 * c.opt: Describe new flags.
2295
7dbb85a7
JM
22962012-11-09 Jason Merrill <jason@redhat.com>
2297
2298 * c.opt (Wabi-tag): New.
2299
ad7bac31
AK
23002012-11-09 Andi Kleen <ak@linux.intel.com>
2301
2302 PR 55139
2303 * c-common.c (get_atomic_generic_size): Mask with
2304 MEMMODEL_MASK
2305
7332899a
MLI
23062012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2307
2308 PR c/53063
2309 * c.opt (Wformat): Make it Alias Wformat=1.
2310 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2311 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2312 LangEnabledBy.
2313 (Wformat=): RejectNegative. Use LangEnabledBy.
2314 (Wnonnull): Use LangEnabledBy.
2315 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2316 * c-format.c (set_Wformat): Delete.
2317 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2318 (maybe_read_dollar_number): Likewise.
2319 (avoid_dollar_number): Likewise.
2320 (finish_dollar_format_checking): Likewise.
2321 (check_format_info): Likewise.
2322 (check_format_info_main): Likewise.
2323 (check_format_types): Likewise.
2324 (format_type_warning): Likewise.
2325 * c-common.c (int): Likewise.
2326 (check_function_sentinel): Likewise.
2327 * c-common.h (warn_format,set_Wformat): Do not declare here.
2328
34a180a6
MLI
23292012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2330
2331 PR c/53063
2332 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2333 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2334 Use LangEnabledBy.
2335 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2336 common.opt.
2337 (Wvariadic-macros): Init(1).
2338 * c-opts.c (c_common_handle_option): Do not handle them
2339 explicitly.
2340 (c_common_post_options): Likewise.
2341 (sanitize_cpp_opts): warn_unused_macros is now
2342 cpp_warn_unused_macros.
2343 (push_command_line_include): Likewise.
2344 * c-common.c (warn_unknown_pragmas): Do not define.
2345 * c-common.h (warn_unknown_pragmas): Do not declare.
2346
3f46d6a5
MLI
23472012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2348
2349 PR c/51294
2350 * c-common.c (conversion_warning): Handle conditional expressions.
2351
880661a4
JW
23522012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2353
2354 PR c++/54930
2355 * c.opt (Wreturn_local_addr): Define new option.
2356
4514a96b
JM
23572012-10-25 Jason Merrill <jason@redhat.com>
2358
f14edc1a
JM
2359 * c.opt (Wvirtual-move-assign): New.
2360
4514a96b
JM
2361 * c.opt (Winherited-variadic-ctor): New.
2362
93100c6b
MG
23632012-10-25 Marc Glisse <marc.glisse@inria.fr>
2364
2365 PR c++/54427
2366 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2367
1efcb8c6
JM
23682012-10-23 Joseph Myers <joseph@codesourcery.com>
2369
2370 * c-common.h (pch_cpp_save_state): Declare.
2371 * c-target.def (c_preinclude): New hook.
2372 * c-opts.c (done_preinclude): New.
2373 (push_command_line_include): Handle default preincluded header.
2374 (cb_file_change): Call pch_cpp_save_state when calling
2375 push_command_line_include.
2376 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2377 (pch_cpp_save_state): New.
2378 (pch_init): Call pch_cpp_save_state conditionally, instead of
2379 calling cpp_save_state.
2380
4a0ae68e
MLI
23812012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2382
2383 PR c/53063
2384 PR c/40989
2385 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2386 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2387 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2388 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2389 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2390 * c-opts.c (c_common_handle_option): Remove explicit handling from
2391 here.
2392 (c_common_post_options): Likewise.
2393
67e4210b
EB
23942012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2395
2396 * c-ada-spec.c (LOCATION_COL): Delete.
2397 (compare_location): New function.
2398 (compare_node): Use it.
2399 (compare_comment): Likewise.
2400
65d4f2cd
MLI
24012012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2402
2403 PR c/53063
2404 PR c/40989
2405 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2406 * c-opts.c (c_common_handle_option): Do not set them here. Add
2407 comment.
2408 (c_common_post_options): Likewise.
2409
909881cb
EB
24102012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2411
2412 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2413 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2414 Remove POINTER_TYPE handling, add large unsigned handling and use
2415 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2416
3a785c97
JJ
24172012-10-12 Jakub Jelinek <jakub@redhat.com>
2418
2419 PR c/54381
2420 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2421 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2422 locs and array of 3 trees instead of just single loc and single
2423 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2424 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2425 For *cmp* builtins that take two sources strings report warnings
2426 about first and second source, not about destination and source.
2427
5e54f81d
MG
24282012-10-12 Marc Glisse <marc.glisse@inria.fr>
2429
2430 PR c++/53055
2431 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2432
f5b02f1e
EB
24332012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2434
2435 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2436 declaring something coming from another file.
2437
b46dbc6c
AC
24382012-10-10 Arnaud Charlet <charlet@adacore.com>
2439
f5b02f1e 2440 PR ada/54845
b46dbc6c
AC
2441 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2442
5d9de0d0
PC
24432012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2444
2445 PR c++/54194
2446 * c-common.c (warn_about_parentheses): Add location_t parameter;
2447 use EXPR_LOC_OR_LOC.
2448 * c-common.h: Update declaration.
2449
a212e43f
MG
24502012-10-09 Marc Glisse <marc.glisse@inria.fr>
2451
2452 PR c++/54427
2453 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2454 more operations. Make error messages optional.
2455 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2456 (scalar_to_vector): Declare.
2457
b1db7f91
JM
24582012-10-08 Jason Merrill <jason@redhat.com>
2459
2460 * c-common.c (c_common_reswords): Add thread_local.
2461
e28d52cf
DS
24622012-10-08 Dodji Seketeli <dodji@redhat.com>
2463
2464 PR c++/53528 C++11 attribute support
2465 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2466 new functions.
2467 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2468 static function.
2469 (handle_aligned_attribute): In choose strictest alignment
2470 among many. Use new check_cxx_fundamental_alignment_constraints.
2471 (handle_transparent_union_attribute): In c++11 attribute syntax,
2472 don't look through typedefs.
2473
3b78de56
AC
24742012-10-04 Arnaud Charlet <charlet@adacore.com>
2475
2476 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2477 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2478 out of dumpfile.h.
2479
6040bb5f
DC
24802012-09-25 Dehao Chen <dehao@google.com>
2481
2482 PR middle-end/54645
3b78de56 2483 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
2484 map when read in the pch.
2485
0b07a57e
AC
24862012-09-18 Arnaud Charlet <charlet@adacore.com>
2487
2488 * c-ada-spec.c: Style fixes.
2489
da5182be
TQ
24902012-09-18 Thomas Quinot <quinot@adacore.com>
2491
2492 * c.opt (-fada-spec-parent): Define new command line switch.
2493 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2494 is specified, generate binding spec as a child of the specified unit.
2495
0ccb505d
PC
24962012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2497 Manuel López-Ibáñez <manu@gcc.gnu.org>
2498
2499 PR c++/53210
2500 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2501
c583af79
AC
25022012-08-23 Arnaud Charlet <charlet@adacore.com>
2503
2504 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2505 for pointers, and add missing Convention C pragma.
2506 (print_ada_struct_decl): Add missing aliased keyword.
2507 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2508
1a4049e7
JJ
25092012-08-17 Jakub Jelinek <jakub@redhat.com>
2510
2511 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2512 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2513 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2514 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2515 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2516
70b5e7dc
RG
25172012-08-10 Richard Guenther <rguenther@suse.de>
2518
2519 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2520
f8923f7e
SB
25212012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2522
2523 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2524 instead of separate pp_newline and pp_flush.
2525 (print_c_tree): Likewise.
2526
e45abe1f
RH
25272012-07-26 Richard Henderson <rth@redhat.com>
2528
2529 * c-common.c (handle_hot_attribute): Allow labels.
2530 (handle_cold_attribute): Likewise.
2531
332f1d24
JJ
25322012-07-20 Jakub Jelinek <jakub@redhat.com>
2533
2534 PR c++/28656
2535 * c-common.c (check_function_nonnull): Handle multiple nonnull
2536 attributes properly.
2537
7ee2468b
SB
25382012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2539
2540 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2541 * c-ada-spec.c: Likewise.
2542 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2543
ee7b28eb
SB
25442012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2545
2546 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2547 Remove code conditional on it.
2548
6bdf3519
SB
25492012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2550
2551 * c-gimplify.c: Do not include basic-block.h.
2552 * c-common.c: Do not include linfuncs.h.
2553
532aafad
SB
25542012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2555
2556 * c-common.h: Include tree.h.
2557
8d0d1915
JM
25582012-07-02 Jason Merrill <jason@redhat.com>
2559
2560 PR c++/53524
2561 * c-common.c (get_priority): Call default_conversion.
2562
fbc873ad
UB
25632012-07-01 Uros Bizjak <ubizjak@gmail.com>
2564
2565 * c-pch.c (c_common_write_pch): Remove unused variables.
2566
d4a10d0a
SB
25672012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2568
2569 * cppspec.c: Moved from gcc/ to here.
2570
6f3a2e23
KT
25712012-06-27 Kai Tietz <ktietz@redhat.com>
2572
2573 PR preprocessor/37215
2574 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2575
8ca92d04
SB
25762012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2577
2578 * c-common.h (c_common_print_pch_checksum): Remove.
2579 * c-pch.c: Do not include output.h.
2580 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2581 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2582 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2583 (struct c_pch_header): Remove.
2584 (get_ident): Update gpch version.
2585 (pch_init): Do not print executable_checksum to asm_out_file.
2586 Do not fail if there is no asm_out_file to read back from. Set
2587 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2588 (c_common_write_pch): Verify that nothing was written to asm_out_file
2589 since pch_init was called. Do not write a c_pch_header, and do not
2590 copy from asm_out_file to the PCH.
2591 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2592 the content of asm_out_file from the PCH.
2593 (c_common_print_pch_checksum): Remove.
2594 * c-opts.c (c_common_init): Print out executable_checksum directly.
2595
70f42967
SB
25962012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2597
2598 * c-target.def (objc_declare_unresolved_class_reference,
2599 objc_declare_class_definition): Add new hooks.
2600
a8781821
SB
26012012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2602
2603 * c-lex.c: Do not include output.h.
2604 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2605 Remove uses of ASM_OUTPUT_IDENT.
2606
9e1a8dd1
RR
26072012-06-15 Marc Glisse <marc.glisse@inria.fr>
2608
2609 PR c++/51033
2610 * c-common.h (c_build_vec_perm_expr): Move decl here.
2611 * c-common.c (c_build_vec_perm_expr): Move definition
2612 here.
2613
6f07a821
SB
26142012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2615
2616 * c.opt (fconserve-space): Turn into a no-op.
2617
9faeb493 26182012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
2619
2620 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2621 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2622 both the start and end of the function.
2623
a4b7d13c
SB
26242012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2625
2626 * c-common.c: Do not include output.h.
2627 * c-pragma.c: Likewise.
2628
c265f413
SA
26292012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2630
2631 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2632 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2633 (lang_decl_name): Handle namespace decls.
2634
be7a421e
SB
26352012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2636
2637 * c-ada-spec.c: Do not include output.h.
2638 * c-semantics.c: Likewise.
2639
65de6659
JM
26402012-05-29 Joseph Myers <joseph@codesourcery.com>
2641
2642 * c-common.c: Fix typo.
2643
ca5f4331
MM
26442012-05-29 Michael Matz <matz@suse.de>
2645
2646 * c-common.h (c_expand_decl): Remove prototype.
2647
4f7f7aca
MLI
26482012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2649
2650 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2651 * c-opts.c (c_common_handle_option): Remove code handling
2652 warn_missing_braces.
2653
4a792f9b
PC
26542012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2655
2656 PR c++/25137
2657 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2658 -Wmissing_braces.
2659
650dc14a
DS
26602012-05-22 Dodji Seketeli <dodji@redhat.com>
2661
2662 PR c++/53322
2663 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2664
9b095bf1
MLI
26652012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2666
2667 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2668 * c-opts.c (c_common_handle_option): Do not handle explicitly
2669 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2670
0b2c4be5
DS
26712012-05-16 Dodji Seketeli <dodji@redhat.com>
2672
2673 PR preprocessor/7263
2674 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2675 to cpp_classify_number. For diagnostics, use the precise location
2676 instead of the global input_location.
2677
a1bde5af
PC
26782012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2679
d02924ef 2680 PR c++/11856
a1bde5af
PC
2681 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2682
d1ede5f4
BS
26832012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2684
a1bde5af 2685 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 2686
f2bc201f
MLI
26872012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2688
2689 PR 53063
2690 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2691 Wreorder): Use LangEnabledBy.
2692 * c-opts.c (c_common_handle_option): Do not enable them
2693 explicitly. Call lang-specific generated functions.
2694 (c_common_post_options): Do not set them here.
2695
95744782
MLI
26962012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2697
2698 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2699 Wmissing-field-initializers,Wmissing-parameter-type,
2700 Wold-style-declaration,Woverride-init): Use EnabledBy.
2701 * c-opts.c (c_common_post_options): Do not set here explicitly.
2702
7d5a5747
MLI
27032012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2704
2705 PR 53063
2706 * c-opts.c (c_common_handle_option): Use handle_generated_option
2707 to enable sub-options.
2708
5a3c9cf2
PC
27092012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2710
2711 PR c++/53158
2712 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2713
3ac8781c
RG
27142012-05-10 Richard Guenther <rguenther@suse.de>
2715
2716 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2717 adjust commentary about TYPE_IS_SIZETYPE types.
2718
1e537948
MLI
27192012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2720
2721 PR c++/53261
2722 * c-common.c (warn_logical_operator): Check that argument of
2723 integer_zerop is not NULL.
2724
f2c4a785
MLI
27252012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2726
2727 PR c/43772
2728 * c-common.c (warn_logical_operator): Do not warn if either side
2729 is already true or false.
2730
50f305ca
MLI
27312012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2732
2733 PR c/51712
2734 * c-common.c (expr_original_type): New.
2735 (shorten_compare): Do not warn for enumeration types.
2736
0c3641b0
MLI
27372012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2738
2739 * c.opt (fpermissive): Add Var(flag_permissive).
2740
7edaa4d2
MG
27412012-04-30 Marc Glisse <marc.glisse@inria.fr>
2742
2743 PR c++/51033
2744 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2745 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2746
b9c8da34
DS
27472012-04-30 Dodji Seketeli <dodji@redhat.com>
2748
2749 Add -Wvarargs option
2750 * c.opt (Wvarargs): Define new option.
2751
e6c69da0
MLI
27522012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2753
2754 * c-common.c (check_function_arguments): Replace
2755 Wmissing-format-attribute with Wsuggest-attribute=format.
2756
90137d8f
MLI
27572012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2758
2759 * c.opt (Wsuggest-attribute=format): New. Alias of
2760 Wmissing-format-attribute.
2761 * c-format.c (decode_format_type): Replace
2762 Wmissing-format-attribute with Wsuggest-attribute=format.
2763 (check_function_format): Likewise.
2764
9faeb493 27652012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
2766
2767 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2768 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2769 * c.opt: Add Wliteral-suffix.
2770
c1771a20
MLI
27712012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2772
2773 PR c/44774
2774 * c.opt (Wpedantic): New.
2775 (pedantic): Alias Wpedantic.
2776 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2777 (c_common_post_options): Likewise.
2778 (sanitize_cpp_opts): Likewise.
2779 * c-lex.c (interpret_float): Likewise.
2780 * c-format.c (check_format_types): Likewise.
2781 * c-common.c (pointer_int_sum): Likewise.
2782 (c_sizeof_or_alignof_type): Likewise.
2783 (c_add_case_label): Likewise.
2784 (c_do_switch_warnings): Likewise.
2785 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2786
04b391c1
JM
27872012-04-15 Jason Merrill <jason@redhat.com>
2788
2789 PR c++/52818
2790 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2791 (C_STD_NAME): Distinguish between C++98 and C++11.
2792
ac868f29
EB
27932012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2794
2795 PR target/52624
2796 * c-common.h (uint16_type_node): Rename into...
2797 (c_uint16_type_node): ...this.
2798 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2799 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2800
fd4116f4
MLI
28012012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2802
2803 * c-common.c (warn_if_unused_value): Move definition to here.
2804 * c-common.h (warn_if_unused_value): Move declaration to here.
2805
573ac65e
WB
28062012-03-23 William Bader <williambader@hotmail.com>
2807
2808 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2809
552b8185
JM
28102012-03-20 Jason Merrill <jason@redhat.com>
2811
2812 * c-common.h (enum cxx_dialect): Add cxx1y.
2813 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2814 test.
2815 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2816 * c-opts.c (c_common_post_options): Likewise.
2817 (set_std_cxx1y): New.
2818 (c_common_handle_option): Call it.
2819 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2820
04398fa8
PC
28212012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2822
2823 PR c++/14710
2824 * c.opt ([Wuseless-cast]): Add.
2825
d2a12ae7
RG
28262012-03-16 Richard Guenther <rguenther@suse.de>
2827
2828 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2829
a12bf402
MLI
28302012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2831
2832 PR c++/44783
2833 * c.opt (ftemplate-backtrace-limit) Add.
2834
5c30094f
RO
28352012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2836
2837 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2838 handling.
2839 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2840 (init_pragma): Don't register extern_prefix.
2841
21fa2faf
RG
28422012-03-12 Richard Guenther <rguenther@suse.de>
2843
2844 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2845 (builtin_type_for_size): Likewise.
2846
e3793c6f
JJ
28472012-02-13 Jakub Jelinek <jakub@redhat.com>
2848
2849 PR c++/52215
2850 * c-common.c (sync_resolve_params): Don't decide whether to convert
2851 or not based on TYPE_SIZE comparison, convert whenever arg_type
2852 is unsigned INTEGER_TYPE.
2853
93286335
PC
28542012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2855
2856 PR c/52118
2857 * c.opt ([Wunused-local-typedefs]): Fix description.
2858
7a421706
MS
28592012-01-24 Mike Stump <mikestump@comcast.net>
2860
2861 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2862 exactly.
2863
ba9b1f11
RG
28642012-01-18 Richard Guenther <rguenther@suse.de>
2865
2866 * c-opts.c (c_common_post_options): Reset LTO flags if
2867 we are about to generate a PCH.
2868
465406be
PC
28692012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2870
2871 PR c++/51777
2872 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2873 use pp_unsigned_wide_integer.
2874
aee15221
RG
28752012-01-10 Richard Guenther <rguenther@suse.de>
2876
2877 PR middle-end/51806
2878 * c-opts.c (c_common_handle_option): Move -Werror handling
2879 to language independent code.
2880
5720c0dc
RG
28812012-01-05 Richard Guenther <rguenther@suse.de>
2882
2883 PR middle-end/51764
2884 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2885 from common.opt.
2886
73ac190a
PC
28872011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2888
2889 PR c++/51316
2890 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2891 of array types with an unknown bound.
2892
48b0b196
JM
28932011-12-20 Joseph Myers <joseph@codesourcery.com>
2894
2895 * c-common.c (flag_isoc99): Update comment to refer to C11.
2896 (flag_isoc1x): Change to flag_isoc11.
2897 * c-common.h (flag_isoc99): Update comment to refer to C11.
2898 (flag_isoc1x): Change to flag_isoc11.
2899 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2900 C11.
2901 * c-opts.c (set_std_c1x): Change to set_std_c11.
2902 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2903 Call set_std_c11.
2904 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2905 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2906 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2907 standard.
2908 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2909 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2910 (std=gnu1x): Make alias of std=gnu11.
2911
d58d6eb5
JM
29122011-12-19 Jason Merrill <jason@redhat.com>
2913
2914 PR c++/51228
2915 * c-common.c (handle_transparent_union_attribute): Check the first
2916 field if the type is complete.
2917
b3908fcc
JW
29182011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2919
2920 PR libstdc++/51365
2921 * c-common.c (RID_IS_FINAL): Add.
2922 * c-common.h (RID_IS_FINAL): Add.
2923
fea3ca91
IS
29242011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2925
2926 * c.opt (fgnu-runtime): Provide full description.
2927 (fnext-runtime): Likewise.
2928 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2929
62bad7cd
AM
29302011-11-28 Andrew MacLeod <amacleod@redhat.com>
2931
2932 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2933 predefines in one place. Add LOCK_FREE predefines.
2934 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2935 new func.
2936
c466c4ff
AM
29372011-11-24 Andrew MacLeod <amacleod@redhat.com>
2938
2939 PR c/51256
9faeb493 2940 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2941 conditions
9faeb493
UB
2942 (resolve_overloaded_atomic_exchange,
2943 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2944 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2945 error_mark_node for error conditions.
9faeb493 2946
a5952633
RG
29472011-11-08 Richard Guenther <rguenther@suse.de>
2948
2949 PR middle-end/51010
2950 c-family/
2951
0a35513e
AH
29522011-11-07 Richard Henderson <rth@redhat.com>
2953 Aldy Hernandez <aldyh@redhat.com>
2954 Torvald Riegel <triegel@redhat.com>
2955
2956 Merged from transactional-memory.
2957
2958 * c-common.c (handle_tm_wrap_attribute,
2959 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2960 (struct c_common_reswords): Added __transaction* keywords.
2961 (struct c_common_attribute_table): Added transaction* and tm_regparm
2962 attributes.
2963 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2964 masks.
2965 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2966 find_tm_attribute): Declare.
2967
6d87092d
JM
29682011-11-07 Jason Merrill <jason@redhat.com>
2969
2970 PR c++/35688
2971 * c-common.c, c-common.h: Revert yesterday's changes.
2972
8e7860a1
JM
29732011-11-06 Jason Merrill <jason@redhat.com>
2974
2975 PR c++/35688
2976 * c-common.c (decl_has_visibility_attr): Split out from...
2977 (c_determine_visibility): ...here.
2978 * c-common.h: Declare it.
2979
d19fa6b5
JM
29802011-11-06 Joseph Myers <joseph@codesourcery.com>
2981
2982 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2983 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2984 type.
2985 (check_user_alignment): New. Split out of
2986 handle_aligned_attribute. Disallow integer constants with
2987 noninteger types. Conditionally allow zero.
2988 (handle_aligned_attribute): Use check_user_alignment.
2989 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2990
86951993
AM
29912011-11-06 Andrew MacLeod <amacleod@redhat.com>
2992 Richard Henderson <rth@redhat.com>
2993
2994 Merged from cxx-mem-model.
2995
2996 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2997 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2998 parameters that are the same type size.
2999 (get_atomic_generic_size): New. Find size of generic
3000 atomic function parameters and do typechecking.
3001 (add_atomic_size_parameter): New. Insert size into parameter list.
3002 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3003 either __atomic_exchange_n or external library call.
9faeb493 3004 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3005 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3006 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3007 __atomic_load_n or an external library call.
3008 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3009 __atomic_store_n or an external library call.
3010 (resolve_overloaded_builtin): Handle new __atomic builtins.
3011
cf9e9959
EB
30122011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3013
3014 PR c++/50608
3015 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3016 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3017 <INDIRECT_REF>: Return the argument.
3018 <ARRAY_REF>: Remove special code for negative offset.
3019 Call fold_build_pointer_plus instead of size_binop.
3020 (fold_offsetof): Remove STOP_REF argument and adjust.
3021 * c-common.h (fold_offsetof_1): Declare.
3022 (fold_offsetof): Remove STOP_REF argument.
3023
25339f10
JM
30242011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3025
3026 PR c++/50810
3027 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3028 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3029 Wnarrowing for C++0x and C++98.
3030 * c.opt ([Wnarrowing]): Update.
3031
89401152
PC
30322011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3033
3034 PR c++/44277
3035 * c.opt: Add Wzero-as-null-pointer-constant.
3036
97e3ad20
JM
30372011-10-31 Jason Merrill <jason@redhat.com>
3038
15694fdd
JM
3039 * c.opt (-fdeduce-init-list): Off by default.
3040
97e3ad20
JM
3041 PR c++/50920
3042 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3043 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3044 and -Wc++11-compat.
3045 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3046
fb9120e3
RAV
30472011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3048
3049 PR c++/30066
3050 * c.opt (fvisibility-inlines-hidden): Description change.
3051
3ce4f9e4
ESR
30522011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3053
3054 Implement C++11 user-defined literals.
3055 * c-common.c (build_userdef_literal): New.
3056 * c-common.def: New tree code.
3057 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3058 * c-lex.c (interpret_float): Add suffix parm.
3059 (c_lex_with_flags): Build literal tokens.
3060
5f53c243
PC
30612011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3062
3063 PR c++/50841
3064 Revert:
3065 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3066
3067 PR c++/50810
3068 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3069 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3070 Wnarrowing for C++0x and C++98.
3071 * c.opt ([Wnarrowing]): Update.
3072
263734e1
PC
30732011-10-23 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
d2e312d7
PC
30812011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3082
3083 PR c++/45385
3084 * c-common.c (conversion_warning): Remove code looking for
3085 artificial operands.
3086
d17687f6
DS
30872011-10-18 Dodji Seketeli <dodji@redhat.com>
3088
3089 PR bootstrap/50760
3090 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3091 !NO_IMPLICIT_EXTERN_C.
d17687f6 3092
fc8396e9
PC
30932011-10-17 Michael Spertus <mike_spertus@symantec.com>
3094
3095 * c-common.c (c_common_reswords): Add __bases,
3096 __direct_bases.
3097 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3098
30992011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3100
3101 PR c++/50757
3102 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3103
847e697a
TT
31042011-10-15 Tom Tromey <tromey@redhat.com>
3105 Dodji Seketeli <dodji@redhat.com>
3106
3107 * c.opt (fdebug-cpp): New option.
3108 * c-opts.c (c_common_handle_option): Handle the option.
3109 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3110 output stream in parameter. Factorized from ...
3111 (maybe_print_line): ... this. Dump location debug information when
3112 -fdebug-cpp is in effect.
3113 (print_line_1): New static function. Takes an output stream in
3114 parameter. Factorized from ...
3115 (print_line): ... here. Dump location information when -fdebug-cpp
3116 is in effect.
3117 (scan_translation_unit): Dump location information when
3118 -fdebug-cpp is in effect.
3119
92582b75
TT
31202011-10-15 Tom Tromey <tromey@redhat.com>
3121 Dodji Seketeli <dodji@redhat.com>
3122
3123 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3124 without argument.
3125 * c-opts.c (c_common_handle_option)<case
3126 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3127 cases. Handle -ftrack-macro-expansion with and without argument.
3128
46427374
TT
31292011-10-15 Tom Tromey <tromey@redhat.com>
3130 Dodji Seketeli <dodji@redhat.com>
3131
3132 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3133 (print_line, cb_define, do_line_change): Adjust to avoid touching
3134 the internals of struct line_map. Use the public API instead.
3135 * c-pch.c (c_common_read_pch): Likewise.
3136 * c-lex.c (fe_file_change): Likewise.
3137
fc8396e9
PC
31382011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3139
3140 PR c++/17212
3141 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3142
31432011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3144
3145 PR c++/33067
3146 * c-pretty-print.c (pp_c_floating_constant): Output
3147 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3148
e79983f4
MM
31492011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3150
3151 * c-common.c (def_builtin_1): Delete old interface with two
3152 parallel arrays to hold standard builtin declarations, and replace
3153 it with a function based interface that can support creating
3154 builtins on the fly in the future. Change all uses, and poison
3155 the old names. Make sure 0 is not a legitimate builtin index.
3156 * c-omp.c (c_finish_omp_barrier): Ditto.
3157 (c_finish_omp_taskwait): Ditto.
3158 (c_finish_omp_flush): Ditto.
3159
6637388f
TG
31602011-10-11 Tristan Gingold <gingold@adacore.com>
3161
3162 * c.opt: (fallow-parameterless-variadic-functions): New.
3163
3797cb21
DS
31642011-09-08 Dodji Seketeli <dodji@redhat.com>
3165
3166 PR c++/33255 - Support -Wunused-local-typedefs warning
3167 * c-common.h (struct c_language_function::local_typedefs): New
3168 field.
9faeb493
UB
3169 (record_locally_defined_typedef, maybe_record_typedef_use)
3170 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 3171 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
3172 (maybe_record_typedef_use)
3173 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
3174 * c.opt: Declare new -Wunused-local-typedefs flag.
3175
693ddb1b
EB
31762011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3177
3178 PR middle-end/50266
3179 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3180 computations.
3181
830c740f
RG
31822011-09-05 Richard Guenther <rguenther@suse.de>
3183
3184 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3185 of integer_minus_one_node for empty array upper bounds.
3186
892a371f
DS
31872011-08-28 Dodji Seketeli <dodji@redhat.com>
3188
3189 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3190 it's the first time it's being called on this main TU.
3191
0e3fdb48
RB
31922011-08-24 Richard Guenther <rguenther@suse.de>
3193
3194 PR c/49396
3195 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3196
31972011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
3198
3199 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3200 defined in cpp_init_builtins and c_cpp_builtins.
3201
d4a83c10
JM
32022011-08-19 Joseph Myers <joseph@codesourcery.com>
3203
3204 * c-common.c (c_common_reswords): Add __builtin_complex.
3205 * c-common.h (RID_BUILTIN_COMPLEX): New.
3206
bbceee64
JM
32072011-08-18 Joseph Myers <joseph@codesourcery.com>
3208
3209 * c-common.c (c_common_reswords): Add _Noreturn.
3210 (keyword_is_function_specifier): Handle RID_NORETURN.
3211 * c-common.h (RID_NORETURN): New.
3212
0e3a99ae
AS
32132011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3214
3215 * c-common.c (unsafe_conversion_p): New function. Check if it is
3216 unsafe to convert an expression to the type.
3217 (conversion_warning): Adjust, use unsafe_conversion_p.
3218 * c-common.h (unsafe_conversion_p): New function declaration.
3219
20906c66
JJ
32202011-08-02 Jakub Jelinek <jakub@redhat.com>
3221
3222 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3223 (c_finish_omp_taskyield): New prototype.
3224 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3225 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3226 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3227 or RHS1 have side-effects, evaluate those too in the right spot,
3228 if it is a decl and LHS is also a decl, error out if they
3229 aren't the same.
3230 (c_finish_omp_taskyield): New function.
3231 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3232 * c-pragma.c (omp_pragmas): Add taskyield.
3233 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3234 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3235 PRAGMA_OMP_CLAUSE_MERGEABLE.
3236
770e5a2e
DS
32372011-07-25 Dodji Seketeli <dodji@redhat.com>
3238
3239 * c-common.h (set_underlying_type): Remove parm name from
3240 declaration.
3241
1baae426
RG
32422011-07-25 Romain Geissler <romain.geissler@gmail.com>
3243
3244 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 3245
fcb21722
JM
32462011-07-22 Jason Merrill <jason@redhat.com>
3247
76f86d00
JM
3248 PR c++/49793
3249 * c.opt (Wnarrowing): New.
3250
3a636414
JM
3251 PR c++/30112
3252 * c-common.h: Declare c_linkage_bindings.
3253 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3254
fcb21722
JM
3255 PR c++/49813
3256 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3257 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3258 as flag_isoc99 for 'restrict'.
3259 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3260
02614448
ILT
32612011-07-21 Ian Lance Taylor <iant@google.com>
3262
3263 PR middle-end/49705
3264 * c-common.c (c_disable_warnings): New static function.
3265 (c_enable_warnings): New static function.
3266 (c_fully_fold_internal): Change local unused_p to bool. Call
3267 c_disable_warnings and c_enable_warnings rather than change
3268 c_inhibit_evaluation_warnings.
3269
34429675
JM
32702011-07-20 Jason Merrill <jason@redhat.com>
3271
3272 PR c++/6709 (DR 743)
3273 PR c++/42603 (DR 950)
3274 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3275 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3276 (CPP_DECLTYPE): New.
3277 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3278
5d49b6a7
RG
32792011-07-19 Richard Guenther <rguenther@suse.de>
3280
3281 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3282 * c-omp.c (c_finish_omp_for): Likewise.
3283
e84a58ff
EB
32842011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3285
3286 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3287 body on the next line.
3288
329af3c7
JM
32892011-07-08 Jason Merrill <jason@redhat.com>
3290
4063e61b
JM
3291 PR c++/45437
3292 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3293
329af3c7
JM
3294 PR c++/49673
3295 * c-common.c (c_apply_type_quals_to_decl): Don't check
3296 TYPE_NEEDS_CONSTRUCTING.
3297
1a072294
RG
32982011-07-06 Richard Guenther <rguenther@suse.de>
3299
3300 * c-common.c (c_common_nodes_and_builtins):
3301 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3302
fce5dddd
RG
33032011-07-05 Richard Guenther <rguenther@suse.de>
3304
3305 * c-common.c (c_common_nodes_and_builtins): Build all common
3306 tree nodes first.
3307
45d439ac
JJ
33082011-06-27 Jakub Jelinek <jakub@redhat.com>
3309
56300785
JJ
3310 * c-common.h (c_tree_chain_next): New static inline function.
3311
45d439ac
JJ
3312 * c-common.c (check_builtin_function_arguments): Handle
3313 BUILT_IN_ASSUME_ALIGNED.
3314
e0a8ecf2
AM
33152011-06-21 Andrew MacLeod <amacleod@redhat.com>
3316
3317 * c-common.c: Add sync_ or SYNC__ to builtin names.
3318 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
3319
33202011-06-20 Pierre Vittet <piervit@pvittet.com>
3321
3322 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3323 handler.
3324 (gen_pragma_handler): New union.
3325 (internal_pragma_handler): New type.
3326 (c_register_pragma_with_data)
3327 (c_register_pragma_with_expansion_and_data): New functions.
3328
3329 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3330 (c_register_pragma, c_register_pragma_with_expansion)
3331 (c_invoke_pragma_handler): Changed to work with
3332 internal_pragma_handler.
3333 (c_register_pragma_with_data)
3334 (c_register_pragma_with_expansion_and_data): New functions.
3335
677f3fa8
JM
33362011-06-14 Joseph Myers <joseph@codesourcery.com>
3337
3338 * c-common.c: Include common/common-target.h.
3339 (handle_section_attribute): Use
3340 targetm_common.have_named_sections.
3341 * c-cppbuiltin.c: Include common/common-target.h.
3342 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3343
d7fc8c14
RG
33442011-06-10 Richard Guenther <rguenther@suse.de>
3345
3346 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3347 to print a IDENTIFIER_NODE.
3348
10e48e39
RO
33492011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3350 Joseph Myers <joseph@codesourcery.com>
3351
3352 * c.opt (fbuilding-libgcc): New option.
3353 * c-cppbuiltin.c (c_cpp_builtins): Define
3354 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3355
6976ae51
JM
33562011-06-07 Jason Merrill <jason@redhat.com>
3357
3ff60975
JM
3358 * c-common.c (max_tinst_depth): Lower default to 900.
3359
6976ae51
JM
3360 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3361
009db074
RG
33622011-06-07 Richard Guenther <rguenther@suse.de>
3363
3364 * c-common.c (c_common_nodes_and_builtins): Do not set
3365 size_type_node or call set_sizetype.
3366
b4592b92
DS
33672011-06-07 Dodji Seketeli <dodji@redhat.com>
3368
3369 PR debug/49130
3370 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 3371 type when using pointer comparison to compare types.
b4592b92 3372
014ab419
JW
33732011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3374
3375 * c.opt: Add -Wdelete-non-virtual-dtor.
3376 * c-opts.c (c_common_handle_option): Include it in -Wall.
3377
4f60111f
NF
33782011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3379
3380 PR bootstrap/49190
3381
3382 Revert:
3383 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3384
3385 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3386 not tree_common.
3387
4cc4f2f4
JJ
33882011-05-27 Jakub Jelinek <jakub@redhat.com>
3389
3390 PR c++/49165
3391 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3392 C++ don't call c_common_truthvalue_conversion on void type arms.
3393
38e01f9e
NF
33942011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3395
3396 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3397 (stmt_list_stack): Define.
3398 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3399 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3400
92e948a8
NF
34012011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3402
3403 * c-common.c (warning_candidate_p): Check for BLOCKs.
3404
a2fc3e63
NF
34052011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3406
3407 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3408 not tree_common.
3409
0957c029
JJ
34102011-05-25 Jakub Jelinek <jakub@redhat.com>
3411
3412 * c-common.c (def_fn_type): Remove extra va_end.
3413
828fb3ba
JM
34142011-05-23 Jason Merrill <jason@redhat.com>
3415
3416 PR c++/48106
3417 * c-common.c (c_common_get_narrower): New.
3418 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3419
dde05067
NF
34202011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3421
3422 * c-common.h (check_function_arguments): Tweak prototype of
3423 check_function_arguments.
3424 * c-common.c (check_function_arguments): Likewise. Adjust
3425 calls to check_function_nonnull, check_function_format, and
3426 check_function_sentinel.
3427 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3428 separate attributes and typelist arguments. Use
3429 FOREACH_FUNCTION_ARGS to iterate over argument types.
3430
3c0d13bf
PC
34312011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3432
3433 * c-common.c (c_common_reswords): Reorder.
3434 * c-common.h (rid): Likewise.
3435
8242dd04
NF
34362011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3437
3438 * c-common.c (def_fn_type): Don't call build_function_type, call
3439 build_function_type_array or build_varargs_function_type_array
3440 instead.
3441 (c_common_nodes_and_builtins): Likewise.
3442
3d528853
NF
34432011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3444
3445 * c-common.c (c_add_case_label): Omit the loc argument to
3446 build_case_label.
3447 * c-common.h (build_case_label): Remove.
3448 * c-semantics.c (build_case_label): Remove.
3449
a04a722b
JM
34502011-05-05 Joseph Myers <joseph@codesourcery.com>
3451
3452 * c-objc.h (objc_start_method_definition): Update prototype.
3453 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3454
e19a18d4
NF
34552011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3456
3457 * c-common.c (check_main_parameter_types): Reindent. Don't use
3458 TYPE_ARG_TYPES directly.
3459 (handle_nonnull_attribute): Likewise.
3460 (sync_resolve_params): Likewise.
3461 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3462 to check_format_string.
3463 (handle_format_attribute): Likewise.
3464 (check_format_string): Take a function type to examine instead of
3465 a type list. Use a function_arg_iterator to step through argument
3466 types.
3467
c62c040f
RG
34682011-05-04 Richard Guenther <rguenther@suse.de>
3469
3470 * c-common.c (fix_string_type): Use size_int for index type bounds.
3471 (start_fname_decls): Do not pass NULL to build_int_cst.
3472 (c_init_attributes): Likewise.
3473 * c-lex.c (c_lex_with_flags): Likewise.
3474
c12ff9d8
JM
34752011-04-27 Jason Merrill <jason@redhat.com>
3476
3477 * c-common.c (make_tree_vector_from_list): New.
3478 * c-common.h: Declare it.
3479
304dfbe3
RG
34802011-04-26 Richard Guenther <rguenther@suse.de>
3481
3482 PR preprocessor/48248
3483 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3484 for output size with -P.
3485
3c0d13bf
PC
34862011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3487
3488 * c-common.c (struct c_common_resword): Add __underlying_type.
3489 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3490
04695783
JM
34912011-04-20 Jim Meyering <meyering@redhat.com>
3492
3493 * c-format.c (init_dollar_format_checking): Remove useless
3494 if-before-free.
3495
0dc33c3c
NP
34962011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3497
3498 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 3499 (objc_detect_field_duplicates): New.
0dc33c3c 3500 * stub-objc.c: Likewise.
3c0d13bf 3501
c59633d9
NP
35022011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3503
3504 * stub-objc.c (objc_declare_protocols): Renamed to
3505 objc_declare_protocol.
3506 * c-objc.h: Likewise.
3c0d13bf 3507
32dabdaf
NP
35082011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3509
3510 * stub-objc.c (objc_declare_class): Updated argument name.
3511
81f653d6
NF
35122011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3513
3514 * c-common.h (c_common_init_ts): Declare.
3515 * c-common.c (c_common_init_ts): Define.
3516
eb345401
NP
35172011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3518
3519 * c-objc.h (objc_build_message_expr): Updated prototype.
3520 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 3521
a358e188
MJ
35222011-04-12 Martin Jambor <mjambor@suse.cz>
3523
3524 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3525 of cgraph_node.
3526
e6313a78
RG
35272011-04-11 Richard Guenther <rguenther@suse.de>
3528
3529 * c-common.c (complete_array_type): Build a range type of
3530 proper type.
3531
dcf0c47e
NF
35322011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3533
3534 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3535 (handle_type_generic_attribute): Likewise.
3536
1ee44b26
JM
35372011-04-07 Jason Merrill <jason@redhat.com>
3538
3539 PR c++/48450
3540 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3541 conversion from C++0x scoped enum.
3542
acce4e77
JM
35432011-04-06 Joseph Myers <joseph@codesourcery.com>
3544
3545 * c-target-def.h: New file.
3546 * c-target.def: New file.
3547 * c-target.h: New file.
3548 * c-common.c (targetcm): Don't define here.
3549 * c-common.h (default_handle_c_option): Declare.
3550 * c-format.c: Include c-target.h instead of target.h.
3551 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3552 include tm.h.
3553 (default_handle_c_option): Move from targhooks.c.
3554
e2eefb55
JJ
35552011-03-29 Jakub Jelinek <jakub@redhat.com>
3556
3557 PR preprocessor/48248
3558 * c-ppoutput.c (print): Add src_file field.
3559 (init_pp_output): Initialize it.
3560 (maybe_print_line): Don't optimize by adding up to 8 newlines
3561 if map->to_file and print.src_file are different file.
3562 (print_line): Update print.src_file.
3563
ba78087b
KT
35642011-03-25 Kai Tietz <ktietz@redhat.com>
3565
3566 * c-ada-spec.c (compare_comment): Use filename_cmp
3567 instead of strcmp for filename.
3568
0edf1bb2
JL
35692011-03-25 Jeff Law <law@redhat.com>
3570
adfac8df 3571 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 3572
c7dc8804
JM
35732011-03-25 Jason Merrill <jason@redhat.com>
3574
3575 * c.opt: Add -std=c++03.
3576
d1d879b1
EB
35772011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3578
3579 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3580
62d784f7
KT
35812011-03-17 Kai Tietz
3582
3583 PR target/12171
5050afdf
KT
3584 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3585 Display allowed attributes for function pointer types.
3586 (pp_c_attributes_display): New function to display
3587 attributes having affects_type_identity flag set to true.
3588 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3589
62d784f7
KT
3590 * c-common.c (c_common_attribute_table):
3591 Add new element.
3592 (c_common_format_attribute_table): Likewise.
3593
82d37118
JM
35942011-03-18 Jason Merrill <jason@redhat.com>
3595
49a000c3
JM
3596 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3597 * c-common.h: Don't declare it here.
3598 * c-common.c: Or define it here.
3599 * c-opts.c (c_common_handle_option): Or set it here.
3600
82d37118
JM
3601 PR c++/35315
3602 * c-common.c (handle_transparent_union_attribute): Don't
3603 make a duplicate type in C++.
3604
17bc631c
JM
36052011-03-15 Jason Merrill <jason@redhat.com>
3606
3607 * c-common.c (max_constexpr_depth): New.
3608 * c-common.h: Declare it.
3609 * c-opts.c (c_common_handle_option): Set it.
3610 * c.opt (fconstexpr-depth): New option.
3611
1b9b91a6
JM
36122011-03-11 Jason Merrill <jason@redhat.com>
3613
f231b5ff
JM
3614 * c-common.c (attribute_takes_identifier_p): Add missing const.
3615
1b9b91a6
JM
3616 PR c++/46803
3617 * c-common.c (attribute_takes_identifier_p): Assume that an
3618 unknown attribute takes an identifier.
3619
a19e4d44
NF
36202011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3621
3622 PR c/47786
3623 * c-common.c (c_type_hash): Call list_length instead of iterating
3624 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3625
982d62f6
JJ
36262011-02-19 Jakub Jelinek <jakub@redhat.com>
3627
3628 PR c/47809
3629 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3630
0a256240
NP
36312011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3632
3633 * c.opt (fobjc-abi-version=) New.
3634 (fobjc-nilcheck): New.
3635
ba9e6dd5
NF
36362011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3637
3638 PR c++/46890
3639 * c-common.h (keyword_is_decl_specifier): Declare.
3640 * c-common.c (keyword_is_decl_specifier): Define.
3641 (keyword_is_function_specifier): New function.
3642
7273813a
JJ
36432011-01-26 Jakub Jelinek <jakub@redhat.com>
3644
3645 PR c/47473
3646 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3647 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3648 REAL_TYPE.
3649
908ef79b
AC
36502011-01-26 Arnaud Charlet <charlet@adacore.com>
3651
3652 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3653
237e9384
JJ
36542011-01-26 Jakub Jelinek <jakub@redhat.com>
3655
3656 PR pch/47430
3657 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3658 after init_c_lex if pch_file is set.
3659
47ea1edf
DK
36602011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3661
d4dba752 3662 PR c++/43601
47ea1edf
DK
3663 * c.opt (-fkeep-inline-dllexport): New switch.
3664
2aa9c6ae
RG
36652011-01-12 Richard Guenther <rguenther@suse.de>
3666
3667 PR middle-end/32511
3668 * c-common.c (handle_weak_attribute): Warn instead of error
3669 on declaring an inline function weak.
3670
7bd11157
TT
36712011-01-05 Tom Tromey <tromey@redhat.com>
3672
3673 * c-common.h (lvalue_error): Update.
3674 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3675 not error.
3676
0e66e494 36772010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 3678
b4f588c4
NP
3679 PR objc/47075
3680 * c-objc.h (objc_finish_message_expr): Added argument to
3681 prototype.
3682
f4da8dce
NF
36832010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3684
3685 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3686 Use prototype_p.
3687
46270f14
NP
36882010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3689
3690 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 3691 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 3692
4816c593
NF
36932010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3694
3695 * c-common.h (readonly_error): Declare.
3696 * c-common.c (readonly_error): Define.
3697
7a6daeb0
NF
36982010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3699
3700 * c-common.h (invalid_indirection_error): Declare.
3701 * c-common.c (invalid_indirection_error): Define.
3702
892f6119
RG
37032010-12-03 Richard Guenther <rguenther@suse.de>
3704
3705 PR c/46745
3706 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3707 (pp_c_unary_expression): Likewise.
3708 (pp_c_expression): Likewise.
3709
6c39e757
NP
37102010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3711
3712 * c-common.h (objc_finish_function): New.
3713 (objc_non_volatilized_type): Removed.
3714 (objc_type_quals_match): Removed.
3715 * stub-objc.c (objc_finish_function): New.
3716 (objc_non_volatilized_type): Removed.
3717 (objc_type_quals_match): Removed.
9faeb493 3718
7c475d11
JM
37192010-11-30 Joseph Myers <joseph@codesourcery.com>
3720
3721 * c-common.h (parse_optimize_options): Declare.
3722 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3723 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3724
71f3e391
JM
37252010-11-29 Joseph Myers <joseph@codesourcery.com>
3726
3727 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3728 GET_ENVIRONMENT.
3729 * c-pch.c (O_BINARY): Don't define here.
3730 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3731
d5fabb58
JM
37322010-11-25 Joseph Myers <joseph@codesourcery.com>
3733
3734 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3735 targetm.except_unwind_info.
3736
299404a1
JM
37372010-11-23 Joseph Myers <joseph@codesourcery.com>
3738
3739 * c-opts.c (c_common_handle_option): Pass location to
3740 set_struct_debug_option.
3741
c98cd5bf
JM
37422010-11-23 Joseph Myers <joseph@codesourcery.com>
3743
3744 * c-common.c (visibility_options): Move from ../opts.c.
3745 * c-common.h (struct visibility_flags, visibility_options):
3746 Declare here.
3747 * c-opts.c (finish_options): Rename to c_finish_options.
3748 (c_common_init): Update call to finish_options.
3749
a9546771
NP
37502010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3751
3752 PR objc/34033
3753 * c-lex.c (lex_string): Check that each string in an Objective-C
3754 string concat sequence starts with either one or zero '@', and
3755 that there are no spurious '@' signs at the end.
3756
24a57808
JM
37572010-11-20 Joseph Myers <joseph@codesourcery.com>
3758
3759 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3760 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3761 HANDLE_PRAGMA_VISIBILITY.
3762 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3763 HANDLE_PRAGMA_VISIBILITY): Don't define.
3764 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3765
a9aa2c3a
NF
37662010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3767
3768 PR c++/16189
3769 PR c++/36888
3770 PR c++/45331
3771 * c-common.h (keyword_begins_type_specifier): Declare.
3772 (keyword_is_storage_class_specifier): Declare.
3773 (keyword_is_type_qualifier): Declare.
3774 * c-common.c (keyword_begins_type_specifier): New function.
3775 (keyword_is_storage_class_specifier): New function.
3776 (keyword_is_type_qualifier): Declare.
3777
5386338c
JM
37782010-11-19 Joseph Myers <joseph@codesourcery.com>
3779
3780 PR c/46547
3781 * c-common.c (in_late_binary_op): Define.
3782 (c_common_truthvalue_conversion): Check in_late_binary_op before
3783 calling c_save_expr.
3784 * c-common.h (in_late_binary_op): Declare.
3785
69ccdddb
JM
37862010-11-19 Joseph Myers <joseph@codesourcery.com>
3787
3788 * c-opts.c (c_common_handle_option): Update calls to
3789 set_struct_debug_option.
3790
6b192a09
NP
37912010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3792
3793 * c-common.h (objc_declare_protocols): Added additional argument.
3794 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 3795
fb52b50a
NF
37962010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3797
3798 PR c/33193
3799 * c-common.h (build_real_imag_expr): Declare.
3800 * c-semantics.c (build_real_imag_expr): Define.
3801
b37421c6
JM
38022010-11-17 Joseph Myers <joseph@codesourcery.com>
3803
3804 * c-opts.c (c_common_parse_file): Take no arguments.
3805 * c-common.h (c_common_parse_file): Update prototype.
3806
07078664
JJ
38072010-11-16 Jakub Jelinek <jakub@redhat.com>
3808
3809 PR c++/46401
3810 * c-common.c (warning_candidate_p): Don't track non-const calls
3811 or STRING_CSTs.
3812
c6a13190
ILT
38132010-11-15 Ian Lance Taylor <iant@google.com>
3814
3815 * c-lex.c (init_c_lex): Set macro debug callbacks if
3816 flag_dump_go_spec is set.
3817
925e8657
NP
38182010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3819
3820 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3821 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3822
bb0a9581
NF
38232010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3824
3825 PR preprocessor/45038
3826 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3827 dialects.
3828
c5fa0890
JM
38292010-11-12 Joseph Myers <joseph@codesourcery.com>
3830
3831 * c-common.h (c_family_lang_mask): Declare.
3832 * c-opts.c (c_family_lang_mask): Make extern.
3833 * c-pragma.c (handle_pragma_diagnostic): Use
3834 control_warning_option.
3835
a4d8c676
JM
38362010-11-12 Joseph Myers <joseph@codesourcery.com>
3837
3838 * c-common.c (parse_optimize_options): Update call to
3839 decode_options.
3840 * c-common.h (c_common_handle_option): Update prototype.
3841 * c-opts.c (c_common_handle_option): Take location_t parameter and
3842 pass it to other functions.
3843
f954bd2c
JM
38442010-11-11 Joseph Myers <joseph@codesourcery.com>
3845
3846 * c-opts.c (warning_as_error_callback): Remove.
3847 (c_common_initialize_diagnostics): Don't call
3848 register_warning_as_error_callback.
3849 (c_common_handle_option): Handle -Werror=normalized= here.
3850
d8a07487
JM
38512010-11-10 Joseph Myers <joseph@codesourcery.com>
3852
3853 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3854 in diagnostic.
3855 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3856 letter.
3857 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3858 Remove trailing '.' from diagnostics.
3859 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3860
d5478783
JM
38612010-11-10 Joseph Myers <joseph@codesourcery.com>
3862
3863 * c-common.c (parse_optimize_options): Pass global_dc to
3864 decode_options.
3865 * c-opts.c (c_common_handle_option): Pass &global_options to
3866 set_Wstrict_aliasing.
3867 * c.opt (v): Don't mark Common or document here.
3868
91ebb981
IS
38692010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3870
3871 PR target/44981
3872 * c-format.c (format_type): New type gcc_objc_string_format_type.
3873 (valid_stringptr_type_p): New.
3874 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3875 (check_format_string): Pass expected type, use
91ebb981
IS
3876 valid_stringptr_type_p (), check that the format string types are
3877 consistent with the format specification.
3878 (decode_format_attr): Warn if NSString is used outside objective-c.
3879 (format_types_orig): Add NSString.
3880 (format_name): New.
3881 (format_flags): New.
3882 (check_format_arg): Handle format strings requiring an external parser.
3883 first_target_format_type: New variable.
3884 (handle_format_attribute): Set up first_target_format_type, pass the
3885 expected format arg string type to check_format_string().
3886 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3887 * stub-objc.c (objc_string_ref_type_p): New.
3888 (objc_check_format_arg): New.
3889
bede2adc
NP
38902010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3891
9faeb493 3892 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3893 * c-common.h (objc_build_class_component_ref): New.
3894 * stub-objc.c (objc_build_class_component_ref): New.
3895
9a179d01
NP
38962010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3897
3898 * c.opt (Wproperty-assign-default): New option.
3899
22d8d616
NP
39002010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3901
3902 Implemented -fobjc-std=objc1 flag.
3903 * c.opt (fobjc-std=objc1): New option.
3904
2debdb4f
NP
39052010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3906
3907 Implemented format and noreturn attributes for Objective-C methods.
3908 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3909 attribute for Objective-C methods.
3910
ec52b111
JM
39112010-10-31 Jason Merrill <jason@redhat.com>
3912
3913 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3914 EXPR_LOC_OR_HERE.
3915
46a88c12
NP
39162010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3917
3918 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3919 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3920 (objc_add_property_declaration): Removed arguments for copies and
3921 ivar.
3922 (objc_build_getter_call): Renamed to
3923 objc_maybe_build_component_ref.
3924 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3925 (objc_is_property_ref): New.
3926 * c-common.c (c_common_reswords): Removed copies and ivar.
3927 * stub-objc.c (objc_add_property_declaration): Removed arguments
3928 for copies and ivar.
3929 (objc_build_getter_call): Renamed to
3930 objc_maybe_build_component_ref.
3931 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3932 (objc_is_property_ref): New.
9faeb493 3933
1e4bf85b
AC
39342010-10-29 Arnaud Charlet <charlet@adacore.com>
3935 Matthew Gingell <gingell@adacore.com>
3936
3937 * c-ada-spec.c (separate_class_package): New function.
3938 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3939 name of their enclosing package.
3940 (print_ada_declaration): Use separate_class_package.
3941
81f0bab2
JM
39422010-10-27 Jason Merrill <jason@redhat.com>
3943
2b08f2c5
JM
3944 * c-common.c (c_common_reswords): Add __is_literal_type.
3945 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3946
81f0bab2
JM
3947 * c-common.c (check_case_value): Remove special C++ code.
3948
200290f2
NP
39492010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3950
3951 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3952 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3953 and RID_LAST_PATTR.
3954 (objc_add_property_declaration): Added additional arguments.
3955 (objc_property_attribute_kind): Removed.
3956 (objc_set_property_attr): Removed.
3957 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3958 copy and nonatomic.
3959 * stub-objc.c (objc_add_property_declaration): Added additional
3960 arguments.
3961 (objc_set_property_attr): Removed.
9faeb493 3962
f614132b
NP
39632010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3964
3965 * c-common.h (objc_add_property_variable): Renamed to
3966 objc_add_property_declaration. Added location argument.
3967 * stub-objc.c (objc_add_property_variable): Same change.
3968
b8a18805
NP
39692010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3970
3971 * c-common.h (objc_maybe_printable_name): New.
3972 * stub-objc.c (objc_maybe_printable_name): New.
3973
30cd1c5d
AS
39742010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3975 Andrew Pinski <pinskia@gmail.com>
3976
3977 * c-common.h (c_common_mark_addressable_vec): Declare.
3978 * c-common.c (c_common_mark_addressable_vec): New function.
3979
249a82c4
NP
39802010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3981
3982 * c-common.h (objc_set_method_type): Removed.
3983 (objc_add_method_declaration): Added boolean argument.
3984 (objc_start_method_definition): Same change.
3985 (objc_build_method_signature): Same change.
3986 * stub-objc.c (objc_set_method_type): Removed.
3987 (objc_add_method_declaration): Added boolean argument.
3988 (objc_start_method_definition): Same change.
3989 (objc_build_method_signature): Same change.
3990
977e30bc
NP
39912010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3992
3993 * c-common.h (finish_file): Removed.
3994 (objc_write_global_declarations): New.
3995 * c-opts.c (c_common_parse_file): Do not call finish_file.
3996 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3997
da57d1b9
NP
39982010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3999
4000 Implemented parsing @synthesize and @dynamic for
4001 Objective-C/Objective-C++.
4002 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4003 (objc_add_synthesize_declaration): New.
4004 (objc_add_dynamic_declaration): New.
4005 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4006 * stub-objc.c (objc_add_synthesize_declaration): New.
4007 (objc_add_dynamic_declaration): New.
9faeb493 4008
0069111f
MM
40092010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4010
4011 PR target/46041
4012 * c-cppbuiltin.c (mode_has_fma): Move function here from
4013 builtins.c. Don't use the fma optab, instead just use the
4014 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4015 using -save-temps.
4016
e426b47b
NP
40172010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4018
4019 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4020
e426b47b
NP
4021 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4022
9faeb493 4023 Radar 4330422
e426b47b
NP
4024 * c-common.h (objc_non_volatilized_type): New declaration
4025 * stub-objc.c (objc_non_volatilized_type): New stub.
4026
90fbfdc3
NP
40272010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4028
e426b47b 4029 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
4030
4031 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4032
9faeb493 4033 Radar 4133425
90fbfdc3 4034 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 4035 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 4036
c37d8c30
IS
40372010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4038
4039 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4040 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4041 (objc_ivar_visibility_kind): New enum.
4042 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 4043 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
4044 visibility enum.
4045
1b1562a5
MM
40462010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4047
4048 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4049 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4050 has the appropriate fma builtins.
4051 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4052
668ea4b1
IS
40532010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4054
1b1562a5 4055 merge from FSF apple 'trunk' branch.
668ea4b1 4056 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 4057
668ea4b1
IS
4058 Radars 4436866, 4505126, 4506903, 4517826
4059 * c-common.c (c_common_resword): Define @property and its attributes.
4060 * c-common.h: Define property attribute enum entries.
4061 (OBJC_IS_PATTR_KEYWORD): New.
4062 (objc_property_attribute_kind): New enum.
4063 Declare objc_set_property_attr (), objc_add_property_variable (),
4064 objc_build_getter_call () and objc_build_setter_call ().
4065 * stub-objc.c (objc_set_property_attr): New stub.
4066 (objc_add_property_variable): Likewise.
4067 (objc_build_getter_call): Likewise.
4068 (objc_build_setter_call) Likewise.
1b1562a5 4069
a1178b30
IS
40702010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4071
1b1562a5 4072 merge from FSF apple 'trunk' branch.
a1178b30
IS
4073 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4074
4075 Radar 3803157 (method attributes)
4076 * c-common.c (handle_deprecated_attribute): Recognize
4077 objc methods as valid declarations.
4078 * c-common.h: Declare objc_method_decl ().
1b1562a5 4079 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4080
a75bfaa6
JM
40812010-10-08 Joseph Myers <joseph@codesourcery.com>
4082
4083 * c-common.c (parse_optimize_options): Call
4084 decode_cmdline_options_to_array_default_mask before
4085 decode_options. Update arguments to decode_options.
4086 * c-common.h (c_common_init_options_struct): Declare.
4087 * c-opts.c (c_common_init_options_struct): New. Split out from
4088 c_common_init_options.
4089
f05b9d93
NP
40902010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4091
4092 Implemented fast enumeration for Objective-C.
4093 * c-common.h (objc_finish_foreach_loop): New.
4094 * stub-objc.c (objc_finish_foreach_loop): New.
4095
1ebe4b4f
JM
40962010-10-05 Joseph Myers <joseph@codesourcery.com>
4097
4098 * c-common.h (struct diagnostic_context): Don't declare here.
4099 (c_common_initialize_diagnostics): Declare using
4100 diagnostic_context typedef.
4101 * c-opts.c (c_common_handle_option): Pass global_dc to
4102 handle_generated_option.
4103
d4d24ba4
JM
41042010-10-04 Joseph Myers <joseph@codesourcery.com>
4105
4106 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4107 handle_generated_option.
4108
478a1c5b
ILT
41092010-10-03 Ian Lance Taylor <iant@google.com>
4110
4111 * c.opt (-fplan9-extensions): New option.
4112
82a1c2fe
FXC
41132010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4114
4115 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4116 Remove.
4117 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4118 of duplicating code.
4119
92902b1b
IS
41202010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4121
4122 * c-common.c: Add two new entries for @optional
4123 and @required keywords.
4124
4125 merge from FSF 'apple/trunk' branch.
4126 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4127
4128 Radar 4386773
4129 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4130 objective-c keywords.
4131 (objc_set_method_opt): New declaration.
4132 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 4133
46625112
JM
41342010-09-30 Joseph Myers <joseph@codesourcery.com>
4135
4136 * c-common.c (handle_optimize_attribute): Pass &global_options to
4137 cl_optimization_save and cl_optimization_restore.
4138 * c-opts.c (c_common_handle_option): Pass &global_options to
4139 handle_generated_option.
4140 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4141 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4142 &global_options to cl_optimization_restore.
4143
49b91f05
NP
41442010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4145
4146 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4147 Objective-C/Objective-C++ keywords.
4148
13ed556f 41492010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 4150
9faeb493
UB
4151 Merge from 'apple/trunk' branch on FSF servers.
4152
a6341d57
NP
4153 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4154
4155 Radar 4281748
4156 * c-common.h (objc_check_global_decl): New declaration.
4157 * stub-objc.c (objc_check_global_decl): New stub.
4158
f0036cca
JM
41592010-09-29 Joseph Myers <joseph@codesourcery.com>
4160
4161 * c.opt: Don't use VarExists.
4162
e3339d0f
JM
41632010-09-29 Joseph Myers <joseph@codesourcery.com>
4164
4165 * c-common.c (c_cpp_error): Update names of diagnostic_context
4166 members.
4167 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4168 cl_optimization members.
4169 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4170 sanitize_cpp_opts, finish_options): Update names of cpp_options
4171 members.
4172
1973201f
NP
41732010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4174
4175 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4176 (objc_is_reserved_word): Removed.
4177 * c-common.c: Updated comments.
4178 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4179 objc_is_reserved_word.
4180 * stub-objc.c (objc_is_reserved_word): Removed.
4181
f7e71da5
IS
41822010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4183
9faeb493 4184 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
4185 include attributes.
4186 (objc_start_method_definition): Likewise.
4187 (objc_build_keyword_decl): Likewise.
4188 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4189 (objc_start_method_definition): Likewise.
4190 (objc_build_keyword_decl): Likewise.
4191
c165dca7
IS
41922010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4193
4194 * c-common.h (objc_start_class_interface): Adjust prototype.
4195 (objc_start_category_interface): Likewise.
4196 (objc_start_protocol): Likewise.
4197 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4198 (objc_start_class_interface): Likewise.
4199 (objc_start_category_interface): Likewise.
4200
7458026b
ILT
42012010-09-27 Ian Lance Taylor <iant@google.com>
4202
4203 * c-common.c (c_common_attribute_table): Add no_split_stack.
4204 (handle_no_split_stack_attribute): New static function.
4205
b581b85b
NP
42062010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4207
9faeb493 4208 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
4209
4210 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4211
9faeb493 4212 Radar 4229905
b581b85b
NP
4213 * c-common.h (objc_have_common_type): New declaration.
4214 * stub-objc.c (objc_have_common_type): New stub.
4215
4216 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4217
4218 Radar 4154928
4219 * c-common.h (objc_common_type): New prototype.
9faeb493 4220 * stub-objc.c (objc_common_type): New stub.
b581b85b 4221
46a4da10
JH
42222010-09-24 Jan Hubicka <jh@suse.cz>
4223
4224 * c-common.c (handle_leaf_attribute): New function.
4225 (struct attribute_spec c_common_att): Add leaf.
4226
e200444e
JM
42272010-09-22 Joseph Myers <joseph@codesourcery.com>
4228
4229 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4230 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4231 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4232 -include-barrier, -include-directory, -include-directory=,
4233 -include-directory-after, -include-directory-after=,
4234 -include-prefix, -include-prefix=, -include-with-prefix,
4235 -include-with-prefix=, -include-with-prefix-after,
4236 -include-with-prefix-after=, -include-with-prefix-before,
4237 -include-with-prefix-before=, -no-integrated-cpp,
4238 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4239 -output=, -pedantic, -pedantic-errors, -preprocess,
4240 -print-missing-file-dependencies, -trace-includes, -traditional,
4241 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4242 -user-dependencies, -verbose, -write-dependencies,
4243 -write-user-dependencies, no-integrated-cpp, traditional): New.
4244
29a80ea6
NP
42452010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4246
4247 PR objc/23710
ac1fc2fc
NP
4248 * c-common.h (objc_start_method_definition): Return bool instead
4249 of void.
4250 * stub-objc.c (objc_start_method_definition): Return bool instead
4251 of void.
4252
42532010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4254
4255 PR objc/25965
4256 * c-common.h (objc_get_interface_ivars): New declaration.
4257 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 4258
de621752
ILT
42592010-09-15 Ian Lance Taylor <iant@google.com>
4260
4261 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 4262 messages. Remove period at end of warning message.
de621752 4263
ba885ec5
NS
42642010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4265
4266 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4267 (handle_alias_attribute): ... here.
4268 (handle_ifunc_attribute): New.
4269
c5ee1358
MM
42702010-09-06 Mark Mitchell <mark@codesourcery.com>
4271
4272 * c-common.h (do_warn_double_promotion): Declare.
4273 * c-common.c (do_warn_double_promotion): Define.
4274
0a0b3574
MM
42752010-09-05 Mark Mitchell <mark@codesourcery.com>
4276
4277 * c.opt (Wdouble-promotion): New.
4278
d1779886
JM
42792010-09-02 Joseph Myers <joseph@codesourcery.com>
4280
4281 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4282 fvtable-thunks, fxref): Mark no longer supported in help text.
4283
2d2bd949
JM
42842010-09-02 Joseph Myers <joseph@codesourcery.com>
4285
4286 * c.opt (Wimport, fall-virtual, falt-external-templates,
4287 fdefault-inline, fenum-int-equiv, fexternal-templates,
4288 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4289 fname-mangling-version-, fnew-abi, fnonnull-objects,
4290 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4291 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4292 applicable.
4293 (fhandle-exceptions): Mark with Alias and Warn.
4294 * c-opts.c (c_common_handle_option): Don't handle options marked
4295 as ignored.
4296
5de8299c
JM
42972010-09-02 Joseph Myers <joseph@codesourcery.com>
4298
4299 * c.opt (Wcomments, Werror-implicit-function-declaration,
4300 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4301 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4302 aliases.
4303 * c-common.c (option_codes): Use OPT_Wcomment instead of
4304 OPT_Wcomments.
4305 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4306 Don't handle options marked as aliases.
4307
0ceb0201
RG
43082010-08-25 Richard Guenther <rguenther@suse.de>
4309
4310 * c-common.c (c_common_get_alias_set): Remove special
4311 handling for pointers.
4312
ac47786e
NF
43132010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4314
4315 * c-common.c: Use FOR_EACH_VEC_ELT.
4316 * c-gimplify.c: Likewise.
4317 * c-pragma.c: Likewise.
4318
c878765b
JM
43192010-08-16 Joseph Myers <joseph@codesourcery.com>
4320
4321 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4322 RejectDriver.
4323 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4324 RejectDriver.
4325 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4326 instead of OPT_MDX and OPT_MMDX.
4327
603349bf
JM
43282010-08-16 Joseph Myers <joseph@codesourcery.com>
4329
4330 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4331
644fa7ac
JM
43322010-08-12 Joseph Myers <joseph@codesourcery.com>
4333
4334 * c.opt (MD, MMD): Change to MDX and MMDX.
4335 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4336
481e1176
JM
43372010-08-11 Joseph Myers <joseph@codesourcery.com>
4338
4339 * c-opts.c (c_common_handle_option): Call handle_generated_option
4340 instead of handle_option.
4341
ac8dc9f7
NF
43422010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4343
4344 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4345 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4346
4f8c876d
NF
43472010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4348
4349 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4350 (pending_redefine_extname): Change type to a VEC.
4351 (add_to_renaming_pragma_list): Update for new type of
4352 pending_redefine_extname.
ac8dc9f7 4353 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 4354
3b0c690e
AC
43552010-08-04 Arnaud Charlet <charlet@adacore.com>
4356
4357 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4358 visited.
4359 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4360 decide whether a type has already been declared/seen.
4361 Do not go to the original type.
4362 (dump_nested_types): New parameter forward.
4363 Generate forward declaration if needed and mark type as visited.
4364 (print_ada_declaration): Call dump_nested_types if not already done.
4365 Mark types as visited.
4366
1890bccc
JM
43672010-08-03 Joseph Myers <joseph@codesourcery.com>
4368
4369 * c.opt (-print-pch-checksum): Remove option.
4370 * c-opts.c (c_common_handle_option): Don't handle
4371 OPT_print_pch_checksum.
4372
5f20c657
JM
43732010-07-27 Joseph Myers <joseph@codesourcery.com>
4374
4375 * c-common.h (c_common_handle_option): Update prototype and return
4376 value type.
4377 * c-opts.c (c_common_handle_option): Update prototype and return
4378 value type. Update calls to handle_option and
4379 enable_warning_as_error.
4380
f551f80c
JJ
43812010-07-27 Jakub Jelinek <jakub@redhat.com>
4382
4383 PR c/45079
4384 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4385
61ff2bdc
JM
43862010-07-27 Joseph Myers <joseph@codesourcery.com>
4387
4388 * c-common.h (c_common_missing_argument): Remove.
4389 * c-opts.c (c_common_missing_argument): Remove.
4390 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4391 idirafter, imacros, include, isysroot, isystem, iquote): Add
4392 MissingArgError.
4393 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4394
7a9bf9a4
JM
43952010-07-27 Joseph Myers <joseph@codesourcery.com>
4396
4397 * c-common.h (c_common_option_lang_mask,
4398 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4399 New.
4400 (c_common_init_options): Update prototype.
4401 * c-opts.c (c_common_option_lang_mask): New.
4402 (c_common_initialize_diagnostics): Split out of
4403 c_common_init_options.
4404 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4405 New.
4406 (c_common_init_options): Update prototype. Use decoded options in
4407 search for -lang-asm.
4408
910ad8de
NF
44092010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4410
4411 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4412 * c-format.c: Likewise.
4413
718f9c0f
MLI
44142010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4415
4416 * c-common.h: Include diagnostic-core.h. Error if already
4417 included.
4418 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4419
4d451982
MLI
44202010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4421
adfac8df 4422 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
4423 Do not include expr.h
4424 (vector_mode_valid_p): Move here.
4425
119fe915
SB
44262010-06-21 DJ Delorie <dj@redhat.com>
4427
4428 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4429 allow these pragmas anywhere.
4430
44312010-06-14 Jakub Jelinek <jakub@redhat.com>
4432
4433 PR bootstrap/44509
4434 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4435 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4436 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4437 ggc_strdup instead of xstrdup.
4438
44392010-06-10 Jakub Jelinek <jakub@redhat.com>
4440
4441 * c-cppbuiltin.c: Include cpp-id-data.h.
4442 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4443 (lazy_hex_fp_value): New function.
4444 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4445
6662d794
MLI
44462010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4447
4448 * c-gimplify.c: Do not include tree-flow.h
4449
38f8b050
JR
44502010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4451
4452 PR other/44034
4453 * c-common.c: Rename targetm member:
4454 targetm.enum_va_list -> targetm.enum_va_list_p
4455
9589f23e
AS
44562010-06-28 Anatoly Sokolov <aesok@post.ru>
4457
4458 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4459
3b06d379
SB
44602010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4461
4462 * c-cppbuiltin.c: Do not include except.h.
4463
d166d4c3
AK
44642010-06-24 Andi Kleen <ak@linux.intel.com>
4465
9faeb493
UB
4466 * c-common.c (warn_for_omitted_condop): New.
4467 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 4468
70cb8be6
JM
44692010-06-21 Joseph Myers <joseph@codesourcery.com>
4470
4471 * c.opt (lang-objc): Remove.
4472 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4473
a4c97feb
JR
44742010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4475
4476 * c-opts.c: Include "tm_p.h".
4477
6e2f1956
JM
44782010-06-20 Joseph Myers <joseph@codesourcery.com>
4479
4480 * c-common.c (parse_optimize_options): Update call to
4481 decode_options.
4482
bc87224e
NF
44832010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4484
4485 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4486 new type of types_used_by_cur_var_decl.
4487
b49cf425
JR
44882010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4489
4490 PR bootstrap/44512
4491 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4492 for C++ standard compliance.
4493
59f9c2ed
JM
44942010-06-16 Jason Merrill <jason@redhat.com>
4495
4496 * c.opt: Add -Wnoexcept.
4497
33766b66
RG
44982010-06-16 Richard Guenther <rguenther@suse.de>
4499
4500 PR c/44555
4501 * c-common.c (c_common_truthvalue_conversion): Remove
4502 premature and wrong optimization concering ADDR_EXPRs.
4503
eff7e30c
AC
45042010-06-15 Arnaud Charlet <charlet@adacore.com>
4505
4506 * c-ada-spec.c (dump_sloc): Remove column info.
4507 (is_simple_enum): New function.
4508 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4509 enum types when relevant.
4510
6312e84d
MLI
45112010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4512
9faeb493 4513 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
4514 location.
4515
1cb42611
JM
45162010-06-10 Joseph Myers <joseph@codesourcery.com>
4517
4518 * c-opts.c (c_common_handle_option): Don't handle
4519 OPT_fshow_column.
4520
a9429e29
LB
45212010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4522
4523 * c-pragma.c (push_alignment): Use typed GC allocation.
4524 (handle_pragma_push_options): Likewise.
4525
4526 * c-common.c (parse_optimize_options): Likewise.
4527
4528 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4529 option.
4530
5498f011
JM
45312010-06-07 Joseph Myers <joseph@codesourcery.com>
4532
4533 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4534 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4535 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4536 flag_signed_bitfields, warn_strict_null_sentinel,
4537 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4538 flag_gen_declaration, flag_no_gnu_keywords,
4539 flag_implement_inlines, flag_implicit_templates,
4540 flag_implicit_inline_templates, flag_optional_diags,
4541 flag_elide_constructors, flag_default_inline, flag_rtti,
4542 flag_conserve_space, flag_access_control, flag_check_new,
4543 flag_new_for_scope, flag_weak, flag_working_directory,
4544 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4545 flag_enforce_eh_specs, flag_threadsafe_statics,
4546 flag_pretty_templates): Remove.
4547 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4548 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4549 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4550 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4551 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4552 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4553 flag_no_gnu_keywords, flag_implement_inlines,
4554 flag_implicit_templates, flag_implicit_inline_templates,
4555 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4556 flag_rtti, flag_conserve_space, flag_access_control,
4557 flag_check_new, flag_new_for_scope, flag_weak,
4558 flag_working_directory, flag_use_cxa_atexit,
4559 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4560 flag_threadsafe_statics, flag_pretty_templates,
4561 warn_strict_null_sentinel): Remove.
4562 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4563 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4564 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4565 fimplicit-inline-templates, fimplicit-templates,
4566 flax-vector-conversions, fms-extensions, fnil-receivers,
4567 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4568 frtti, fshort-double, fshort-enums, fshort-wchar,
4569 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4570 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4571 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4572 gen-decls, undef): Use Var.
4573 (fdefault-inline, foptional-diags): Document as doing nothing.
4574 * c-opts.c (c_common_handle_option): Remove cases for options now
4575 using Var. Mark ignored options as such.
4576
39dabefd
SB
45772010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4578
9faeb493 4579 * c-common.c: Moved to here from parent directory.
39dabefd
SB
4580 * c-common.def: Likewise.
4581 * c-common.h: Likewise.
4582 * c-cppbuiltin.c: Likewise.
4583 * c-dump.c: Likewise.
4584 * c-format.c: Likewise.
4585 * c-format.h : Likewise.
4586 * c-gimplify.c: Likewise.
4587 * c-lex.c: Likewise.
4588 * c-omp.c: Likewise.
4589 * c.opt: Likewise.
4590 * c-opts.c: Likewise.
4591 * c-pch.c: Likewise.
4592 * c-ppoutput.c: Likewise.
4593 * c-pragma.c: Likewise.
4594 * c-pragma.h: Likewise.
4595 * c-pretty-print.c: Likewise.
4596 * c-pretty-print.h: Likewise.
4597 * c-semantics.c: Likewise.
4598 * stub-objc.c: Likewise.
4599
4600 * c-common.c: Include gt-c-family-c-common.h.
4601 * c-pragma.c: Include gt-c-family-c-pragma.h.
4602\f
5624e564 4603Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
4604
4605Copying and distribution of this file, with or without modification,
4606are permitted in any medium without royalty provided the copyright
4607notice and this notice are preserved.