]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
gcc.c (process_command): Update copyright notice dates.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
5bd012f8
MP
12015-01-05 Marek Polacek <polacek@redhat.com>
2
3 PR c/64423
4 * c-common.c (warn_array_subscript_with_type_char): Add location_t
5 parameter. Use it.
6 * c-common.h (warn_array_subscript_with_type_char): Update
7 declaration.
8
a7fa8d18
ESR
92014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
10
11 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
12 Control macro with flag_sized_deallocation.
13
768952be
MU
142014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
15
16 * c.opt (Wdiscarded-array-qualifiers): New option.
17
1f8d3e84
JJ
182014-12-19 Jakub Jelinek <jakub@redhat.com>
19
20 PR preprocessor/63831
21 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
22 and __has_cpp_attribute here.
23 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
24 c_common_has_attribute.
25 * c-common.h (c_common_has_attribute): New prototype.
26 * c-lex.c (init_c_lex): Set cb->has_attribute to
27 c_common_has_attribute instead of cb_has_attribute.
28 (get_token_no_padding): New function.
29 (cb_has_attribute): Renamed to ...
30 (c_common_has_attribute): ... this. No longer static. Use
31 get_token_no_padding, require ()s, don't build TREE_LIST
32 unnecessarily, fix up formatting, adjust diagnostics, call
33 init_attributes.
34
20b06add
JM
352014-12-15 Jason Merrill <jason@redhat.com>
36
37 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
38 (-Wsized-deallocation): New.
39 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
40 to on in C++14 and up.
41
94a073b2
JM
422014-12-11 Jason Merrill <jason@redhat.com>
43
acaa5911
JM
44 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
45
94a073b2
JM
46 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
47 we aren't complaining about VLAs.
48
7fb66c15
MP
492014-12-06 Marek Polacek <polacek@redhat.com>
50
51 PR tree-optimization/64183
52 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
53 shift-expression if it is integer_type_node. Use types_compatible_p.
54
b731b390
JJ
552014-11-29 Jakub Jelinek <jakub@redhat.com>
56
57 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
58 last argument from create_tmp_var_raw and create_tmp_var calls.
59 * cilk.c (gimplify_cilk_spawn): Likewise.
60 * c-omp.c (c_finish_omp_atomic): Likewise.
61
6a4da643
MP
622014-11-28 Marek Polacek <polacek@redhat.com>
63
64 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
65 instead of unsigned_type_node.
66
541e35a6
MP
672014-11-28 Marek Polacek <polacek@redhat.com>
68
69 PR c/63862
70 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
71 to op1_utype.
72 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
73 expression to unsigned_type_node.
74
dcc97066
MW
752014-11-20 Mark Wielaard <mjw@redhat.com>
76
77 PR debug/38757
78 * c-opts.c (set_std_c89): Set lang_hooks.name.
79 (set_std_c99): Likewise.
80 (set_std_c11): Likewise.
81 (set_std_cxx98): Likewise.
82 (set_std_cxx11): Likewise.
83 (set_std_cxx14): Likewise.
84 (set_std_cxx1z): Likewise.
85
aa7da51a
JJ
862014-11-21 Jakub Jelinek <jakub@redhat.com>
87
88 PR target/63764
89 * c-common.h (convert_vector_to_pointer_for_subscript): Change
90 return type to bool.
009a3480 91 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
92 (convert_vector_to_pointer_for_subscript): Change return type to
93 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
94 and copy it into a TARGET_EXPR and use that instead of *vecp
95 directly.
96
538dd0b7
DM
972014-11-19 David Malcolm <dmalcolm@redhat.com>
98
99 Merger of git branch "gimple-classes-v2-option-3".
100 * ChangeLog.gimple-classes: New.
101 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
102 from being just a vec<gimple> to a vec<gbind *>.
103
c39a5e99
JJ
1042014-11-18 Jakub Jelinek <jakub@redhat.com>
105
106 PR sanitizer/63813
107 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
108 argument to ptype, set type to TREE_TYPE (ptype). Don't call
109 get_pointer_alignment for non-pointers. Use ptype, or if it is
110 reference type, corresponding pointer type, as type of kind
111 argument.
112 (ubsan_maybe_instrument_reference,
113 ubsan_maybe_instrument_member_call): Adjust callers.
114
8537a4a9
MP
1152014-11-15 Marek Polacek <polacek@redhat.com>
116
117 PR middle-end/63884
118 * array-notation-common.c (is_sec_implicit_index_fn): Return false
119 for NULL fndecl.
120 (extract_array_notation_exprs): Return for NULL node.
121
2079956a
JM
1222014-11-12 Joseph Myers <joseph@codesourcery.com>
123
124 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
125 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
126
1304953e
JJ
1272014-11-12 Jakub Jelinek <jakub@redhat.com>
128
129 PR c/59708
130 * c-common.c (check_builtin_function_arguments): Handle
131 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
132
e5e44252
AK
1332014-11-10 Andi Kleen <ak@linux.intel.com>
134
135 PR c/60804
136 * c-common.h (check_no_cilk): Declare.
137 * cilk.c (get_error_location): New function.
138 (check_no_cilk): Dito.
139
e64b984d
AK
1402014-11-10 Andi Kleen <ak@linux.intel.com>
141
142 * cilk.c (recognize_spawn): Use expression location
143 for error message.
144
13c21655
PC
1452014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
146
147 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
148
42fd12b1
ESR
1492014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
150
151 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
152 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
153 (__cpp_range_based_for, __cpp_initializer_lists,
154 __cpp_delegating_constructors, __cpp_nsdmi,
155 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
156 for C++11; (__cpp_attribute_deprecated): Remove in favor of
157 __has_cpp_attribute.
158 * c-lex.c (cb_has_attribute): New callback CPP function;
159 (init_c_lex): Set has_attribute callback.
160
6f450181
RB
1612014-11-04 Richard Biener <rguenther@suse.de>
162
163 * c-common.c (shorten_compare): Do not shorten mixed
164 DFP and non-DFP compares.
165
26f0e1d6
ESR
1662014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
167
168 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
169 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
170 Commentary and rearrangement of tests.
171 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
172 Commentary and rearrangement of tests.
173 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
174 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
175
ef4bddc2
RS
1762014-10-29 Richard Sandiford <richard.sandiford@arm.com>
177
178 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
179 enum from machine_mode.
180
c582198b
AM
1812014-10-28 Andrew MacLeod <amacleod@redhat.com>
182
183 * c-family/c-common.c: Adjust include files.
184 * c-family/c-gimplify.c: Ditto.
185 * c-family/cilk.c: Ditto.
186 * c-family/c-pragma.c: Ditto.
187 * c-family/c-ubsan.c: Ditto.
188
60393bbc
AM
1892014-10-27 Andrew MacLeod <amacleod@redhat.com>
190
191 * c-gimplify.c: Adjust include files.
192
d723bb7c
MLI
1932014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
194
195 PR c++/53061
196 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
197 c_common_initialize_diagnostics.
198 * c-common.h: Likewise.
199
90f3520e
MP
2002014-10-24 Marek Polacek <polacek@redhat.com>
201
202 PR c/56980
203 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
204 print "struct"/"union"/"enum" for typedefed names.
205
59d7607a
MP
2062014-10-23 Marek Polacek <polacek@redhat.com>
207
208 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
209 in unsigned type.
210
d95a2703
JJ
2112014-10-22 Jakub Jelinek <jakub@redhat.com>
212 Yury Gribov <y.gribov@samsung.com>
213
214 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
215 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
216 instead of flag_sanitize_recover as bool flag.
217
8e6ef852
KY
2182014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
219
220 * cilk.c: Revert previous change.
221
948cf550
IZ
2222014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
223
224 PR c/63307
225 * cilk.c: Include vec.h.
226 (struct cilk_decls): New structure.
227 (wrapper_parm_cb): Split this function to...
228 (fill_decls_vec): ...this...
229 (create_parm_list): ...and this.
230 (compare_decls): New function.
231 (for_local_cb): Remove.
232 (wrapper_local_cb): Ditto.
233 (build_wrapper_type): For now first traverse and fill vector of
234 declarations then sort it and then deal with sorted vector.
235 (cilk_outline): Ditto.
236 (declare_one_free_variable): Ditto.
237
92574c7c
MP
2382014-10-17 Marek Polacek <polacek@redhat.com>
239
240 * c-opts.c (c_common_post_options): Set warn_implicit_int.
241 * c.opt (Wimplicit-int): Initialize to -1.
242
83685514
AM
2432014-10-16 Andrew MacLeod <amacleod@redhat.com>
244
245 * c-pragma.c: Adjust include files.
246 * c-semantics.c: Likewise.
247
5b8300ea
DD
2482014-10-16 DJ Delorie <dj@redhat.com>
249
250 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
251 multiples of bytes.
252
5f83e90b
JM
2532014-10-14 Jason Merrill <jason@redhat.com>
254
255 PR c++/63455
256 * c-common.h (CPP_PREPARSED_EXPR): New.
257 (N_CP_TTYPES): Adjust.
258
d73326ca
MP
2592014-10-15 Marek Polacek <polacek@redhat.com>
260
261 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
262
78a7c317
DD
2632014-10-14 DJ Delorie <dj@redhat.com>
264
265 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
266 types, not just __int128.
267 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
268 types, not just __int128.
269 (cpp_atomic_builtins): Round pointer sizes up.
270 (type_suffix): Use type precision, not specific types.
271 * c-common.c (c_common_reswords): Remove __int128 special case.
272 (c_common_type_for_size): Check for all __intN types, not just
273 __int128.
274 (c_common_type_for_mode): Likewise.
275 (c_common_signed_or_unsigned_type): Likewise.
276 (c_build_bitfield_integer_type): Likewise.
277 (c_common_nodes_and_builtins): Likewise.
278 (keyword_begins_type_specifier): Likewise.
279 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
280 __intN variants.
281
2a22f99c
TS
2822014-10-12 Trevor Saunders <tsaunders@mozilla.com>
283
284 * c-common.c: Use hash_table instead of hashtab.
285
2a8ef767
ESR
2862014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
287
288 * c-family/c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
289 C++11 section.
290
3c9aabbd
MG
2912014-10-03 Marc Glisse <marc.glisse@inria.fr>
292
293 PR c++/54427
294 PR c++/57198
295 PR c++/58845
296 * c-common.c (warn_logical_operator): Punt for vectors.
297
a15f7cb8
ESR
2982014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
299
300 Implement SD-6: SG10 Feature Test Recommendations
301 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
302 macros and the __has_header macro.
303
8d0cf15e
JM
3042014-09-30 Jason Merrill <jason@redhat.com>
305
dd5d5481
JM
306 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
307 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
308 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
309
b752325e
JM
310 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
311 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
312
8d0cf15e
JM
313 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
314 * c-common.c (c_common_reswords): Remove __is_convertible_to.
315
083e891e
MP
3162014-09-24 Marek Polacek <polacek@redhat.com>
317
318 PR c/61405
319 PR c/53874
320 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
321
7861b648
AK
3222014-09-23 Andi Kleen <ak@linux.intel.com>
323
324 * c-common.c (handle_no_reorder_attribute): New function.
325 (c_common_attribute_table): Add no_reorder attribute.
326
9a79452d
JM
3272014-09-22 Joseph Myers <joseph@codesourcery.com>
328
329 * c-cppbuiltin.c (c_cpp_builtins): Define
330 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
331 modes.
332
dd69f047
JM
3332014-09-18 Joseph Myers <joseph@codesourcery.com>
334
335 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
336 for supported floating-point modes.
337
737a4826
MLI
3382014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
339
340 * c.opt (Wpsabi): Use LangEnabledBy.
341 * c-opts.c (c_common_handle_option): Do not handle here.
342
8cc4b7a2
JM
3432014-09-12 Joseph Myers <joseph@codesourcery.com>
344
345 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
346 macros for floating-point modes.
347
179b5a55
MG
3482014-09-11 Marc Glisse <marc.glisse@inria.fr>
349
350 PR target/58757
351 * c-cppbuiltin.c (builtin_define_float_constants): Correct
352 __*_DENORM_MIN__ without denormals.
353
570a11fe
JJ
3542014-09-10 Jakub Jelinek <jakub@redhat.com>
355
356 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
357 ubsan_instrument_vla, ubsan_instrument_return): Adjust
358 ubsan_create_data callers.
359 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
360 index is constant or BIT_AND_EXPR with constant mask and is
361 small enough for the bound.
362 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
363 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
364
b559c810
MLI
3652014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
366
367 * c.opt: Add CppReason to various flags.
368 (Wdate-time): Re-sort.
369 * c-common.c: Include c-common.h earlier.
370 (struct reason_option_codes_t): Delete.
371 (c_option_controlling_cpp_error): Prefix global type and struct
372 with cpp_.
373
1ef33fd4
MLI
3742014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
375
376 * c.opt (Wnormalized): New.
377 (Wnormalized=): Use Enum and Reject Negative.
378 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
379
66bb34c0
JM
3802014-09-08 Joseph Myers <joseph@codesourcery.com>
381
382 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
383 digits of floating-point modes if -fbuilding-libgcc.
384
53d68b9f
JM
3852014-09-05 Joseph Myers <joseph@codesourcery.com>
386
387 * c-cppbuiltin.c (c_cpp_builtins): Also define
388 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
389 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
390 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
391 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
392 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
393 __LIBGCC_STACK_GROWS_DOWNWARD__,
394 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
395 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
396 __LIBGCC_DWARF_FRAME_REGISTERS__,
397 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
398 __LIBGCC_STACK_POINTER_REGNUM__ and
399 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
400 (builtin_define_with_value): Handle backslash-escaping in string
401 macro values.
402
f65586dc
RB
4032014-09-05 Richard Biener <rguenther@suse.de>
404
405 PR middle-end/63148
406 * c-format.c (check_format_arg): Properly handle
407 effectively signed POINTER_PLUS_EXPR offset.
408
2b71f4a4
MLI
4092014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
410
411 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
412 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
413 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
414 and Init.
415 * c-opts.c (c_common_handle_option): Do not handle here.
416 (sanitize_cpp_opts): Likewise.
417 * c-common.c (struct reason_option_codes_t): Handle
418 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
419
d2e4feca
MP
4202014-09-03 Marek Polacek <polacek@redhat.com>
421
422 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
423
9a771876
JJ
4242014-09-02 Jakub Jelinek <jakub@redhat.com>
425 Balaji V. Iyer <balaji.v.iyer@intel.com>
426 Igor Zamyatin <igor.zamyatin@intel.com>
427
428 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
429 * c-common.c (c_common_reswords): Added _Cilk_for.
430 * c-common.h (enum rid): Added RID_CILK_FOR.
431 (cilk_for_number_of_iterations): Add declaration.
432 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
433 CILK_FOR.
434 * c-pragma.c (init_pragma): Register "grainsize" pragma.
435 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
436
81b5d104
MLI
4372014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
438
439 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
440 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
441 Wundef): Use CPP, Var and Init.
442 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
443
b753b37b
MLI
4442014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
445
446 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
447 * c-opts.c (c_common_handle_option): Do not handle here.
448
028aee17
JM
4492014-08-25 Jason Merrill <jason@redhat.com>
450
451 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
452 -std=c++14 and -std=gnu++14, rather than the reverse.
453 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
454 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
455 * c-common.h (cxx_dialect): Remove cxx1y.
456
e4276ba5
ESR
4572014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
458
459 * c-common.h (enum cxx_dialect): Add cxx14.
460 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
461 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
462 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
463
a545cacd
JM
4642014-08-22 Jason Merrill <jason@redhat.com>
465
466 * c.opt (std=gnu++17): Fix alias.
467
59ea0364
MP
4682014-08-22 Marek Polacek <polacek@redhat.com>
469
470 PR c++/62199
471 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
472 check for vector types. Drop LHS argument.
473 * c-common.h (warn_logical_not_parentheses): Adjust.
474
596e808c
MLI
4752014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
476
477 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
478 (Wmultichar): Likewise.
479 (Wdate-time): Use C-family languages instead of Common. Use CPP
480 and Var.
481 * c-opts.c (c_common_handle_option): Do not handle the above
482 options here.
483 (sanitize_cpp_opts): Likewise.
484
18767f65
MLI
4852014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
486
487 PR fortran/44054
488 * c-opts.c: Include tree-diagnostics.h.
489 (c_diagnostic_finalizer): New.
490 (c_common_initialize_diagnostics): Use it.
491
b4413594
MLI
4922014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
493
494 PR preprocessor/51303
495 * c-common.c (struct reason_option_codes_t option_codes):
496 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
497
43f9a13c
MLI
4982014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
499
500 PR c/60975
501 PR c/53063
502 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
503 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
504 (c_common_post_options): Call init_global_opts_from_cpp.
505 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
506
04159acf
MP
5072014-08-19 Marek Polacek <polacek@redhat.com>
508
509 PR c++/62153
510 * c-common.c (maybe_warn_bool_compare): New function.
511 * c-common.h (maybe_warn_bool_compare): Declare.
512 * c.opt (Wbool-compare): New option.
513
35aff4fb
MP
5142014-08-19 Marek Polacek <polacek@redhat.com>
515
516 * c.opt (Wc99-c11-compat): New option.
517
177cce46
MP
5182014-08-19 Marek Polacek <polacek@redhat.com>
519
520 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
521 to warn_c90_c99_compat.
522 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
523 to -1.
524
6ae9194f
MLI
5252014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
526 Steven Bosscher <steven@gcc.gnu.org>
527
528 PR c/52952
529 * c-format.c: Add extra_arg_loc and format_string_loc to struct
530 format_check_results.
531 (check_function_format): Use true and add comment for boolean
532 argument.
533 (finish_dollar_format_checking): Use explicit location when warning.
534 (check_format_info): Likewise.
535 (check_format_arg): Set extra_arg_loc and format_string_loc.
536 (check_format_info_main): Use explicit location when warning.
537 (check_format_types): Pass explicit location.
538 (format_type_warning): Likewise.
539
8e54f6d3
MLI
5402014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
541
542 PR fortran/44054
543 * c-format.c: Handle Fortran flags.
544
cd4e76fc
IZ
5452014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
546
547 PR other/61962
548 * array-notation-common.c (find_rank): Added handling for other
549 types of references.
550
f3bede71
MP
5512014-08-10 Marek Polacek <polacek@redhat.com>
552
553 PR c/51849
554 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
555 * c.opt (Wc90-c99-compat): Add option.
556
9f25a338
TS
5572014-08-07 Trevor Saunders <tsaunders@mozilla.com>
558
559 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
560
62e4eb35
MP
5612014-08-03 Marek Polacek <polacek@redhat.com>
562
563 * c-common.c (check_case_value): Add location_t parameter. Use it.
564 (c_add_case_label): Pass loc to check_case_value.
565
b787e7a2
TS
5662014-08-02 Trevor Saunders <tsaunders@mozilla.com>
567
568 * cilk.c: Use hash_map instead of pointer_map.
569
6e2830c3
TS
5702014-08-02 Trevor Saunders <tsaunders@mozilla.com>
571
572 * c-gimplify.c: Use hash_set instead of pointer_set.
573
a7ee52fb
IZ
5742014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
575
576 PR middle-end/61455
577 * array-notation-common.c (extract_array_notation_exprs): Handling
578 of DECL_EXPR added.
579
944fa280
JJ
5802014-08-01 Jakub Jelinek <jakub@redhat.com>
581
582 * c-common.h (min_align_of_type): Removed prototype.
583 * c-common.c (min_align_of_type): Removed.
584 * c-ubsan.h (ubsan_maybe_instrument_reference,
585 ubsan_maybe_instrument_member_call): New prototypes.
586 * c-ubsan.c: Include stor-layout.h and builtins.h.
587 (ubsan_maybe_instrument_reference_or_call,
588 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
589 functions.
590
b4dfdc11
MG
5912014-07-31 Marc Glisse <marc.glisse@inria.fr>
592
593 PR c++/60517
594 * c.opt (-Wreturn-local-addr): Move to common.opt.
595
a41844e5
JM
5962014-07-30 Jason Merrill <jason@redhat.com>
597
598 PR c++/61659
599 PR c++/61687
600 Revert:
601 * c.opt (-fuse-all-virtuals): New.
602
976d5a22
TT
6032014-07-30 Tom Tromey <tromey@redhat.com>
604
605 PR c/59855
606 * c.opt (Wdesignated-init): New option.
607 * c-common.c (c_common_attribute_table): Add "designated_init".
608 (handle_designated_init): New function.
609
cdc94aca
MP
6102014-07-24 Marek Polacek <polacek@redhat.com>
611
612 PR c/57653
613 * c-opts.c (c_finish_options): If -imacros is in effect, return.
614
f41373b6
DS
6152014-07-16 Dodji Seketeli <dodji@redhat.com>
616
617 PR preprocessor/60723 - missing system-ness marks for macro tokens
618 * c-ppoutput.c (struct print::prev_was_system_token): New data
619 member.
620 (init_pp_output): Initialize it.
621 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
622 (do_line_change): Return a flag saying if a line marker was
623 emitted or not.
624 (scan_translation_unit): Detect if the system-ness of the token we
625 are about to emit is different from the one of the previously
626 emitted token. If so, emit a line marker. Avoid emitting useless
627 adjacent line markers. Avoid emitting line markers for tokens
628 originating from the expansion of built-in macros.
629 (scan_translation_unit_directives_only): Adjust.
630
4d661eaa
MP
6312014-07-15 Marek Polacek <polacek@redhat.com>
632
633 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
634 TYPE_MAX_VALUE is NULL.
635
b108f48f
JJ
6362014-07-14 Jakub Jelinek <jakub@redhat.com>
637
638 PR middle-end/61294
639 * c.opt (Wmemset-transposed-args): New warning.
640
c0221884
JM
6412014-07-10 Jason Merrill <jason@redhat.com>
642
643 PR c++/61659
644 PR c++/61687
645 * c.opt (-fuse-all-virtuals): New.
646
63dfbb95
RB
6472014-07-09 Richard Biener <rguenther@suse.de>
648
649 PR c-family/61741
650 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
651 using unsigned arithmetic if overflow does not wrap instead of
652 if overflow is undefined.
653
773ec47f
MP
6542014-07-06 Marek Polacek <polacek@redhat.com>
655
656 PR c/6940
657 * c.opt (Wsizeof-array-argument): New option.
658
00a7ba58
JJ
6592014-07-03 Jakub Jelinek <jakub@redhat.com>
660
661 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
662 comments->count <= 1, as comments->entries might be NULL.
663
52ec0ea3
MP
6642014-07-01 Marek Polacek <polacek@redhat.com>
665
666 * c.opt (Wint-conversion): New option.
667
d5c3d343
MP
6682014-07-01 Marek Polacek <polacek@redhat.com>
669
670 PR c/58286
671 * c.opt (Wincompatible-pointer-types): New option.
672
6e7ceb17
PC
6732014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
674
675 PR c++/51400
676 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
677 Do not discard TYPE_QUALS of type.
678
da73100b
JM
6792014-06-26 Jason Merrill <jason@redhat.com>
680
681 * c-common.h (enum cxx_dialect): Add cxx1z.
682 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
683 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
684
08eedf75
TJ
6852014-06-26 Teresa Johnson <tejohnson@google.com>
686
687 * c-common.h (get_dump_info): Declare.
688 * c-gimplify.c (c_genericize): Use saved dump files.
689 * c-opts.c (c_common_parse_file): Begin and end dumps
690 once around parsing invocation.
691 (get_dump_info): New function.
692
7b56b2f8
MP
6932014-06-23 Marek Polacek <polacek@redhat.com>
694 Andrew MacLeod <amacleod@redhat.com>
695
696 PR c/61553
697 * c-common.c (get_atomic_generic_size): Don't segfault if the
698 type doesn't have a size.
699
0e37a2f3
MP
7002014-06-20 Marek Polacek <polacek@redhat.com>
701
702 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
703 (ubsan_walk_array_refs_r): New function.
704 (c_genericize): Instrument array bounds.
705 * c-ubsan.c: Include "internal-fn.h".
706 (ubsan_instrument_division): Mark instrumented arrays as having
707 side effects. Adjust ubsan_type_descriptor call.
708 (ubsan_instrument_shift): Likewise.
709 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
710 (ubsan_instrument_bounds): New function.
711 (ubsan_array_ref_instrumented_p): New function.
712 (ubsan_maybe_instrument_array_ref): New function.
713 * c-ubsan.h (ubsan_instrument_bounds): Declare.
714 (ubsan_array_ref_instrumented_p): Declare.
715 (ubsan_maybe_instrument_array_ref): Declare.
716
7172014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
718
719 PR lto/61123
720 * c.opt (fshort-enums): Add to LTO.
721 * c.opt (fshort-wchar): Likewise.
722
5c3d09f7
MP
7232014-06-16 Marek Polacek <polacek@redhat.com>
724
725 PR c/60439
726 * c.opt (Wswitch-bool): Add Var.
727
9cf32741
JJ
7282014-06-12 Jakub Jelinek <jakub@redhat.com>
729
730 PR middle-end/61486
731 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
732 #pragma omp target teams or
733 #pragma omp {,target }teams distribute simd.
734
62984918
JM
7352014-06-12 Jason Merrill <jason@redhat.com>
736
737 * c.opt (Wabi=, fabi-compat-version): New.
738 * c-opts.c (c_common_handle_option): Handle -Wabi=.
739 (c_common_post_options): Handle flag_abi_compat_version default.
740 Disallow -fabi-compat-version=1.
741 * c-common.h (abi_version_crosses): New.
742
f961457f
JH
7432014-06-11 Jan Hubicka <hubicka@ucw.cz>
744
745 * c-family/c-common.c (handle_section_attribute): Update handling for
746 section names that are no longer trees.
747
92d28cbb
JJ
7482014-06-10 Jakub Jelinek <jakub@redhat.com>
749
750 PR fortran/60928
751 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
752 (omp_pragmas): ... back here.
753
742938c9
MP
7542014-06-05 Marek Polacek <polacek@redhat.com>
755
756 PR c/49706
757 * c-common.c (warn_logical_not_parentheses): New function.
758 * c-common.h (warn_logical_not_parentheses): Declare.
759 * c.opt (Wlogical-not-parentheses): New option.
760
9d548dfb
MP
7612014-06-04 Marek Polacek <polacek@redhat.com>
762
763 PR c/30020
764 * c-common.c (check_case_bounds): Add location parameter.
765 Use it.
766 (c_add_case_label): Pass loc to check_case_bounds.
767
fedfecef
MP
7682014-06-03 Marek Polacek <polacek@redhat.com>
769
770 PR c/60439
771 * c.opt (Wswitch-bool): New option.
772
f6a7cffc
TS
7732014-05-22 Thomas Schwinge <thomas@codesourcery.com>
774
040d18b6
TS
775 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
776 Remove prototypes.
777 (record_types_used_by_current_var_decl): Move prototype to where
778 it belongs.
779
f6a7cffc
TS
780 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
781 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
782 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
783
632f2871
RS
7842014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
785
786 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
787 * c-common.c (c_common_nodes_and_builtins): Don't initialize
788 void_zero_node.
789 * c-pretty-print.c (pp_c_void_constant): New function.
790 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
791 (c_pretty_printer::expression): Handle VOID_CST.
792 * cilk.c (extract_free_variables): Likewise.
793 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
794 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
795
766090c2
TS
7962014-05-17 Trevor Saunders <tsaunders@mozilla.com>
797
798 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
799 * c-pragma.c (push_alignment): Adjust.
800 (handle_pragma_push_options): Likewise.
801
661a0813
MP
8022014-05-09 Marek Polacek <polacek@redhat.com>
803
804 PR c/50459
805 * c-common.c (check_user_alignment): Return -1 if alignment is error
806 node.
807 (handle_aligned_attribute): Don't call default_conversion on
808 FUNCTION_DECLs.
809 (handle_vector_size_attribute): Likewise.
810 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
811 (handle_sentinel_attribute): Call default_conversion and allow even
812 integral types as an argument.
813
2793eeab
MP
8142014-05-08 Marek Polacek <polacek@redhat.com>
815
816 PR c/61053
817 * c-common.c (min_align_of_type): New function factored out from...
818 (c_sizeof_or_alignof_type): ...here.
819 * c-common.h (min_align_of_type): Declare.
820
f827930a
MP
8212014-05-08 Marek Polacek <polacek@redhat.com>
822
823 PR c/61077
824 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
825 parameter type of main.
826
ca49b74e
DD
8272014-05-07 DJ Delorie <dj@redhat.com>
828
829 * c-cppbuiltin.c (print_bits_of_hex): New.
830 (builtin_define_type_minmax): Print values using hex so as not to
831 require a pre-computed list of string values.
832
1d60af08
KZ
8332014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
834 Mike Stump <mikestump@comcast.net>
835 Richard Sandiford <rdsandiford@googlemail.com>
836
837 * c-ada-spec.c: Include wide-int.h.
838 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
839 (dump_generic_ada_node): Use wide-int interfaces.
840 * c-common.c: Include wide-int-print.h.
841 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
842 (pointer_int_sum): Use wide-int interfaces.
843 (c_common_nodes_and_builtins): Use make_int_cst.
844 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
845 (handle_alloc_size_attribute): Use wide-int interfaces.
846 (get_nonnull_operand): Likewise.
847 * c-format.c (get_constant): Use tree_fits_uhwi_p.
848 * c-lex.c: Include wide-int.h.
849 (narrowest_unsigned_type): Take a widest_int rather than two
850 HOST_WIDE_INTs.
851 (narrowest_signed_type): Likewise.
852 (interpret_integer): Update accordingly. Use wide-int interfaces.
853 (lex_charconst): Use wide-int interfaces.
854 * c-pretty-print.c: Include wide-int.h.
855 (pp_c_integer_constant): Use wide-int interfaces.
856 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
857 INT_CST_LT_UNSIGNED.
858
b15458be
RB
8592014-05-06 Richard Biener <rguenther@suse.de>
860
861 * c-opts.c (c_common_post_options): For -freestanding,
862 -fno-hosted and -fno-builtin disable pattern recognition
863 if not enabled explicitely.
864
6577374e
MP
8652014-05-02 Marek Polacek <polacek@redhat.com>
866
867 * c.opt (Wsizeof-pointer-memaccess): Describe option.
868
d00887e8
MP
8692014-05-01 Marek Polacek <polacek@redhat.com>
870
871 PR c/43245
872 * c.opt (Wdiscarded-qualifiers): Add.
873
f8ed5150
MP
8742014-04-30 Marek Polacek <polacek@redhat.com>
875
876 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
877 INT_MIN / -1 sanitization only for integer types.
878
45484dcf
MP
8792014-04-25 Marek Polacek <polacek@redhat.com>
880
881 PR c/18079
882 * c-common.c (handle_noinline_attribute): Warn if the attribute
883 conflicts with always_inline attribute.
884 (handle_always_inline_attribute): Warn if the attribute conflicts
885 with noinline attribute.
886
38e514c0
MP
8872014-04-25 Marek Polacek <polacek@redhat.com>
888
889 PR c/60156
890 * c-common.c (check_main_parameter_types): Warn about variadic main.
891
44875f92
MS
8922014-04-24 Mike Stump <mikestump@comcast.net>
893
894 * c.opt (Wshadow-ivar): Default to on.
895
dcaaa5a0
DP
8962014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
897
898 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
899
c07d7c02
MP
9002014-04-23 Marek Polacek <polacek@redhat.com>
901
902 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
903
1c33c9b7
JJ
9042014-04-22 Jakub Jelinek <jakub@redhat.com>
905
906 PR sanitizer/60275
907 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
908 if flag_sanitize_undefined_trap_on_error.
909 (ubsan_instrument_division, ubsan_instrument_shift,
910 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
911 if !flag_sanitize_recover.
912
793c625f
MG
9132014-04-22 Marc Glisse <marc.glisse@inria.fr>
914
915 PR libstdc++/43622
916 * c-common.c (registered_builtin_types): Make non-static.
917 * c-common.h (registered_builtin_types): Declare.
918
b0f1bf36
RB
9192014-04-14 Richard Biener <rguenther@suse.de>
920 Marc Glisse <marc.glisse@inria.fr>
921
922 PR c/60819
923 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
924 apply may-alias the scalar pointer type when applicable.
925
3b07fa4a
IZ
9262014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
927
928 PR middle-end/60467
929 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
930 as possible argument for Cilk_spawn.
931
cbbd2b1c
TB
9322014-04-11 Tobias Burnus <burnus@net-b.de>
933
934 PR c/60194
935 * c.opt (Wformat-signedness): Add
936 * c-format.c(check_format_types): Use it.
937
6415bd5d
JM
9382014-04-11 Jason Merrill <jason@redhat.com>
939
940 PR c++/57926
941 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
942 default_conversion for an array argument.
943
6525783a
MP
9442014-04-08 Marek Polacek <polacek@redhat.com>
945
946 PR sanitizer/60745
947 * c-ubsan.c: Include asan.h.
948 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
949
880a467b
NS
9502014-04-03 Nathan Sidwell <nathan@codesourcery.com>
951
952 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
953
7b59ff2d
MP
9542014-04-02 Marek Polacek <polacek@redhat.com>
955
956 * c-common.h (c_expand_expr): Remove declaration.
957
8edbfaa6
JJ
9582014-03-28 Jakub Jelinek <jakub@redhat.com>
959
960 PR c++/60689
961 * c-common.c (add_atomic_size_parameter): When creating new
962 params vector, push the size argument first.
963
07d72e1d
JJ
9642014-03-26 Jakub Jelinek <jakub@redhat.com>
965
966 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
967 ubsan_instrument_vla, ubsan_instrument_return): Adjust
968 ubsan_create_data callers.
969
b35e0fa0
JJ
9702014-03-22 Jakub Jelinek <jakub@redhat.com>
971
972 PR debug/60603
973 * c-opts.c (c_finish_options): Restore cb_file_change call to
974 <built-in>.
975
39a1ebb3
JJ
9762014-03-13 Jakub Jelinek <jakub@redhat.com>
977
978 PR middle-end/36282
979 * c-pragma.c (apply_pragma_weak): Only look at
980 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
981 DECL_ASSEMBLER_NAME_SET_P (decl).
982 (maybe_apply_pending_pragma_weaks): Exit early if
983 vec_safe_is_empty (pending_weaks) rather than only when
984 !pending_weaks.
985 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
986 set assembler name back to NULL afterwards.
987
a07f6ed2
JM
9882014-03-11 Jason Merrill <jason@redhat.com>
989
990 * c.opt: Add -std=gnu++14.
991
75b107f5
IB
9922014-03-11 Ian Bolton <ian.bolton@arm.com>
993
994 * c-opts.c (c_common_post_options): Don't override
995 -ffp-contract=fast if unsafe-math-optimizations is on.
996
f42c637e
PM
9972014-03-08 Paulo Matos <paulo@matos-sorge.com>
998
999 * c.opt: Enable LTO FE for fshort-double.
1000
70e24808
JM
10012014-03-07 Jason Merrill <jason@redhat.com>
1002
1003 * c.opt: Add -std=c++14.
1004
3af9c5e9
MP
10052014-03-06 Marek Polacek <polacek@redhat.com>
1006
1007 PR c/60197
1008 * cilk.c (contains_cilk_spawn_stmt): New function.
1009 (contains_cilk_spawn_stmt_walker): Likewise.
1010 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1011 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1012
b3bdf019
JJ
10132014-03-03 Jakub Jelinek <jakub@redhat.com>
1014
1015 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1016 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1017 even when flag_preprocess_only.
1018
ca7e759d
JM
10192014-02-26 Jason Merrill <jason@redhat.com>
1020
1021 PR c++/59231
1022 PR c++/11586
1023 * c-common.c (shorten_compare): Don't check
1024 c_inhibit_evaluation_warnings.
1025
28e41874
JJ
10262014-02-19 Jakub Jelinek <jakub@redhat.com>
1027
cca615af
JJ
1028 PR c/37743
1029 * c-common.c (c_common_nodes_and_builtins): When initializing
1030 c_uint{16,32,64}_type_node, also set corresponding
1031 uint{16,32,64}_type_node to the same value.
1032
28e41874
JJ
1033 PR c++/60267
1034 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1035 for PRAGMA_IVDEP if flag_preprocess_only.
1036
c2bf53a1
JJ
10372014-02-12 Jakub Jelinek <jakub@redhat.com>
1038
1039 PR c/60101
1040 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1041 if false, add ADD itself, rather than vice versa.
1042 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1043 copy. For SAVE_EXPR, only call merge_tlist once.
1044
8fcbce72
JJ
10452014-02-08 Jakub Jelinek <jakub@redhat.com>
1046
1047 PR middle-end/60092
1048 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1049 and tree_to_uhwi.
1050 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1051 functions.
1052 (c_common_attribute_table): Add alloc_align and assume_aligned
1053 attributes.
1054
0a756a3f
MP
10552014-02-06 Marek Polacek <polacek@redhat.com>
1056
1057 PR c/60087
1058 * c-common.c (warn_for_sign_compare): Call warning_at with location
1059 instead of warning.
1060
7ec4847a
MP
10612014-02-05 Marek Polacek <polacek@redhat.com>
1062
1063 PR c/53123
1064 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1065 statement.
1066
66f20604
MP
10672014-02-04 Marek Polacek <polacek@redhat.com>
1068
1069 PR c/60036
1070 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1071 SAVE_EXPR.
1072
5d77fb19
MG
10732014-02-03 Marc Glisse <marc.glisse@inria.fr>
1074
1075 PR c++/53017
1076 PR c++/59211
1077 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1078 handle_vector_size_attribute, handle_nonnull_attribute): Call
1079 default_conversion on the attribute argument.
1080 (handle_nonnull_attribute): Increment the argument number.
1081
81e5eca8
MP
10822014-01-31 Marek Polacek <polacek@redhat.com>
1083
1084 PR c/59963
1085 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1086 build_function_call_vec.
1087 (resolve_overloaded_builtin): Likewise.
1088 * c-common.h (build_function_call_vec): Adjust declaration.
1089
68fca595
MP
10902014-01-30 Marek Polacek <polacek@redhat.com>
1091
1092 PR c/59940
1093 * c-common.h (unsafe_conversion_p): Adjust declaration.
1094 (warnings_for_convert_and_check): Likewise.
1095 (convert_and_check): Likewise.
1096 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1097 expansion_point_location_if_in_system_header on it.
1098 (warnings_for_convert_and_check): Add location parameter. Call
1099 expansion_point_location_if_in_system_header on it. Use it.
1100 (convert_and_check): Add location parameter. Use it.
1101 (conversion_warning): Likewise.
1102 (c_add_case_label): Adjust convert_and_check calls.
1103 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1104
b72271b9
BI
11052014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1106
1107 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1108 flag_cilkplus.
1109 * c-pragma.c (init_pragma): Likewise.
1110 * c.opt: Likewise.
1111
393e8e8b
MP
11122014-01-23 Marek Polacek <polacek@redhat.com>
1113
1114 PR c/59846
1115 * c-common.c (shorten_compare): Add location_t parameter.
1116 * c-common.h (shorten_binary_op): Adjust declaration.
1117
f04dda30
MP
11182014-01-23 Marek Polacek <polacek@redhat.com>
1119
1120 PR c/58346
1121 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1122 * c-common.h: Declare it.
1123
621955cb
EB
11242014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1125
1126 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1127 * c-ada-spec.c (dump_ads): Likewise.
1128 (cpp_check): Likewise.
1129 (dump_ada_specs): Likewise.
1130
11312014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
1132
1133 PR c++/49718
1134 * c-common.c (handle_no_instrument_function_attribute): Allow
1135 no_instrument_function attribute in class member
1136 definition/declaration.
1137
241f845a
JJ
11382014-01-15 Jakub Jelinek <jakub@redhat.com>
1139
1140 PR c/58943
1141 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1142 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1143 being COMPOUND_EXPR.
1144 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1145 operand a SAVE_EXPR and second MODIFY_EXPR.
1146
e83b8e2e
JJ
11472014-01-09 Jakub Jelinek <jakub@redhat.com>
1148
1149 PR target/58115
1150 * c-pch.c (c_common_write_pch): Call
1151 prepare_target_option_nodes_for_pch.
1152
23a5b65a
RS
11532014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1154
1155 Update copyright years
1156
f9030485
RS
11572014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1158
1159 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1160 the copyright notice.
1161
f2aa696b
EB
11622013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1163
1164 * c-ada-spec.c (print_constructor): New function.
1165 (print_destructor): Retrieve the origin of the destructor.
1166 (print_ada_declaration): Revamp handling of constructors/destructors.
1167
1f26ac87
JM
11682013-12-23 Stuart Hastings <stuart@apple.com>
1169 Bill Maddox <maddox@google.com>
1170 Jason Merrill <jason@redhat.com>
1171
1172 * c.opt: Add -fdeclone-ctor-dtor.
1173 * c-opts.c (c_common_post_options): Default to on iff -Os.
1174
41958c28
BI
11752013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1176
1177 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1178 attribute.
1179 * c-pragma.h (enum pragma_cilk_clause): Remove.
1180 (enum pragma_omp_clause): Added the following fields:
1181 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1182 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1183 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1184 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1185 PRAGMA_CILK_CLAUSE_UNIFORM.
1186
1187
12893402
BI
11882013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1189
1190 * cilk.c (cilk_outline): Made this function non-static.
1191 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1192 (create_cilk_wrapper): Added a new parameter: a function pointer.
1193 (c_install_body_w_frame_cleanup): Remove
1194 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1195 * c-common.h (cilk_outline): New prototype.
1196 (gimplify_cilk_spawn): Removed two parameters.
1197 (cilk_install_body_with_frame_cleanup): New prototype.
1198 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1199 CILK_SPAWN_STMT case.
1200
085b42ed
BS
12012013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1202
2ce064c3
BS
1203 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1204
085b42ed
BS
1205 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1206 (int_array_type_node): Remove.
1207 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1208
9e36c9ed
MP
12092013-12-05 Marek Polacek <polacek@redhat.com>
1210
1211 PR c/52023
1212 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1213 [ADJUST_FIELD_ALIGN].
1214
296674db
JM
12152013-12-04 Joseph Myers <joseph@codesourcery.com>
1216
1217 PR c/52023
1218 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1219 and check field alignment if set.
1220 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1221 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1222
31e071ae
MP
12232013-12-04 Jakub Jelinek <jakub@redhat.com>
1224 Marek Polacek <polacek@redhat.com>
1225
1226 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1227 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1228
d7947e19
L
12292013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1230
1231 PR c/59309
1232 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1233 arguments.
1234
fad7652e
JJ
12352013-11-29 Jakub Jelinek <jakub@redhat.com>
1236
1237 PR c/59280
1238 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1239 goto invalid. If it is error_mark_node, don't issue further
1240 diagnostics.
1241
8b5e1202
SO
12422013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1243
1244 * c.opt (Wopenmp-simd): New.
1245
0a508bb6
JJ
12462013-11-22 Jakub Jelinek <jakub@redhat.com>
1247
1248 * c-ubsan.h (ubsan_instrument_return): New prototype.
1249 * c-ubsan.c (ubsan_instrument_return): New function.
1250
2fb9a547
AM
12512013-11-22 Andrew MacLeod <amacleod@redhat.com>
1252
1253 * c-common.c: Add required include files from gimple.h.
1254 * c-gimplify.c: Likewise
1255 * cilk.c: Likewise
1256
8400e75e
DM
12572013-11-22 David Malcolm <dmalcolm@redhat.com>
1258
1259 * c-common.c (unsafe_conversion_p): Remove use of
1260 EXPR_LOC_OR_HERE macro.
1261 (conversion_warning): Likewise.
1262 (warnings_for_convert_and_check): Likewise.
1263 (warn_for_collisions_1): Likewise.
1264 (shorten_compare): Likewise, and remove use of in_system_header
1265 macro, using the location from the former.
1266 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1267 (cb_def_pragma): Remove use of in_system_header macro.
1268 (lex_string): Likewise.
1269 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1270
eb1ce453
KZ
12712013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1272 Mike Stump <mikestump@comcast.net>
1273 Richard Sandiford <rdsandiford@googlemail.com>
1274
1275 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1276 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1277 tree_fits_shwi_p or tree_fits_uhwi_p.
1278 (dump_generic_ada_node): Likewise.
1279 * c-format.c (check_format_arg): Likewise.
1280 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1281
6b3b8c27
KZ
12822013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1283
1284 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1285
49b0aa18
JC
12862013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1287
1288 PR c/53001
1289 * c-common.c (unsafe_conversion_p): Make this function
1290 return an enumeration with more detail.
1291 (conversion_warning): Use the new return type of
1292 unsafe_conversion_p to separately warn either about conversions
1293 that lower floating point number precision or about the other
1294 kinds of conversions.
1295 * c-common.h (enum conversion_safety): New enumeration.
1296 (unsafe_conversion_p): switching return type to
1297 conversion_safety enumeration.
1298 * c.opt: Adding new warning -Wfloat-conversion and
1299 enabling it with -Wconversion.
1300
b826515a
BS
13012013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1302
1303 * c-opts.c: Include plugin.h.
1304 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1305
b9a55b13
MP
13062013-11-19 Marek Polacek <polacek@redhat.com>
1307
1308 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1309 call.
1310 (ubsan_instrument_shift): Likewise.
1311 (ubsan_instrument_vla): Likewise.
1312
7d362f6c
RS
13132013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1314
1315 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1316 cast to unsigned type.
1317
386b1f1f
RS
13182013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1319
1320 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1321 tree_low_cst.
1322 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1323 rather than tree_low_cst.
1324
ae7e9ddd
RS
13252013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1326
1327 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1328 tree_to_uhwi throughout.
1329
9439e9a1
RS
13302013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1331
1332 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1333 tree_low_cst (..., 0) with tree_to_shwi throughout.
1334
cc269bb6
RS
13352013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1336
1337 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1338 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1339
9541ffee
RS
13402013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1341
1342 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1343 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1344
c02065fc
AH
13452013-11-15 Aldy Hernandez <aldyh@redhat.com>
1346
1347 * c-cilkplus.c: New file.
1348 * c-common.c (readonly_error): Add location argument.
1349 * c-common.h (readonly_error): Same.
1350 (c_finish_cilk_clauses): Protoize.
1351 (c_check_cilk_loop): Same.
1352 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1353 Do not fail on error_mark_node.
1354 Abstract increment canonicalization to here...
1355 (c_omp_for_incr_canonicalize_ptr): New.
1356 c-pragma.c (init_pragma): Register "simd" pragma.
1357 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1358 (enum pragma_cilk_clause): New.
1359
9cc65f15
RS
13602013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1361
1362 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1363 wchar_type and host_integerp checks.
1364
18f429e2
AM
13652013-11-14 Andrew MacLeod <amacleod@redhat.com>
1366
1367 * c-common.c: Likewise.
1368 * c-gimplify.c: Likewise.
1369 * cilk.c: Likewise.
1370
d8a2d370
DN
13712013-11-14 Diego Novillo <dnovillo@google.com>
1372
1373 * c-common.c: Include fold-const.h.
1374 Include stor-layout.h.
1375 Include calls.h.
1376 Include stringpool.h.
1377 Include attribs.h.
1378 Include varasm.h.
1379 Include trans-mem.h.
1380 * c-cppbuiltin.c: Include stor-layout.h.
1381 Include stringpool.h.
1382 * c-format.c: Include stringpool.h.
1383 * c-lex.c: Include stringpool.h.
1384 Include stor-layout.h.
1385 * c-pragma.c: Include stringpool.h.
1386 Include attribs.h.
1387 Include varasm.h.
1388 Include gcc-symtab.h.
1389 * c-pretty-print.c: Include stor-layout.h.
1390 Include attribs.h.
1391 * cilk.c: Include stringpool.h.
1392 Include calls.h.
1393
38b7bc7f
JM
13942013-11-13 Joseph Myers <joseph@codesourcery.com>
1395
1396 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1397 * c-common.c (c_common_reswords): Add __auto_type.
1398 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1399
45b0be94
AM
14002013-11-12 Andrew MacLeod <amacleod@redhat.com>
1401
18f429e2
AM
1402 * c-common.c: Include gimplify.h.
1403 * c-gimplify.c: Likewise.
1404 * cilk.c: Likewise.
1405 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1406 * c-ubsan.c: Don't include gimple.h.
45b0be94 1407
582d9b50
JM
14082013-11-12 Joseph Myers <joseph@codesourcery.com>
1409
1410 * c-common.c (c_common_reswords): Add _Thread_local.
1411
6b28e197
JM
14122013-11-09 Joseph Myers <joseph@codesourcery.com>
1413
1414 * c-common.c (atomic_size_supported_p): New function.
1415 (resolve_overloaded_atomic_exchange)
1416 (resolve_overloaded_atomic_compare_exchange)
1417 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1418 Use it instead of comparing size with a local list of sizes.
1419
267bac10
JM
14202013-11-07 Andrew MacLeod <amacleod@redhat.com>
1421 Joseph Myers <joseph@codesourcery.com>
1422
1423 * c-common.h (enum rid): Add RID_ATOMIC.
1424 * c-common.c (c_common_reswords): Add _Atomic.
1425 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1426 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1427 * c-format.c (check_format_types): Check for extra _Atomic
1428 qualifiers in format argument.
1429 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1430 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1431
5157b91e
TB
14322013-11-06 Tobias Burnus <burnus@net-b.de>
1433
1434 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1435
6dbe0958
JM
14362013-11-06 Joseph Myers <joseph@codesourcery.com>
1437
1438 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1439 standards modes.
1440 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1441 to mean lack of IEEE 754 support.
1442
e8ff5196
TB
14432013-11-05 Tobias Burnus <burnus@net-b.de>
1444
1445 * c.opt (-Wdate-time): New option
1446 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1447
254a0760
JM
14482013-11-05 Joseph Myers <joseph@codesourcery.com>
1449
1450 * c-cppbuiltin.c (cpp_iec_559_value): Test
1451 flag_excess_precision_cmdline not flag_excess_precision.
1452
6d7f7e0a
TB
14532013-11-05 Tobias Burnus <burnus@net-b.de>
1454
1455 * c.opt (fopenmp-simd): New option.
1456 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1457 (omp_pragmas): ... this new struct.
1458 (c_pp_lookup_pragma): Also walk omp_pragmas.
1459 (init_pragma): Init pragmas for -fopenmp-simd.
1460
55a7f02f
MP
14612013-11-04 Marek Polacek <polacek@redhat.com>
1462
1463 PR c++/58979
1464 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1465
9193fb05
JM
14662013-11-04 Joseph Myers <joseph@codesourcery.com>
1467
1468 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1469 New functions.
1470 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1471
94159ecf
EB
14722013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1473
1474 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1475 (dump_ada_specs): Adjust prototype of second callback.
1476 * c-ada-spec.c (cpp_check): New global variable.
1477 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1478 (print_generic_ada_decl): Likewise.
1479 (has_static_fields): Change return type to bool and add guard.
1480 (has_nontrivial_methods): New predicate.
1481 (is_tagged_type): Change return type to bool.
1482 (separate_class_package): Call has_nontrivial_methods.
1483 (pp_ada_tree_identifier): Minor tweaks.
1484 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1485 (dump_ada_array_domains): Likewise.
1486 (dump_ada_array_type): Likewise.
1487 (dump_template_types): Remove cpp_check parameter and do not pass it to
1488 dump_generic_ada_node.
1489 (dump_ada_template): Likewise.
1490 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1491 recursively.
1492 (print_ada_methods): Change return type to integer. Remove cpp_check
1493 parameter and do not pass it down.
1494 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1495 dump_generic_ada_node.
1496 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1497 accessing methods.
1498 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1499 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1500 value of print_ada_methods.
1501 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1502 Set cpp_check to it before invoking dump_ada_nodes.
1503 (dump_ada_specs): Likewise.
1504
b906f4ca
MP
15052013-11-03 Marek Polacek <polacek@redhat.com>
1506
1507 * c-ubsan.c: Don't include hash-table.h.
1508 (ubsan_instrument_vla): New function.
1509 * c-ubsan.h: Declare it.
1510
5e20cdc9
DM
15112013-10-31 David Malcolm <dmalcolm@redhat.com>
1512
1513 Automated part of renaming of symtab_node_base to symtab_node.
1514
1515 Patch autogenerated by rename_symtab.py from
1516 https://github.com/davidmalcolm/gcc-refactoring-scripts
1517 revision 58bb219cc090b2f4516a9297d868c245495ee622
1518
1519 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1520 symtab_node_base to symtab_node.
1521
7057e645
ESR
15222013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1523
1524 Implement C++14 digit separators.
1525 * c-lex.c (interpret_float): Remove digit separators from scratch string
1526 before building real literal.
1527
193ea7bc
JJ
15282013-10-30 Jakub Jelinek <jakub@redhat.com>
1529
1530 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1531
939b37da
BI
15322013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1533
1534 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1535 fields.
1536 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1537 enabled.
1538 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1539 (insert_cilk_frame): New prototype.
1540 (cilk_init_builtins): Likewise.
1541 (gimplify_cilk_spawn): Likewise.
1542 (c_cilk_install_body_w_frame_cleanup): Likewise.
1543 (cilk_detect_spawn_and_unwrap): Likewise.
1544 (cilk_set_spawn_marker): Likewise.
1545 (build_cilk_sync): Likewise.
1546 (build_cilk_spawn): Likewise.
1547 * cilk.c: New file.
1548
67348ccc
DM
15492013-10-29 David Malcolm <dmalcolm@redhat.com>
1550
1551 Patch autogenerated by refactor_symtab.py from
1552 https://github.com/davidmalcolm/gcc-refactoring-scripts
1553 revision 58bb219cc090b2f4516a9297d868c245495ee622
1554
1555 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1556 to a true class hierarchy.
1557 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1558
d570872d
RS
15592013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1560
1561 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1562
98906124
JL
15632013-10-26 Jeff Law <law@redhat.com>
1564
1565 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1566 * c-family/c.opt: Ignore and warn for mudflap options.
1567
d73749df 15682013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
1569
1570 PR other/33426
1571 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1572 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1573
3f04b1bb
JM
15742013-10-23 Jason Merrill <jason@redhat.com>
1575
1576 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1577
acf0174b
JJ
15782013-10-11 Jakub Jelinek <jakub@redhat.com>
1579
acd15a28
JJ
1580 * c-common.h (omp_clause_mask::operator !=): New method.
1581 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1582 instead of if (mask & something) tests everywhere.
1583
acf0174b
JJ
1584 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1585 201307 instead of 201107.
1586 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1587 (c_common_attribute_table): Add "omp declare target" and
1588 "omp declare simd" attributes.
1589 (handle_omp_declare_target_attribute,
1590 handle_omp_declare_simd_attribute): New functions.
1591 * c-omp.c: Include c-pragma.h.
1592 (c_finish_omp_taskgroup): New function.
1593 (c_finish_omp_atomic): Add swapped argument, if true,
1594 build the operation first with rhs, lhs arguments and use NOP_EXPR
1595 build_modify_expr.
1596 (c_finish_omp_for): Add code argument, pass it down to make_code.
1597 (c_omp_split_clauses): New function.
1598 (c_split_parallel_clauses): Removed.
1599 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1600 c_omp_declare_simd_clauses_to_decls): New functions.
1601 * c-common.h (omp_clause_mask): New type.
1602 (OMP_CLAUSE_MASK_1): Define.
1603 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1604 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1605 omp_clause_mask::operator |, omp_clause_mask::operator &,
1606 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1607 omp_clause_mask::operator ==): New methods.
1608 (enum c_omp_clause_split): New.
1609 (c_finish_omp_taskgroup): New prototype.
1610 (c_finish_omp_atomic): Add swapped argument.
1611 (c_finish_omp_for): Add code argument.
1612 (c_omp_split_clauses): New prototype.
1613 (c_split_parallel_clauses): Removed.
1614 (c_omp_declare_simd_clauses_to_numbers,
1615 c_omp_declare_simd_clauses_to_decls): New prototypes.
1616 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1617 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1618 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1619 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1620 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1621 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1622 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1623 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1624 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1625 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1626 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1627 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1628 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1629 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1630 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1631 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1632 PRAGMA_OMP_CLAUSE_UNIFORM.
1633
826cacfe
MG
16342013-10-09 Marc Glisse <marc.glisse@inria.fr>
1635
1636 PR tree-optimization/20318
1637 * c-common.c (handle_returns_nonnull_attribute): New function.
1638 (c_common_attribute_table): Add returns_nonnull.
1639
2284b034
MG
16402013-10-03 Marc Glisse <marc.glisse@inria.fr>
1641
1642 PR c++/19476
1643 * c.opt (fcheck-new): Move to common.opt.
1644
b56e9788
MP
16452013-09-25 Marek Polacek <polacek@redhat.com>
1646 Jakub Jelinek <jakub@redhat.com>
1647
1648 PR sanitizer/58413
1649 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1650 an expression if we can prove it is correct.
1651 (ubsan_instrument_division): Likewise. Remove unnecessary
1652 check.
1653
ce6923c5
MP
16542013-09-18 Marek Polacek <polacek@redhat.com>
1655
1656 PR sanitizer/58411
1657 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1658 Declare it.
1659 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1660
fb5610fb
IS
16612013-09-14 Iain Sandoe <iain@codesourcery.com>
1662
1663 PR target/48094
1664 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1665 fobjc-gc, freplace-objc-classes): Accept for LTO.
1666
88b0e79e
JC
16672013-09-13 Jacek Caban <jacek@codeweavers.com>
1668
1669 * c-target.def: New hook
1670
c9b0866a
PC
16712013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1672
1673 PR c++/43452
1674 * c.opt (Wdelete-incomplete): Add.
1675
0af94e6f
JR
16762013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1677
1678 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1679 (vector_types_compatible_elements_p): New function.
1680 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1681 declaration.
1682 (vector_types_compatible_elements_p): Declare.
1683
7c26172c
GDR
16842013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1685
1686 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1687 a virtual member function.
1688 (pp_simple_type_specifier): Remove.
1689 (pp_c_type_specifier): Likewise.
1690 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1691 Rename from pp_c_type_specifier. Adjust.
1692 (c_pretty_printer::c_pretty_printer): Do not assign to
1693 simple_type_specifier.
1694
20059c8b
GDR
16952013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1696
1697 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1698 member function.
1699 (c_pretty_printer::storage_class_specifier): Likewise.
1700 (c_pretty_printer::initializer): Likewise.
1701 (pp_declaration): Remove.
1702 (pp_declaration_specifiers): Likewise.
1703 (pp_abstract_declarator): Likewise.
1704 (pp_declarator): Likewise.
1705 (pp_type_id): Likewise.
1706 (pp_statement): Likewise.
1707 (pp_constant): Likewise.
1708 (pp_id_expression): Likewise.
1709 (pp_primary_expression): Likewise.
1710 (pp_unary_expression): Likewise.
1711 (pp_multiplicative_expression): Likewise.
1712 (pp_conditional_expression): Likewise.
1713 (pp_assignment_expression): Likewise.
1714 (pp_expression): Likewise.
1715 (pp_c_type_id): Likewise.
1716 (pp_c_storage_class_specifier): Likewise.
1717 * c-pretty-print.c (pp_c_type_cast): Tidy.
1718 (pp_c_pointer): Likewise.
1719 (pp_c_type_specifier): Likewise.
1720 (pp_c_parameter_type_list): Likewise.
1721 (pp_c_function_definition): Likewise.
1722 (pp_c_init_declarator): Likewise.
1723 (pp_c_initializer_list): Likewise.
1724 (pp_c_constructor_elts): Likewise.
1725 (c_pretty_printer::direct_abstract_declarator): Likewise.
1726 (c_pretty_printer::declaration_specifiers): Likewise.
1727 (c_pretty_printer::primary_expression): Likewise.
1728 (c_pretty_printer::postfix_expression): Likewise.
1729 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1730 (c_pretty_printer::storage_class_specifier): Rename from
1731 pp_c_storage_class_specifier.
1732 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1733 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1734 storage_class_specifier, initializer, offset_list, flags.
1735
de5a5fa1
MP
17362013-08-30 Marek Polacek <polacek@redhat.com>
1737
1738 * c-ubsan.c: New file.
1739 * c-ubsan.h: New file.
1740
8f0e4d72
GDR
17412013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1742
1743 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1744 member function.
1745 (c_pretty_printer::declaration_specifiers): Likewise.
1746 (c_pretty_printer::declarator): Likewise.
1747 (c_pretty_printer::abstract_declarator): Likewise.
1748 (c_pretty_printer::direct_abstract_declarator): Likewise.
1749 (c_pretty_printer::direct_declarator): Likewise.
1750 (c_pretty_printer::function_specifier): Likewise.
1751 (pp_declaration): Adjust.
1752 (pp_declaration_specifiers): Likewise.
1753 (pp_abstract_declarator): Likewise.
1754 (pp_direct_declarator): Likewise.
1755 (pp_function_specifier): Likewise.
1756 (pp_direct_abstract_declarator): Remove as unused.
1757 (pp_c_declaration): Remove.
1758 (pp_c_declaration_specifiers): Likewise.
1759 (pp_c_declarator): Likewise.
1760 (pp_c_direct_declarator): Likewise.
1761 (pp_c_function_specifier): Likewise.
1762 (pp_c_direct_abstract_declarator): Likewise.
1763 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1764 from pp_c_abstract_declarator. Adjust.
1765 (c_pretty_printer::direct_abstract_declarator): Rename from
1766 pp_c_direct_abstract_declarator. Adjust.
1767 (c_pretty_printer::function_specifier): Rename from
1768 pp_c_function_specifier. Adjust.
1769 (c_pretty_printer::declaration_specifiers): Rename from
1770 pp_c_declaration_specifiers. Adjust.
1771 (c_pretty_printer::direct_declarator): Rename from
1772 pp_c_direct_declarator. Adjust.
1773 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1774 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1775 (c_pretty_printer::c_pretty_printer): Do not assign to
1776 declaration, declaration_specifiers, declarator,
1777 direct_declarator, direct_abstract_declarator, function_specifier.
1778
00d34d3a
GDR
17792013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1780
1781 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1782 virtual member function.
1783 (c_pretty_printer::multiplicative_expression): Likewise.
1784 (c_pretty_printer::conditional_expression): Likewise.
1785 (c_pretty_printer::assignment_expression): Likewise.
1786 (c_pretty_printer::expression): Likewise.
1787 (pp_unary_expression): Adjust.
1788 (pp_multiplicative_expression): Likewise.
1789 (pp_assignment_expression): Likewise.
1790 (pp_conditional_expression): Likewise.
1791 (pp_expression): Likewise.
1792 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1793 from pp_c_unary_expression. Adjust.
1794 (c_pretty_printer::multiplicative_expression): Rename from
1795 pp_c_multiplicative_expression. Adjust.
1796 (c_pretty_printer::conditional_expression): Rename from
1797 pp_c_conditional_expression. Adjust.
1798 (c_pretty_printer::assignment_expression): Rename from
1799 pp_c_assignment_expression. Adjust.
1800 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1801 (c_pretty_printer::c_pretty_printer): Do not assign to
1802 unary_expression, multiplicative_expression,
1803 conditional_expression, expression.
1804
fb22178f
GDR
18052013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1806
1807 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1808 virtual member function.
1809 (pp_postfix_expression): Adjust.
1810 (pp_c_postfix_expression): Remove.
1811 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1812 from pp_c_postfix_expression. Adjust.
1813 (c_pretty_printer::c_pretty_printer): Do not assign to
1814 postfix_expression.
1815
7ecc2600
GDR
18162013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1817
1818 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1819 virtua member function.
1820 (pp_primary_expression): Adjust.
1821 (pp_c_primary_expression): Remove.
1822 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1823 from pp_c_primary_expression. Adjust.
1824 (pp_c_initializer_list): Use pp_primary_expression.
1825 (c_pretty_printer::c_pretty_printer): Do not assign to
1826 primary_expression.
1827
0691175f
GDR
18282013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1829
1830 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1831 * c-pretty-print.c (M_): Remove.
1832 (c_pretty_printer::translate_string): Define.
1833 (pp_c_type_specifier): Use it.
1834 (pp_c_primary_expression): Likewise.
1835 (pp_c_expression): Likewise.
1836
66dfe4c4
GDR
18372013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1838
1839 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1840 virtual function.
1841 (pp_c_id_expression): Remove.
1842 (pp_id_expression): Adjust.
1843 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1844 pp_c_id_expression. Adjust.
1845 (pp_c_postfix_expression): Use pp_id_expression.
1846 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1847
ca43e9d5
GDR
18482013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1849
1850 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1851 member function.
1852 (pp_constant): Adjust.
1853 (pp_c_constant): Remove.
1854 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1855 pp_c_constant. Adjust.
1856 (pp_c_constant)
1857 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1858 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1859
da6ca2b5
GDR
18602013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1861
1862 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1863 (c_pretty_printer::c_pretty_printer): Declare.
1864 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1865 c_pretty_printer_init. Adjust.
1866 (print_c_tree): Do not call c_pretty_printer_init.
1867 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1868
65a372f4
AC
18692013-08-09 Arnaud Charlet <charlet@adacore.com>
1870
1871 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1872
fd9b0f32
PC
18732013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1874
1875 PR c++/58080
1876 * c-common.c (pointer_int_sum): Add bool parameter.
1877 * c-common.h (pointer_int_sum): Adjust declaration.
1878
e0aec1e9
GDR
18792013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1880
1881 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1882 c_pretty_printer variable.
1883
b066401f
GDR
18842013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1885
1886 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1887 (pp_base): Remove.
1888 (pp_c_base): Likewise. Adjust users.
1889 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1890 (pp_c_whitespace): Do not call pp_base.
1891 (pp_c_left_paren): Likewise.
1892 (pp_c_right_paren): Likewise.
1893 (pp_c_left_brace): Likewise.
1894 (pp_c_right_brace): Likewise.
1895 (pp_c_left_bracket): Likewise.
1896 (pp_c_right_bracket): Likewise.
1897 (pp_c_dot): Likewise.
1898 (pp_c_ampersand): Likewise.
1899 (pp_c_star): Likewise.
1900 (pp_c_arrow): Likewise.
1901 (pp_c_semicolon): Likewise.
1902 (pp_c_complement): Likewise.
1903 (pp_c_exclamation): Likewise.
1904 (pp_c_direct_declarator): Likewise.
1905 (pp_c_ws_string): Likewise.
1906 (pp_c_identifier): Likewise.
1907 (pp_c_statement): Likewise.
1908 (print_c_tree): Likewise.
1909
65e5a578
ESR
19102013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1911
1912 PR c++/58072
1913 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1914 provide useful error strings.
1915
137a1a27
GDR
19162013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1917
1918 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1919 printer functions instead of pp_string or operators and punctuators.
1920 (dump_generic_ada_node): Likewise.
1921 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1922 (pp_c_relational_expression): Likewise.
1923 (pp_c_logical_or_expression): Likewise.
1924
07838b13
GDR
19252013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1926
1927 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1928 functions instead of pp_character.
1929 (pp_ada_tree_identifier): Likewise.
1930 (dump_ada_double_name): Likewise.
1931 (dump_ada_function_declaration): Likewise.
1932 (dump_ada_array_domains): Likewise.
1933 (dump_template_types): Likewise.
1934 (dump_generic_ada_node): Likewise.
1935 (print_ada_declaration): Likewise.
1936 (print_ada_struct_decl): Likewise.
1937 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1938
433cc7b0
TT
19392013-07-23 Tom Tromey <tromey@redhat.com>
1940
1941 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1942 * c-common.c (c_common_reswords): Add _Generic.
1943
688010ba
OB
19442013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1945
1946 * c-common.c: Fix typos.
1947 * c-common.h: Likewise.
1948
2a99e5e6
LL
19492013-07-13 Lubos Lunak <l.lunak@suse.cz>
1950
1951 PR c++/55203
1952 * c-common.c (c_common_attribute_table): Add warn_unused.
1953 (handle_warn_unused_attribute): New.
1954
c26302d5
JJ
19552013-07-10 Jakub Jelinek <jakub@redhat.com>
1956
1957 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1958 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1959
dfeadaa0
PC
19602013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1961
1962 PR c++/57869
1963 * c.opt: Add Wconditionally-supported.
1964
6a2fa4b2
GS
19652013-07-08 Graham Stott <graham.stott@btinternet.com>
1966
1967 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1968 unused variables l_length and l_node.
1969
ecdbd01a 19702013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1971
1972 PR c/57821
1973 * c-common.c (complete_array_type): Delay folding first index
1974 like other indices. When folding, check for index overflow.
1975
bedc293e
MG
19762013-06-27 Marc Glisse <marc.glisse@inria.fr>
1977
1978 PR c++/57509
1979 * c-common.h (c_build_vec_perm_expr): New complain argument.
1980 * c-common.c (c_build_vec_perm_expr): Likewise.
1981 Use save_expr also in C++.
1982
604b2bfc
GDR
19832013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1984
1985 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1986 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1987 * c-opts.c (c_common_post_options): Likewise.
1988
dfeadaa0 19892013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
1990
1991 * array-notation-common.c (length_mismatch_in_expr): Changed the
1992 parameter type's from a dynamic array to a vec_tree. Also removed
1993 the size parameters.
1994 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1995 the change above.
1996
2ce86d2e
BI
19972013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1998
1999 * c-common.h (struct cilkplus_an_parts): New structure.
2000 (struct cilkplus_an_loop_parts): Likewise.
2001 (cilkplus_extract_an_triplets): New prototype.
2002 (fix_sec_implicit_args): Likewise.
2003 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2004 (fix_sec_implicit_args): Likewise.
604b2bfc 2005
07a6825b
BI
20062013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2007
2008 * array-notation-common.c (find_inv_trees): Removed an unwanted
2009 typecasting.
2010 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2011 enum rid to enum tree_code.
2012
08346abd
JH
20132013-06-11 Jan Hubicka <jh@suse.cz>
2014
2015 * c-common.c (handle_alias_ifunc_attribute): Do not set
2016 DECL_EXTERNAL for weakref variables.
2017 * c-pragma.c (handle_pragma_weak): Make sure aliases
2018 are not declared as external.
2019
d60f1706
BI
20202013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2021
2022 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2023 function from c/c-array-notation.c.
2024 (is_cilkplus_reduce_builtin): Likewise.
2025 (find_rank): Likewise.
2026 (extract_array_notation_exprs): Likewise.
2027 (replace_array_notations): Likewise.
2028 (find_inv_trees): Likewise.
2029 (replace_inv_trees): Likewise.
2030 (contains_array_notation_expr): Likewise.
2031 (find_correct_array_notation_type): Likewise.
2032 * c-common.h (struct inv_list): Moved this struct from the file
2033 c/c-array-notation.c and added a new field called additional tcodes.
2034 (length_mismatch_in_expr_p): New prototype.
2035 (is_cilkplus_reduce_builtin): Likewise.
2036 (find_rank): Likewise.
2037 (extract_array_notation_exprs): Likewise.
2038 (replace_array_notation): Likewise.
2039 (find_inv_trees): Likewise.
2040 (replace_inv_trees): Likewise.
2041 (find_correct_array_notation_type): Likewise.
dfeadaa0 2042
36536d79
BI
20432013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2044
2045 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2046 function array_notation_init_builtins is called.
2047 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2048 * c-common.def (ARRAY_NOTATION_REF): New tree.
2049 * c-common.h (build_array_notation_expr): New function declaration.
2050 (build_array_notation_ref): Likewise.
2051 (extract_sec_implicit_index_arg): New extern declaration.
2052 (is_sec_implicit_index_fn): Likewise.
2053 (ARRAY_NOTATION_CHECK): New define.
2054 (ARRAY_NOTATION_ARRAY): Likewise.
2055 (ARRAY_NOTATION_START): Likewise.
2056 (ARRAY_NOTATION_LENGTH): Likewise.
2057 (ARRAY_NOTATION_STRIDE): Likewise.
2058 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2059 ARRAY_NOTATION_REF.
2060 (pp_c_expression): Likewise.
2061 * c.opt (flag_enable_cilkplus): New flag.
2062 * array-notation-common.c: New file.
2063
f7716d57
JJ
20642013-05-14 Jakub Jelinek <jakub@redhat.com>
2065
2066 PR c++/57274
2067 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2068
a5e0cd1d
MG
20692013-05-10 Marc Glisse <marc.glisse@inria.fr>
2070
2071 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2072 vectors.
2073
f6bc1c4a
HS
20742013-05-07 Han Shen <shenhan@google.com>
2075
2076 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2077
3f12f6e9
SKS
20782013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2079
2080 * c-common.c (check_user_alignment): Emit error for negative values.
2081
61949153
PC
20822013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2083
2084 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2085
e93e18e9
PC
20862013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2087
2088 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2089 __GXX_EXPERIMENTAL_CXX1Y__.
2090
44d90fe1
PC
20912013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2092 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2093
2094 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2095 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2096 to simply use OPT_Wpointer_arith.
2097 (c_sizeof_or_alignof_type): Likewise.
2098
13f39b2e
PC
20992013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2100
2101 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2102
4b84d650
JJ
21032013-04-12 Jakub Jelinek <jakub@redhat.com>
2104
2105 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2106 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2107 specifiers.
2108
fb037b5d
SB
21092013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2110
2111 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2112
4e856798
PC
21132013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2114
2115 * c-common.c (pointer_int_sum): Remove dead code.
2116
4b1baac8
RS
21172013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2118
2119 PR middle-end/56524
2120 * c-common.c (handle_optimize_attribute): Don't call
2121 save_optabs_if_changed.
2122
0b50e654
JJ
21232013-03-05 Jakub Jelinek <jakub@redhat.com>
2124
2125 PR middle-end/56461
2126 * c-pch.c (pch_init): Free target_validity at the end.
2127
48c41403
JJ
21282013-03-04 Jakub Jelinek <jakub@redhat.com>
2129
2130 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2131
e664c61c
KS
21322013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2133 Jakub Jelinek <jakub@redhat.com>
2134
2135 PR sanitizer/56454
2136 * c-common.c (handle_no_sanitize_address_attribute): New function.
2137 (c_common_attribute_table): Add no_sanitize_address attribute.
2138 (handle_no_address_safety_analysis_attribute): Add
2139 no_sanitize_address attribute, not no_address_safety_analysis
2140 attribute.
2141
a475fd3d 21422013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
2143
2144 PR target/52555
2145 * c-common.c (handle_optimize_attribute): Call
2146 save_optabs_if_changed.
2147
f6007d99
JJ
21482013-02-18 Jakub Jelinek <jakub@redhat.com>
2149 Steven Bosscher <steven@gcc.gnu.org>
2150
2151 PR pch/54117
2152 * c-opts.c (c_common_post_options): If debug info is enabled
2153 and non-dwarf*, refuse to load PCH files and when writing PCH
2154 file warn.
2155
cf35e2b1
JJ
21562013-02-05 Jakub Jelinek <jakub@redhat.com>
2157
2158 PR middle-end/56167
2159 * c-common.c (handle_error_attribute): Fix condition.
2160
32887460
JJ
21612013-01-30 Jakub Jelinek <jakub@redhat.com>
2162
2163 PR c++/55742
2164 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2165
5af057d8
JM
21662013-01-18 Jason Merrill <jason@redhat.com>
2167
2168 PR target/54908
2169 * c.opt (-fextern-tls-init): New.
2170 * c-opts.c (c_common_post_options): Handle it.
2171
cc83c823
JJ
21722013-01-09 Jakub Jelinek <jakub@redhat.com>
2173
2174 PR c/48418
2175 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2176 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2177 and is either negative or bigger or equal to type precision
2178 of the first operand.
2179
a859517f
MP
21802012-12-03 Marek Polacek <polacek@redhat.com>
2181
2182 PR c/55570
2183 * c-common.c (check_user_alignment): Swap order of tests,
2184 check TREE_CODE first.
2185
2d7aa578
ESR
21862012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2187
2188 PR c++/52654
2189 * c-common.h (overflow_type): New enum.
2190 (build_userdef_literal): Add overflow_type argument.
2191 (tree_userdef_literal): Add overflow_type.
2192 (USERDEF_LITERAL_OVERFLOW): New access macro.
2193 * c-common.c (build_userdef_literal): Add overflow_type
2194 argument.
2195 * c-lex.c (c_lex_with_flags): Add overflow_type to
2196 build_userdef_literal calls.
2197 (interpret_integer, interpret_float): Add overflow_type argument.
2198
cc3c4f62
RB
21992012-11-28 Richard Biener <rguenther@suse.de>
2200
2201 PR c/35634
2202 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2203 here and use a type with proper overflow behavior for types that would
2204 need to be promoted for the arithmetic.
2205
77bc5132
JJ
22062012-11-23 Jakub Jelinek <jakub@redhat.com>
2207
2208 PR sanitizer/55435
2209 * c-common.c (handle_no_address_safety_analysis_attribute): New
2210 function.
2211 (c_common_attribute_table): Add no_address_safety_analysis.
2212
5dc99c46
SB
22132012-11-16 Simon Baldwin <simonb@google.com>
2214
2215 * c.opt: Add f[no-]canonical-system-headers.
2216 * c-opts.c (c_common_handle_option): Handle
2217 OPT_fcanonical_system_headers.
2218
a4a0016d
ESR
22192012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2220
2221 PR c++/54413
2222 * c-opts.c (c_common_handle_option): Set new flags.
2223 * c.opt: Describe new flags.
2224
7dbb85a7
JM
22252012-11-09 Jason Merrill <jason@redhat.com>
2226
2227 * c.opt (Wabi-tag): New.
2228
ad7bac31
AK
22292012-11-09 Andi Kleen <ak@linux.intel.com>
2230
2231 PR 55139
2232 * c-common.c (get_atomic_generic_size): Mask with
2233 MEMMODEL_MASK
2234
7332899a
MLI
22352012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2236
2237 PR c/53063
2238 * c.opt (Wformat): Make it Alias Wformat=1.
2239 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2240 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2241 LangEnabledBy.
2242 (Wformat=): RejectNegative. Use LangEnabledBy.
2243 (Wnonnull): Use LangEnabledBy.
2244 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2245 * c-format.c (set_Wformat): Delete.
2246 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2247 (maybe_read_dollar_number): Likewise.
2248 (avoid_dollar_number): Likewise.
2249 (finish_dollar_format_checking): Likewise.
2250 (check_format_info): Likewise.
2251 (check_format_info_main): Likewise.
2252 (check_format_types): Likewise.
2253 (format_type_warning): Likewise.
2254 * c-common.c (int): Likewise.
2255 (check_function_sentinel): Likewise.
2256 * c-common.h (warn_format,set_Wformat): Do not declare here.
2257
34a180a6
MLI
22582012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2259
2260 PR c/53063
2261 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2262 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2263 Use LangEnabledBy.
2264 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2265 common.opt.
2266 (Wvariadic-macros): Init(1).
2267 * c-opts.c (c_common_handle_option): Do not handle them
2268 explicitly.
2269 (c_common_post_options): Likewise.
2270 (sanitize_cpp_opts): warn_unused_macros is now
2271 cpp_warn_unused_macros.
2272 (push_command_line_include): Likewise.
2273 * c-common.c (warn_unknown_pragmas): Do not define.
2274 * c-common.h (warn_unknown_pragmas): Do not declare.
2275
3f46d6a5
MLI
22762012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2277
2278 PR c/51294
2279 * c-common.c (conversion_warning): Handle conditional expressions.
2280
880661a4
JW
22812012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2282
2283 PR c++/54930
2284 * c.opt (Wreturn_local_addr): Define new option.
2285
4514a96b
JM
22862012-10-25 Jason Merrill <jason@redhat.com>
2287
f14edc1a
JM
2288 * c.opt (Wvirtual-move-assign): New.
2289
4514a96b
JM
2290 * c.opt (Winherited-variadic-ctor): New.
2291
93100c6b
MG
22922012-10-25 Marc Glisse <marc.glisse@inria.fr>
2293
2294 PR c++/54427
2295 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2296
1efcb8c6
JM
22972012-10-23 Joseph Myers <joseph@codesourcery.com>
2298
2299 * c-common.h (pch_cpp_save_state): Declare.
2300 * c-target.def (c_preinclude): New hook.
2301 * c-opts.c (done_preinclude): New.
2302 (push_command_line_include): Handle default preincluded header.
2303 (cb_file_change): Call pch_cpp_save_state when calling
2304 push_command_line_include.
2305 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2306 (pch_cpp_save_state): New.
2307 (pch_init): Call pch_cpp_save_state conditionally, instead of
2308 calling cpp_save_state.
2309
4a0ae68e
MLI
23102012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2311
2312 PR c/53063
2313 PR c/40989
2314 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2315 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2316 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2317 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2318 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2319 * c-opts.c (c_common_handle_option): Remove explicit handling from
2320 here.
2321 (c_common_post_options): Likewise.
2322
67e4210b
EB
23232012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2324
2325 * c-ada-spec.c (LOCATION_COL): Delete.
2326 (compare_location): New function.
2327 (compare_node): Use it.
2328 (compare_comment): Likewise.
2329
65d4f2cd
MLI
23302012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2331
2332 PR c/53063
2333 PR c/40989
2334 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2335 * c-opts.c (c_common_handle_option): Do not set them here. Add
2336 comment.
2337 (c_common_post_options): Likewise.
2338
909881cb
EB
23392012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2340
2341 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2342 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2343 Remove POINTER_TYPE handling, add large unsigned handling and use
2344 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2345
3a785c97
JJ
23462012-10-12 Jakub Jelinek <jakub@redhat.com>
2347
2348 PR c/54381
2349 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2350 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2351 locs and array of 3 trees instead of just single loc and single
2352 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2353 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2354 For *cmp* builtins that take two sources strings report warnings
2355 about first and second source, not about destination and source.
2356
5e54f81d
MG
23572012-10-12 Marc Glisse <marc.glisse@inria.fr>
2358
2359 PR c++/53055
2360 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2361
f5b02f1e
EB
23622012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2363
2364 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2365 declaring something coming from another file.
2366
b46dbc6c
AC
23672012-10-10 Arnaud Charlet <charlet@adacore.com>
2368
f5b02f1e 2369 PR ada/54845
b46dbc6c
AC
2370 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2371
5d9de0d0
PC
23722012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2373
2374 PR c++/54194
2375 * c-common.c (warn_about_parentheses): Add location_t parameter;
2376 use EXPR_LOC_OR_LOC.
2377 * c-common.h: Update declaration.
2378
a212e43f
MG
23792012-10-09 Marc Glisse <marc.glisse@inria.fr>
2380
2381 PR c++/54427
2382 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2383 more operations. Make error messages optional.
2384 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2385 (scalar_to_vector): Declare.
2386
b1db7f91
JM
23872012-10-08 Jason Merrill <jason@redhat.com>
2388
2389 * c-common.c (c_common_reswords): Add thread_local.
2390
e28d52cf
DS
23912012-10-08 Dodji Seketeli <dodji@redhat.com>
2392
2393 PR c++/53528 C++11 attribute support
2394 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2395 new functions.
2396 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2397 static function.
2398 (handle_aligned_attribute): In choose strictest alignment
2399 among many. Use new check_cxx_fundamental_alignment_constraints.
2400 (handle_transparent_union_attribute): In c++11 attribute syntax,
2401 don't look through typedefs.
2402
3b78de56
AC
24032012-10-04 Arnaud Charlet <charlet@adacore.com>
2404
2405 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2406 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2407 out of dumpfile.h.
2408
6040bb5f
DC
24092012-09-25 Dehao Chen <dehao@google.com>
2410
2411 PR middle-end/54645
3b78de56 2412 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
2413 map when read in the pch.
2414
0b07a57e
AC
24152012-09-18 Arnaud Charlet <charlet@adacore.com>
2416
2417 * c-ada-spec.c: Style fixes.
2418
da5182be
TQ
24192012-09-18 Thomas Quinot <quinot@adacore.com>
2420
2421 * c.opt (-fada-spec-parent): Define new command line switch.
2422 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2423 is specified, generate binding spec as a child of the specified unit.
2424
0ccb505d
PC
24252012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2426 Manuel López-Ibáñez <manu@gcc.gnu.org>
2427
2428 PR c++/53210
2429 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2430
c583af79
AC
24312012-08-23 Arnaud Charlet <charlet@adacore.com>
2432
2433 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2434 for pointers, and add missing Convention C pragma.
2435 (print_ada_struct_decl): Add missing aliased keyword.
2436 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2437
1a4049e7
JJ
24382012-08-17 Jakub Jelinek <jakub@redhat.com>
2439
2440 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2441 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2442 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2443 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2444 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2445
70b5e7dc
RG
24462012-08-10 Richard Guenther <rguenther@suse.de>
2447
2448 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2449
f8923f7e
SB
24502012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2451
2452 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2453 instead of separate pp_newline and pp_flush.
2454 (print_c_tree): Likewise.
2455
e45abe1f
RH
24562012-07-26 Richard Henderson <rth@redhat.com>
2457
2458 * c-common.c (handle_hot_attribute): Allow labels.
2459 (handle_cold_attribute): Likewise.
2460
332f1d24
JJ
24612012-07-20 Jakub Jelinek <jakub@redhat.com>
2462
2463 PR c++/28656
2464 * c-common.c (check_function_nonnull): Handle multiple nonnull
2465 attributes properly.
2466
7ee2468b
SB
24672012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2468
2469 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2470 * c-ada-spec.c: Likewise.
2471 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2472
ee7b28eb
SB
24732012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2474
2475 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2476 Remove code conditional on it.
2477
6bdf3519
SB
24782012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2479
2480 * c-gimplify.c: Do not include basic-block.h.
2481 * c-common.c: Do not include linfuncs.h.
2482
532aafad
SB
24832012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2484
2485 * c-common.h: Include tree.h.
2486
8d0d1915
JM
24872012-07-02 Jason Merrill <jason@redhat.com>
2488
2489 PR c++/53524
2490 * c-common.c (get_priority): Call default_conversion.
2491
fbc873ad
UB
24922012-07-01 Uros Bizjak <ubizjak@gmail.com>
2493
2494 * c-pch.c (c_common_write_pch): Remove unused variables.
2495
d4a10d0a
SB
24962012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2497
2498 * cppspec.c: Moved from gcc/ to here.
2499
6f3a2e23
KT
25002012-06-27 Kai Tietz <ktietz@redhat.com>
2501
2502 PR preprocessor/37215
2503 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2504
8ca92d04
SB
25052012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2506
2507 * c-common.h (c_common_print_pch_checksum): Remove.
2508 * c-pch.c: Do not include output.h.
2509 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2510 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2511 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2512 (struct c_pch_header): Remove.
2513 (get_ident): Update gpch version.
2514 (pch_init): Do not print executable_checksum to asm_out_file.
2515 Do not fail if there is no asm_out_file to read back from. Set
2516 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2517 (c_common_write_pch): Verify that nothing was written to asm_out_file
2518 since pch_init was called. Do not write a c_pch_header, and do not
2519 copy from asm_out_file to the PCH.
2520 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2521 the content of asm_out_file from the PCH.
2522 (c_common_print_pch_checksum): Remove.
2523 * c-opts.c (c_common_init): Print out executable_checksum directly.
2524
70f42967
SB
25252012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2526
2527 * c-target.def (objc_declare_unresolved_class_reference,
2528 objc_declare_class_definition): Add new hooks.
2529
a8781821
SB
25302012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2531
2532 * c-lex.c: Do not include output.h.
2533 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2534 Remove uses of ASM_OUTPUT_IDENT.
2535
9e1a8dd1
RR
25362012-06-15 Marc Glisse <marc.glisse@inria.fr>
2537
2538 PR c++/51033
2539 * c-common.h (c_build_vec_perm_expr): Move decl here.
2540 * c-common.c (c_build_vec_perm_expr): Move definition
2541 here.
2542
6f07a821
SB
25432012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2544
2545 * c.opt (fconserve-space): Turn into a no-op.
2546
9faeb493 25472012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
2548
2549 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2550 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2551 both the start and end of the function.
2552
a4b7d13c
SB
25532012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2554
2555 * c-common.c: Do not include output.h.
2556 * c-pragma.c: Likewise.
2557
c265f413
SA
25582012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2559
2560 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2561 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2562 (lang_decl_name): Handle namespace decls.
2563
be7a421e
SB
25642012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2565
2566 * c-ada-spec.c: Do not include output.h.
2567 * c-semantics.c: Likewise.
2568
65de6659
JM
25692012-05-29 Joseph Myers <joseph@codesourcery.com>
2570
2571 * c-common.c: Fix typo.
2572
ca5f4331
MM
25732012-05-29 Michael Matz <matz@suse.de>
2574
2575 * c-common.h (c_expand_decl): Remove prototype.
2576
4f7f7aca
MLI
25772012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2578
2579 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2580 * c-opts.c (c_common_handle_option): Remove code handling
2581 warn_missing_braces.
2582
4a792f9b
PC
25832012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2584
2585 PR c++/25137
2586 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2587 -Wmissing_braces.
2588
650dc14a
DS
25892012-05-22 Dodji Seketeli <dodji@redhat.com>
2590
2591 PR c++/53322
2592 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2593
9b095bf1
MLI
25942012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2595
2596 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2597 * c-opts.c (c_common_handle_option): Do not handle explicitly
2598 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2599
0b2c4be5
DS
26002012-05-16 Dodji Seketeli <dodji@redhat.com>
2601
2602 PR preprocessor/7263
2603 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2604 to cpp_classify_number. For diagnostics, use the precise location
2605 instead of the global input_location.
2606
a1bde5af
PC
26072012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2608
d02924ef 2609 PR c++/11856
a1bde5af
PC
2610 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2611
d1ede5f4
BS
26122012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2613
a1bde5af 2614 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 2615
f2bc201f
MLI
26162012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2617
2618 PR 53063
2619 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2620 Wreorder): Use LangEnabledBy.
2621 * c-opts.c (c_common_handle_option): Do not enable them
2622 explicitly. Call lang-specific generated functions.
2623 (c_common_post_options): Do not set them here.
2624
95744782
MLI
26252012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2626
2627 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2628 Wmissing-field-initializers,Wmissing-parameter-type,
2629 Wold-style-declaration,Woverride-init): Use EnabledBy.
2630 * c-opts.c (c_common_post_options): Do not set here explicitly.
2631
7d5a5747
MLI
26322012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2633
2634 PR 53063
2635 * c-opts.c (c_common_handle_option): Use handle_generated_option
2636 to enable sub-options.
2637
5a3c9cf2
PC
26382012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2639
2640 PR c++/53158
2641 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2642
3ac8781c
RG
26432012-05-10 Richard Guenther <rguenther@suse.de>
2644
2645 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2646 adjust commentary about TYPE_IS_SIZETYPE types.
2647
1e537948
MLI
26482012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2649
2650 PR c++/53261
2651 * c-common.c (warn_logical_operator): Check that argument of
2652 integer_zerop is not NULL.
2653
f2c4a785
MLI
26542012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2655
2656 PR c/43772
2657 * c-common.c (warn_logical_operator): Do not warn if either side
2658 is already true or false.
2659
50f305ca
MLI
26602012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2661
2662 PR c/51712
2663 * c-common.c (expr_original_type): New.
2664 (shorten_compare): Do not warn for enumeration types.
2665
0c3641b0
MLI
26662012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2667
2668 * c.opt (fpermissive): Add Var(flag_permissive).
2669
7edaa4d2
MG
26702012-04-30 Marc Glisse <marc.glisse@inria.fr>
2671
2672 PR c++/51033
2673 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2674 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2675
b9c8da34
DS
26762012-04-30 Dodji Seketeli <dodji@redhat.com>
2677
2678 Add -Wvarargs option
2679 * c.opt (Wvarargs): Define new option.
2680
e6c69da0
MLI
26812012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2682
2683 * c-common.c (check_function_arguments): Replace
2684 Wmissing-format-attribute with Wsuggest-attribute=format.
2685
90137d8f
MLI
26862012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2687
2688 * c.opt (Wsuggest-attribute=format): New. Alias of
2689 Wmissing-format-attribute.
2690 * c-format.c (decode_format_type): Replace
2691 Wmissing-format-attribute with Wsuggest-attribute=format.
2692 (check_function_format): Likewise.
2693
9faeb493 26942012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
2695
2696 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2697 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2698 * c.opt: Add Wliteral-suffix.
2699
c1771a20
MLI
27002012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2701
2702 PR c/44774
2703 * c.opt (Wpedantic): New.
2704 (pedantic): Alias Wpedantic.
2705 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2706 (c_common_post_options): Likewise.
2707 (sanitize_cpp_opts): Likewise.
2708 * c-lex.c (interpret_float): Likewise.
2709 * c-format.c (check_format_types): Likewise.
2710 * c-common.c (pointer_int_sum): Likewise.
2711 (c_sizeof_or_alignof_type): Likewise.
2712 (c_add_case_label): Likewise.
2713 (c_do_switch_warnings): Likewise.
2714 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2715
04b391c1
JM
27162012-04-15 Jason Merrill <jason@redhat.com>
2717
2718 PR c++/52818
2719 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2720 (C_STD_NAME): Distinguish between C++98 and C++11.
2721
ac868f29
EB
27222012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2723
2724 PR target/52624
2725 * c-common.h (uint16_type_node): Rename into...
2726 (c_uint16_type_node): ...this.
2727 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2728 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2729
fd4116f4
MLI
27302012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2731
2732 * c-common.c (warn_if_unused_value): Move definition to here.
2733 * c-common.h (warn_if_unused_value): Move declaration to here.
2734
573ac65e
WB
27352012-03-23 William Bader <williambader@hotmail.com>
2736
2737 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2738
552b8185
JM
27392012-03-20 Jason Merrill <jason@redhat.com>
2740
2741 * c-common.h (enum cxx_dialect): Add cxx1y.
2742 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2743 test.
2744 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2745 * c-opts.c (c_common_post_options): Likewise.
2746 (set_std_cxx1y): New.
2747 (c_common_handle_option): Call it.
2748 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2749
04398fa8
PC
27502012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2751
2752 PR c++/14710
2753 * c.opt ([Wuseless-cast]): Add.
2754
d2a12ae7
RG
27552012-03-16 Richard Guenther <rguenther@suse.de>
2756
2757 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2758
a12bf402
MLI
27592012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2760
2761 PR c++/44783
2762 * c.opt (ftemplate-backtrace-limit) Add.
2763
5c30094f
RO
27642012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2765
2766 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2767 handling.
2768 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2769 (init_pragma): Don't register extern_prefix.
2770
21fa2faf
RG
27712012-03-12 Richard Guenther <rguenther@suse.de>
2772
2773 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2774 (builtin_type_for_size): Likewise.
2775
e3793c6f
JJ
27762012-02-13 Jakub Jelinek <jakub@redhat.com>
2777
2778 PR c++/52215
2779 * c-common.c (sync_resolve_params): Don't decide whether to convert
2780 or not based on TYPE_SIZE comparison, convert whenever arg_type
2781 is unsigned INTEGER_TYPE.
2782
93286335
PC
27832012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2784
2785 PR c/52118
2786 * c.opt ([Wunused-local-typedefs]): Fix description.
2787
7a421706
MS
27882012-01-24 Mike Stump <mikestump@comcast.net>
2789
2790 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2791 exactly.
2792
ba9b1f11
RG
27932012-01-18 Richard Guenther <rguenther@suse.de>
2794
2795 * c-opts.c (c_common_post_options): Reset LTO flags if
2796 we are about to generate a PCH.
2797
465406be
PC
27982012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2799
2800 PR c++/51777
2801 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2802 use pp_unsigned_wide_integer.
2803
aee15221
RG
28042012-01-10 Richard Guenther <rguenther@suse.de>
2805
2806 PR middle-end/51806
2807 * c-opts.c (c_common_handle_option): Move -Werror handling
2808 to language independent code.
2809
5720c0dc
RG
28102012-01-05 Richard Guenther <rguenther@suse.de>
2811
2812 PR middle-end/51764
2813 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2814 from common.opt.
2815
73ac190a
PC
28162011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2817
2818 PR c++/51316
2819 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2820 of array types with an unknown bound.
2821
48b0b196
JM
28222011-12-20 Joseph Myers <joseph@codesourcery.com>
2823
2824 * c-common.c (flag_isoc99): Update comment to refer to C11.
2825 (flag_isoc1x): Change to flag_isoc11.
2826 * c-common.h (flag_isoc99): Update comment to refer to C11.
2827 (flag_isoc1x): Change to flag_isoc11.
2828 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2829 C11.
2830 * c-opts.c (set_std_c1x): Change to set_std_c11.
2831 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2832 Call set_std_c11.
2833 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2834 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2835 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2836 standard.
2837 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2838 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2839 (std=gnu1x): Make alias of std=gnu11.
2840
d58d6eb5
JM
28412011-12-19 Jason Merrill <jason@redhat.com>
2842
2843 PR c++/51228
2844 * c-common.c (handle_transparent_union_attribute): Check the first
2845 field if the type is complete.
2846
b3908fcc
JW
28472011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2848
2849 PR libstdc++/51365
2850 * c-common.c (RID_IS_FINAL): Add.
2851 * c-common.h (RID_IS_FINAL): Add.
2852
fea3ca91
IS
28532011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2854
2855 * c.opt (fgnu-runtime): Provide full description.
2856 (fnext-runtime): Likewise.
2857 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2858
62bad7cd
AM
28592011-11-28 Andrew MacLeod <amacleod@redhat.com>
2860
2861 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2862 predefines in one place. Add LOCK_FREE predefines.
2863 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2864 new func.
2865
c466c4ff
AM
28662011-11-24 Andrew MacLeod <amacleod@redhat.com>
2867
2868 PR c/51256
9faeb493 2869 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2870 conditions
9faeb493
UB
2871 (resolve_overloaded_atomic_exchange,
2872 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2873 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2874 error_mark_node for error conditions.
9faeb493 2875
a5952633
RG
28762011-11-08 Richard Guenther <rguenther@suse.de>
2877
2878 PR middle-end/51010
2879 c-family/
2880
0a35513e
AH
28812011-11-07 Richard Henderson <rth@redhat.com>
2882 Aldy Hernandez <aldyh@redhat.com>
2883 Torvald Riegel <triegel@redhat.com>
2884
2885 Merged from transactional-memory.
2886
2887 * c-common.c (handle_tm_wrap_attribute,
2888 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2889 (struct c_common_reswords): Added __transaction* keywords.
2890 (struct c_common_attribute_table): Added transaction* and tm_regparm
2891 attributes.
2892 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2893 masks.
2894 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2895 find_tm_attribute): Declare.
2896
6d87092d
JM
28972011-11-07 Jason Merrill <jason@redhat.com>
2898
2899 PR c++/35688
2900 * c-common.c, c-common.h: Revert yesterday's changes.
2901
8e7860a1
JM
29022011-11-06 Jason Merrill <jason@redhat.com>
2903
2904 PR c++/35688
2905 * c-common.c (decl_has_visibility_attr): Split out from...
2906 (c_determine_visibility): ...here.
2907 * c-common.h: Declare it.
2908
d19fa6b5
JM
29092011-11-06 Joseph Myers <joseph@codesourcery.com>
2910
2911 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2912 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2913 type.
2914 (check_user_alignment): New. Split out of
2915 handle_aligned_attribute. Disallow integer constants with
2916 noninteger types. Conditionally allow zero.
2917 (handle_aligned_attribute): Use check_user_alignment.
2918 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2919
86951993
AM
29202011-11-06 Andrew MacLeod <amacleod@redhat.com>
2921 Richard Henderson <rth@redhat.com>
2922
2923 Merged from cxx-mem-model.
2924
2925 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2926 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2927 parameters that are the same type size.
2928 (get_atomic_generic_size): New. Find size of generic
2929 atomic function parameters and do typechecking.
2930 (add_atomic_size_parameter): New. Insert size into parameter list.
2931 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2932 either __atomic_exchange_n or external library call.
9faeb493 2933 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 2934 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 2935 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
2936 __atomic_load_n or an external library call.
2937 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2938 __atomic_store_n or an external library call.
2939 (resolve_overloaded_builtin): Handle new __atomic builtins.
2940
cf9e9959
EB
29412011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2942
2943 PR c++/50608
2944 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2945 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2946 <INDIRECT_REF>: Return the argument.
2947 <ARRAY_REF>: Remove special code for negative offset.
2948 Call fold_build_pointer_plus instead of size_binop.
2949 (fold_offsetof): Remove STOP_REF argument and adjust.
2950 * c-common.h (fold_offsetof_1): Declare.
2951 (fold_offsetof): Remove STOP_REF argument.
2952
25339f10
JM
29532011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2954
2955 PR c++/50810
2956 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2957 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2958 Wnarrowing for C++0x and C++98.
2959 * c.opt ([Wnarrowing]): Update.
2960
89401152
PC
29612011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2962
2963 PR c++/44277
2964 * c.opt: Add Wzero-as-null-pointer-constant.
2965
97e3ad20
JM
29662011-10-31 Jason Merrill <jason@redhat.com>
2967
15694fdd
JM
2968 * c.opt (-fdeduce-init-list): Off by default.
2969
97e3ad20
JM
2970 PR c++/50920
2971 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2972 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2973 and -Wc++11-compat.
2974 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2975
fb9120e3
RAV
29762011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2977
2978 PR c++/30066
2979 * c.opt (fvisibility-inlines-hidden): Description change.
2980
3ce4f9e4
ESR
29812011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2982
2983 Implement C++11 user-defined literals.
2984 * c-common.c (build_userdef_literal): New.
2985 * c-common.def: New tree code.
2986 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2987 * c-lex.c (interpret_float): Add suffix parm.
2988 (c_lex_with_flags): Build literal tokens.
2989
5f53c243
PC
29902011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2991
2992 PR c++/50841
2993 Revert:
2994 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2995
2996 PR c++/50810
2997 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2998 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2999 Wnarrowing for C++0x and C++98.
3000 * c.opt ([Wnarrowing]): Update.
3001
263734e1
PC
30022011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3003
3004 PR c++/50810
3005 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3006 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3007 Wnarrowing for C++0x and C++98.
3008 * c.opt ([Wnarrowing]): Update.
3009
d2e312d7
PC
30102011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3011
3012 PR c++/45385
3013 * c-common.c (conversion_warning): Remove code looking for
3014 artificial operands.
3015
d17687f6
DS
30162011-10-18 Dodji Seketeli <dodji@redhat.com>
3017
3018 PR bootstrap/50760
3019 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3020 !NO_IMPLICIT_EXTERN_C.
d17687f6 3021
fc8396e9
PC
30222011-10-17 Michael Spertus <mike_spertus@symantec.com>
3023
3024 * c-common.c (c_common_reswords): Add __bases,
3025 __direct_bases.
3026 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3027
30282011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3029
3030 PR c++/50757
3031 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3032
847e697a
TT
30332011-10-15 Tom Tromey <tromey@redhat.com>
3034 Dodji Seketeli <dodji@redhat.com>
3035
3036 * c.opt (fdebug-cpp): New option.
3037 * c-opts.c (c_common_handle_option): Handle the option.
3038 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3039 output stream in parameter. Factorized from ...
3040 (maybe_print_line): ... this. Dump location debug information when
3041 -fdebug-cpp is in effect.
3042 (print_line_1): New static function. Takes an output stream in
3043 parameter. Factorized from ...
3044 (print_line): ... here. Dump location information when -fdebug-cpp
3045 is in effect.
3046 (scan_translation_unit): Dump location information when
3047 -fdebug-cpp is in effect.
3048
92582b75
TT
30492011-10-15 Tom Tromey <tromey@redhat.com>
3050 Dodji Seketeli <dodji@redhat.com>
3051
3052 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3053 without argument.
3054 * c-opts.c (c_common_handle_option)<case
3055 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3056 cases. Handle -ftrack-macro-expansion with and without argument.
3057
46427374
TT
30582011-10-15 Tom Tromey <tromey@redhat.com>
3059 Dodji Seketeli <dodji@redhat.com>
3060
3061 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3062 (print_line, cb_define, do_line_change): Adjust to avoid touching
3063 the internals of struct line_map. Use the public API instead.
3064 * c-pch.c (c_common_read_pch): Likewise.
3065 * c-lex.c (fe_file_change): Likewise.
3066
fc8396e9
PC
30672011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3068
3069 PR c++/17212
3070 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3071
30722011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3073
3074 PR c++/33067
3075 * c-pretty-print.c (pp_c_floating_constant): Output
3076 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3077
e79983f4
MM
30782011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3079
3080 * c-common.c (def_builtin_1): Delete old interface with two
3081 parallel arrays to hold standard builtin declarations, and replace
3082 it with a function based interface that can support creating
3083 builtins on the fly in the future. Change all uses, and poison
3084 the old names. Make sure 0 is not a legitimate builtin index.
3085 * c-omp.c (c_finish_omp_barrier): Ditto.
3086 (c_finish_omp_taskwait): Ditto.
3087 (c_finish_omp_flush): Ditto.
3088
6637388f
TG
30892011-10-11 Tristan Gingold <gingold@adacore.com>
3090
3091 * c.opt: (fallow-parameterless-variadic-functions): New.
3092
3797cb21
DS
30932011-09-08 Dodji Seketeli <dodji@redhat.com>
3094
3095 PR c++/33255 - Support -Wunused-local-typedefs warning
3096 * c-common.h (struct c_language_function::local_typedefs): New
3097 field.
9faeb493
UB
3098 (record_locally_defined_typedef, maybe_record_typedef_use)
3099 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 3100 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
3101 (maybe_record_typedef_use)
3102 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
3103 * c.opt: Declare new -Wunused-local-typedefs flag.
3104
693ddb1b
EB
31052011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3106
3107 PR middle-end/50266
3108 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3109 computations.
3110
830c740f
RG
31112011-09-05 Richard Guenther <rguenther@suse.de>
3112
3113 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3114 of integer_minus_one_node for empty array upper bounds.
3115
892a371f
DS
31162011-08-28 Dodji Seketeli <dodji@redhat.com>
3117
3118 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3119 it's the first time it's being called on this main TU.
3120
0e3fdb48
RB
31212011-08-24 Richard Guenther <rguenther@suse.de>
3122
3123 PR c/49396
3124 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3125
31262011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
3127
3128 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3129 defined in cpp_init_builtins and c_cpp_builtins.
3130
d4a83c10
JM
31312011-08-19 Joseph Myers <joseph@codesourcery.com>
3132
3133 * c-common.c (c_common_reswords): Add __builtin_complex.
3134 * c-common.h (RID_BUILTIN_COMPLEX): New.
3135
bbceee64
JM
31362011-08-18 Joseph Myers <joseph@codesourcery.com>
3137
3138 * c-common.c (c_common_reswords): Add _Noreturn.
3139 (keyword_is_function_specifier): Handle RID_NORETURN.
3140 * c-common.h (RID_NORETURN): New.
3141
0e3a99ae
AS
31422011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3143
3144 * c-common.c (unsafe_conversion_p): New function. Check if it is
3145 unsafe to convert an expression to the type.
3146 (conversion_warning): Adjust, use unsafe_conversion_p.
3147 * c-common.h (unsafe_conversion_p): New function declaration.
3148
20906c66
JJ
31492011-08-02 Jakub Jelinek <jakub@redhat.com>
3150
3151 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3152 (c_finish_omp_taskyield): New prototype.
3153 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3154 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3155 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3156 or RHS1 have side-effects, evaluate those too in the right spot,
3157 if it is a decl and LHS is also a decl, error out if they
3158 aren't the same.
3159 (c_finish_omp_taskyield): New function.
3160 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3161 * c-pragma.c (omp_pragmas): Add taskyield.
3162 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3163 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3164 PRAGMA_OMP_CLAUSE_MERGEABLE.
3165
770e5a2e
DS
31662011-07-25 Dodji Seketeli <dodji@redhat.com>
3167
3168 * c-common.h (set_underlying_type): Remove parm name from
3169 declaration.
3170
1baae426
RG
31712011-07-25 Romain Geissler <romain.geissler@gmail.com>
3172
3173 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 3174
fcb21722
JM
31752011-07-22 Jason Merrill <jason@redhat.com>
3176
76f86d00
JM
3177 PR c++/49793
3178 * c.opt (Wnarrowing): New.
3179
3a636414
JM
3180 PR c++/30112
3181 * c-common.h: Declare c_linkage_bindings.
3182 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3183
fcb21722
JM
3184 PR c++/49813
3185 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3186 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3187 as flag_isoc99 for 'restrict'.
3188 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3189
02614448
ILT
31902011-07-21 Ian Lance Taylor <iant@google.com>
3191
3192 PR middle-end/49705
3193 * c-common.c (c_disable_warnings): New static function.
3194 (c_enable_warnings): New static function.
3195 (c_fully_fold_internal): Change local unused_p to bool. Call
3196 c_disable_warnings and c_enable_warnings rather than change
3197 c_inhibit_evaluation_warnings.
3198
34429675
JM
31992011-07-20 Jason Merrill <jason@redhat.com>
3200
3201 PR c++/6709 (DR 743)
3202 PR c++/42603 (DR 950)
3203 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3204 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3205 (CPP_DECLTYPE): New.
3206 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3207
5d49b6a7
RG
32082011-07-19 Richard Guenther <rguenther@suse.de>
3209
3210 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3211 * c-omp.c (c_finish_omp_for): Likewise.
3212
e84a58ff
EB
32132011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3214
3215 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3216 body on the next line.
3217
329af3c7
JM
32182011-07-08 Jason Merrill <jason@redhat.com>
3219
4063e61b
JM
3220 PR c++/45437
3221 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3222
329af3c7
JM
3223 PR c++/49673
3224 * c-common.c (c_apply_type_quals_to_decl): Don't check
3225 TYPE_NEEDS_CONSTRUCTING.
3226
1a072294
RG
32272011-07-06 Richard Guenther <rguenther@suse.de>
3228
3229 * c-common.c (c_common_nodes_and_builtins):
3230 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3231
fce5dddd
RG
32322011-07-05 Richard Guenther <rguenther@suse.de>
3233
3234 * c-common.c (c_common_nodes_and_builtins): Build all common
3235 tree nodes first.
3236
45d439ac
JJ
32372011-06-27 Jakub Jelinek <jakub@redhat.com>
3238
56300785
JJ
3239 * c-common.h (c_tree_chain_next): New static inline function.
3240
45d439ac
JJ
3241 * c-common.c (check_builtin_function_arguments): Handle
3242 BUILT_IN_ASSUME_ALIGNED.
3243
e0a8ecf2
AM
32442011-06-21 Andrew MacLeod <amacleod@redhat.com>
3245
3246 * c-common.c: Add sync_ or SYNC__ to builtin names.
3247 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
3248
32492011-06-20 Pierre Vittet <piervit@pvittet.com>
3250
3251 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3252 handler.
3253 (gen_pragma_handler): New union.
3254 (internal_pragma_handler): New type.
3255 (c_register_pragma_with_data)
3256 (c_register_pragma_with_expansion_and_data): New functions.
3257
3258 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3259 (c_register_pragma, c_register_pragma_with_expansion)
3260 (c_invoke_pragma_handler): Changed to work with
3261 internal_pragma_handler.
3262 (c_register_pragma_with_data)
3263 (c_register_pragma_with_expansion_and_data): New functions.
3264
677f3fa8
JM
32652011-06-14 Joseph Myers <joseph@codesourcery.com>
3266
3267 * c-common.c: Include common/common-target.h.
3268 (handle_section_attribute): Use
3269 targetm_common.have_named_sections.
3270 * c-cppbuiltin.c: Include common/common-target.h.
3271 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3272
d7fc8c14
RG
32732011-06-10 Richard Guenther <rguenther@suse.de>
3274
3275 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3276 to print a IDENTIFIER_NODE.
3277
10e48e39
RO
32782011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3279 Joseph Myers <joseph@codesourcery.com>
3280
3281 * c.opt (fbuilding-libgcc): New option.
3282 * c-cppbuiltin.c (c_cpp_builtins): Define
3283 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3284
6976ae51
JM
32852011-06-07 Jason Merrill <jason@redhat.com>
3286
3ff60975
JM
3287 * c-common.c (max_tinst_depth): Lower default to 900.
3288
6976ae51
JM
3289 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3290
009db074
RG
32912011-06-07 Richard Guenther <rguenther@suse.de>
3292
3293 * c-common.c (c_common_nodes_and_builtins): Do not set
3294 size_type_node or call set_sizetype.
3295
b4592b92
DS
32962011-06-07 Dodji Seketeli <dodji@redhat.com>
3297
3298 PR debug/49130
3299 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 3300 type when using pointer comparison to compare types.
b4592b92 3301
014ab419
JW
33022011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3303
3304 * c.opt: Add -Wdelete-non-virtual-dtor.
3305 * c-opts.c (c_common_handle_option): Include it in -Wall.
3306
4f60111f
NF
33072011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3308
3309 PR bootstrap/49190
3310
3311 Revert:
3312 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3313
3314 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3315 not tree_common.
3316
4cc4f2f4
JJ
33172011-05-27 Jakub Jelinek <jakub@redhat.com>
3318
3319 PR c++/49165
3320 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3321 C++ don't call c_common_truthvalue_conversion on void type arms.
3322
38e01f9e
NF
33232011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3324
3325 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3326 (stmt_list_stack): Define.
3327 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3328 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3329
92e948a8
NF
33302011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3331
3332 * c-common.c (warning_candidate_p): Check for BLOCKs.
3333
a2fc3e63
NF
33342011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3335
3336 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3337 not tree_common.
3338
0957c029
JJ
33392011-05-25 Jakub Jelinek <jakub@redhat.com>
3340
3341 * c-common.c (def_fn_type): Remove extra va_end.
3342
828fb3ba
JM
33432011-05-23 Jason Merrill <jason@redhat.com>
3344
3345 PR c++/48106
3346 * c-common.c (c_common_get_narrower): New.
3347 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3348
dde05067
NF
33492011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3350
3351 * c-common.h (check_function_arguments): Tweak prototype of
3352 check_function_arguments.
3353 * c-common.c (check_function_arguments): Likewise. Adjust
3354 calls to check_function_nonnull, check_function_format, and
3355 check_function_sentinel.
3356 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3357 separate attributes and typelist arguments. Use
3358 FOREACH_FUNCTION_ARGS to iterate over argument types.
3359
3c0d13bf
PC
33602011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3361
3362 * c-common.c (c_common_reswords): Reorder.
3363 * c-common.h (rid): Likewise.
3364
8242dd04
NF
33652011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3366
3367 * c-common.c (def_fn_type): Don't call build_function_type, call
3368 build_function_type_array or build_varargs_function_type_array
3369 instead.
3370 (c_common_nodes_and_builtins): Likewise.
3371
3d528853
NF
33722011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3373
3374 * c-common.c (c_add_case_label): Omit the loc argument to
3375 build_case_label.
3376 * c-common.h (build_case_label): Remove.
3377 * c-semantics.c (build_case_label): Remove.
3378
a04a722b
JM
33792011-05-05 Joseph Myers <joseph@codesourcery.com>
3380
3381 * c-objc.h (objc_start_method_definition): Update prototype.
3382 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3383
e19a18d4
NF
33842011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3385
3386 * c-common.c (check_main_parameter_types): Reindent. Don't use
3387 TYPE_ARG_TYPES directly.
3388 (handle_nonnull_attribute): Likewise.
3389 (sync_resolve_params): Likewise.
3390 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3391 to check_format_string.
3392 (handle_format_attribute): Likewise.
3393 (check_format_string): Take a function type to examine instead of
3394 a type list. Use a function_arg_iterator to step through argument
3395 types.
3396
c62c040f
RG
33972011-05-04 Richard Guenther <rguenther@suse.de>
3398
3399 * c-common.c (fix_string_type): Use size_int for index type bounds.
3400 (start_fname_decls): Do not pass NULL to build_int_cst.
3401 (c_init_attributes): Likewise.
3402 * c-lex.c (c_lex_with_flags): Likewise.
3403
c12ff9d8
JM
34042011-04-27 Jason Merrill <jason@redhat.com>
3405
3406 * c-common.c (make_tree_vector_from_list): New.
3407 * c-common.h: Declare it.
3408
304dfbe3
RG
34092011-04-26 Richard Guenther <rguenther@suse.de>
3410
3411 PR preprocessor/48248
3412 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3413 for output size with -P.
3414
3c0d13bf
PC
34152011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3416
3417 * c-common.c (struct c_common_resword): Add __underlying_type.
3418 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3419
04695783
JM
34202011-04-20 Jim Meyering <meyering@redhat.com>
3421
3422 * c-format.c (init_dollar_format_checking): Remove useless
3423 if-before-free.
3424
0dc33c3c
NP
34252011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3426
3427 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 3428 (objc_detect_field_duplicates): New.
0dc33c3c 3429 * stub-objc.c: Likewise.
3c0d13bf 3430
c59633d9
NP
34312011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3432
3433 * stub-objc.c (objc_declare_protocols): Renamed to
3434 objc_declare_protocol.
3435 * c-objc.h: Likewise.
3c0d13bf 3436
32dabdaf
NP
34372011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3438
3439 * stub-objc.c (objc_declare_class): Updated argument name.
3440
81f653d6
NF
34412011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3442
3443 * c-common.h (c_common_init_ts): Declare.
3444 * c-common.c (c_common_init_ts): Define.
3445
eb345401
NP
34462011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3447
3448 * c-objc.h (objc_build_message_expr): Updated prototype.
3449 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 3450
a358e188
MJ
34512011-04-12 Martin Jambor <mjambor@suse.cz>
3452
3453 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3454 of cgraph_node.
3455
e6313a78
RG
34562011-04-11 Richard Guenther <rguenther@suse.de>
3457
3458 * c-common.c (complete_array_type): Build a range type of
3459 proper type.
3460
dcf0c47e
NF
34612011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3462
3463 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3464 (handle_type_generic_attribute): Likewise.
3465
1ee44b26
JM
34662011-04-07 Jason Merrill <jason@redhat.com>
3467
3468 PR c++/48450
3469 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3470 conversion from C++0x scoped enum.
3471
acce4e77
JM
34722011-04-06 Joseph Myers <joseph@codesourcery.com>
3473
3474 * c-target-def.h: New file.
3475 * c-target.def: New file.
3476 * c-target.h: New file.
3477 * c-common.c (targetcm): Don't define here.
3478 * c-common.h (default_handle_c_option): Declare.
3479 * c-format.c: Include c-target.h instead of target.h.
3480 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3481 include tm.h.
3482 (default_handle_c_option): Move from targhooks.c.
3483
e2eefb55
JJ
34842011-03-29 Jakub Jelinek <jakub@redhat.com>
3485
3486 PR preprocessor/48248
3487 * c-ppoutput.c (print): Add src_file field.
3488 (init_pp_output): Initialize it.
3489 (maybe_print_line): Don't optimize by adding up to 8 newlines
3490 if map->to_file and print.src_file are different file.
3491 (print_line): Update print.src_file.
3492
ba78087b
KT
34932011-03-25 Kai Tietz <ktietz@redhat.com>
3494
3495 * c-ada-spec.c (compare_comment): Use filename_cmp
3496 instead of strcmp for filename.
3497
0edf1bb2
JL
34982011-03-25 Jeff Law <law@redhat.com>
3499
3500 * c-family/c-common.c (def_fn_type): Add missing va_end.
3501
c7dc8804
JM
35022011-03-25 Jason Merrill <jason@redhat.com>
3503
3504 * c.opt: Add -std=c++03.
3505
d1d879b1
EB
35062011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3507
3508 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3509
62d784f7
KT
35102011-03-17 Kai Tietz
3511
3512 PR target/12171
5050afdf
KT
3513 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3514 Display allowed attributes for function pointer types.
3515 (pp_c_attributes_display): New function to display
3516 attributes having affects_type_identity flag set to true.
3517 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3518
62d784f7
KT
3519 * c-common.c (c_common_attribute_table):
3520 Add new element.
3521 (c_common_format_attribute_table): Likewise.
3522
82d37118
JM
35232011-03-18 Jason Merrill <jason@redhat.com>
3524
49a000c3
JM
3525 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3526 * c-common.h: Don't declare it here.
3527 * c-common.c: Or define it here.
3528 * c-opts.c (c_common_handle_option): Or set it here.
3529
82d37118
JM
3530 PR c++/35315
3531 * c-common.c (handle_transparent_union_attribute): Don't
3532 make a duplicate type in C++.
3533
17bc631c
JM
35342011-03-15 Jason Merrill <jason@redhat.com>
3535
3536 * c-common.c (max_constexpr_depth): New.
3537 * c-common.h: Declare it.
3538 * c-opts.c (c_common_handle_option): Set it.
3539 * c.opt (fconstexpr-depth): New option.
3540
1b9b91a6
JM
35412011-03-11 Jason Merrill <jason@redhat.com>
3542
f231b5ff
JM
3543 * c-common.c (attribute_takes_identifier_p): Add missing const.
3544
1b9b91a6
JM
3545 PR c++/46803
3546 * c-common.c (attribute_takes_identifier_p): Assume that an
3547 unknown attribute takes an identifier.
3548
a19e4d44
NF
35492011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3550
3551 PR c/47786
3552 * c-common.c (c_type_hash): Call list_length instead of iterating
3553 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3554
982d62f6
JJ
35552011-02-19 Jakub Jelinek <jakub@redhat.com>
3556
3557 PR c/47809
3558 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3559
0a256240
NP
35602011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3561
3562 * c.opt (fobjc-abi-version=) New.
3563 (fobjc-nilcheck): New.
3564
ba9e6dd5
NF
35652011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3566
3567 PR c++/46890
3568 * c-common.h (keyword_is_decl_specifier): Declare.
3569 * c-common.c (keyword_is_decl_specifier): Define.
3570 (keyword_is_function_specifier): New function.
3571
7273813a
JJ
35722011-01-26 Jakub Jelinek <jakub@redhat.com>
3573
3574 PR c/47473
3575 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3576 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3577 REAL_TYPE.
3578
908ef79b
AC
35792011-01-26 Arnaud Charlet <charlet@adacore.com>
3580
3581 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3582
237e9384
JJ
35832011-01-26 Jakub Jelinek <jakub@redhat.com>
3584
3585 PR pch/47430
3586 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3587 after init_c_lex if pch_file is set.
3588
47ea1edf
DK
35892011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3590
d4dba752 3591 PR c++/43601
47ea1edf
DK
3592 * c.opt (-fkeep-inline-dllexport): New switch.
3593
2aa9c6ae
RG
35942011-01-12 Richard Guenther <rguenther@suse.de>
3595
3596 PR middle-end/32511
3597 * c-common.c (handle_weak_attribute): Warn instead of error
3598 on declaring an inline function weak.
3599
7bd11157
TT
36002011-01-05 Tom Tromey <tromey@redhat.com>
3601
3602 * c-common.h (lvalue_error): Update.
3603 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3604 not error.
3605
0e66e494 36062010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 3607
b4f588c4
NP
3608 PR objc/47075
3609 * c-objc.h (objc_finish_message_expr): Added argument to
3610 prototype.
3611
f4da8dce
NF
36122010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3613
3614 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3615 Use prototype_p.
3616
46270f14
NP
36172010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3618
3619 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 3620 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 3621
4816c593
NF
36222010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3623
3624 * c-common.h (readonly_error): Declare.
3625 * c-common.c (readonly_error): Define.
3626
7a6daeb0
NF
36272010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3628
3629 * c-common.h (invalid_indirection_error): Declare.
3630 * c-common.c (invalid_indirection_error): Define.
3631
892f6119
RG
36322010-12-03 Richard Guenther <rguenther@suse.de>
3633
3634 PR c/46745
3635 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3636 (pp_c_unary_expression): Likewise.
3637 (pp_c_expression): Likewise.
3638
6c39e757
NP
36392010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3640
3641 * c-common.h (objc_finish_function): New.
3642 (objc_non_volatilized_type): Removed.
3643 (objc_type_quals_match): Removed.
3644 * stub-objc.c (objc_finish_function): New.
3645 (objc_non_volatilized_type): Removed.
3646 (objc_type_quals_match): Removed.
9faeb493 3647
7c475d11
JM
36482010-11-30 Joseph Myers <joseph@codesourcery.com>
3649
3650 * c-common.h (parse_optimize_options): Declare.
3651 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3652 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3653
71f3e391
JM
36542010-11-29 Joseph Myers <joseph@codesourcery.com>
3655
3656 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3657 GET_ENVIRONMENT.
3658 * c-pch.c (O_BINARY): Don't define here.
3659 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3660
d5fabb58
JM
36612010-11-25 Joseph Myers <joseph@codesourcery.com>
3662
3663 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3664 targetm.except_unwind_info.
3665
299404a1
JM
36662010-11-23 Joseph Myers <joseph@codesourcery.com>
3667
3668 * c-opts.c (c_common_handle_option): Pass location to
3669 set_struct_debug_option.
3670
c98cd5bf
JM
36712010-11-23 Joseph Myers <joseph@codesourcery.com>
3672
3673 * c-common.c (visibility_options): Move from ../opts.c.
3674 * c-common.h (struct visibility_flags, visibility_options):
3675 Declare here.
3676 * c-opts.c (finish_options): Rename to c_finish_options.
3677 (c_common_init): Update call to finish_options.
3678
a9546771
NP
36792010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3680
3681 PR objc/34033
3682 * c-lex.c (lex_string): Check that each string in an Objective-C
3683 string concat sequence starts with either one or zero '@', and
3684 that there are no spurious '@' signs at the end.
3685
24a57808
JM
36862010-11-20 Joseph Myers <joseph@codesourcery.com>
3687
3688 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3689 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3690 HANDLE_PRAGMA_VISIBILITY.
3691 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3692 HANDLE_PRAGMA_VISIBILITY): Don't define.
3693 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3694
a9aa2c3a
NF
36952010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3696
3697 PR c++/16189
3698 PR c++/36888
3699 PR c++/45331
3700 * c-common.h (keyword_begins_type_specifier): Declare.
3701 (keyword_is_storage_class_specifier): Declare.
3702 (keyword_is_type_qualifier): Declare.
3703 * c-common.c (keyword_begins_type_specifier): New function.
3704 (keyword_is_storage_class_specifier): New function.
3705 (keyword_is_type_qualifier): Declare.
3706
5386338c
JM
37072010-11-19 Joseph Myers <joseph@codesourcery.com>
3708
3709 PR c/46547
3710 * c-common.c (in_late_binary_op): Define.
3711 (c_common_truthvalue_conversion): Check in_late_binary_op before
3712 calling c_save_expr.
3713 * c-common.h (in_late_binary_op): Declare.
3714
69ccdddb
JM
37152010-11-19 Joseph Myers <joseph@codesourcery.com>
3716
3717 * c-opts.c (c_common_handle_option): Update calls to
3718 set_struct_debug_option.
3719
6b192a09
NP
37202010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3721
3722 * c-common.h (objc_declare_protocols): Added additional argument.
3723 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 3724
fb52b50a
NF
37252010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3726
3727 PR c/33193
3728 * c-common.h (build_real_imag_expr): Declare.
3729 * c-semantics.c (build_real_imag_expr): Define.
3730
b37421c6
JM
37312010-11-17 Joseph Myers <joseph@codesourcery.com>
3732
3733 * c-opts.c (c_common_parse_file): Take no arguments.
3734 * c-common.h (c_common_parse_file): Update prototype.
3735
07078664
JJ
37362010-11-16 Jakub Jelinek <jakub@redhat.com>
3737
3738 PR c++/46401
3739 * c-common.c (warning_candidate_p): Don't track non-const calls
3740 or STRING_CSTs.
3741
c6a13190
ILT
37422010-11-15 Ian Lance Taylor <iant@google.com>
3743
3744 * c-lex.c (init_c_lex): Set macro debug callbacks if
3745 flag_dump_go_spec is set.
3746
925e8657
NP
37472010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3748
3749 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3750 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3751
bb0a9581
NF
37522010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3753
3754 PR preprocessor/45038
3755 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3756 dialects.
3757
c5fa0890
JM
37582010-11-12 Joseph Myers <joseph@codesourcery.com>
3759
3760 * c-common.h (c_family_lang_mask): Declare.
3761 * c-opts.c (c_family_lang_mask): Make extern.
3762 * c-pragma.c (handle_pragma_diagnostic): Use
3763 control_warning_option.
3764
a4d8c676
JM
37652010-11-12 Joseph Myers <joseph@codesourcery.com>
3766
3767 * c-common.c (parse_optimize_options): Update call to
3768 decode_options.
3769 * c-common.h (c_common_handle_option): Update prototype.
3770 * c-opts.c (c_common_handle_option): Take location_t parameter and
3771 pass it to other functions.
3772
f954bd2c
JM
37732010-11-11 Joseph Myers <joseph@codesourcery.com>
3774
3775 * c-opts.c (warning_as_error_callback): Remove.
3776 (c_common_initialize_diagnostics): Don't call
3777 register_warning_as_error_callback.
3778 (c_common_handle_option): Handle -Werror=normalized= here.
3779
d8a07487
JM
37802010-11-10 Joseph Myers <joseph@codesourcery.com>
3781
3782 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3783 in diagnostic.
3784 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3785 letter.
3786 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3787 Remove trailing '.' from diagnostics.
3788 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3789
d5478783
JM
37902010-11-10 Joseph Myers <joseph@codesourcery.com>
3791
3792 * c-common.c (parse_optimize_options): Pass global_dc to
3793 decode_options.
3794 * c-opts.c (c_common_handle_option): Pass &global_options to
3795 set_Wstrict_aliasing.
3796 * c.opt (v): Don't mark Common or document here.
3797
91ebb981
IS
37982010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3799
3800 PR target/44981
3801 * c-format.c (format_type): New type gcc_objc_string_format_type.
3802 (valid_stringptr_type_p): New.
3803 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3804 (check_format_string): Pass expected type, use
91ebb981
IS
3805 valid_stringptr_type_p (), check that the format string types are
3806 consistent with the format specification.
3807 (decode_format_attr): Warn if NSString is used outside objective-c.
3808 (format_types_orig): Add NSString.
3809 (format_name): New.
3810 (format_flags): New.
3811 (check_format_arg): Handle format strings requiring an external parser.
3812 first_target_format_type: New variable.
3813 (handle_format_attribute): Set up first_target_format_type, pass the
3814 expected format arg string type to check_format_string().
3815 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3816 * stub-objc.c (objc_string_ref_type_p): New.
3817 (objc_check_format_arg): New.
3818
bede2adc
NP
38192010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3820
9faeb493 3821 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3822 * c-common.h (objc_build_class_component_ref): New.
3823 * stub-objc.c (objc_build_class_component_ref): New.
3824
9a179d01
NP
38252010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3826
3827 * c.opt (Wproperty-assign-default): New option.
3828
22d8d616
NP
38292010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3830
3831 Implemented -fobjc-std=objc1 flag.
3832 * c.opt (fobjc-std=objc1): New option.
3833
2debdb4f
NP
38342010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3835
3836 Implemented format and noreturn attributes for Objective-C methods.
3837 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3838 attribute for Objective-C methods.
3839
ec52b111
JM
38402010-10-31 Jason Merrill <jason@redhat.com>
3841
3842 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3843 EXPR_LOC_OR_HERE.
3844
46a88c12
NP
38452010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3846
3847 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3848 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3849 (objc_add_property_declaration): Removed arguments for copies and
3850 ivar.
3851 (objc_build_getter_call): Renamed to
3852 objc_maybe_build_component_ref.
3853 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3854 (objc_is_property_ref): New.
3855 * c-common.c (c_common_reswords): Removed copies and ivar.
3856 * stub-objc.c (objc_add_property_declaration): Removed arguments
3857 for copies and ivar.
3858 (objc_build_getter_call): Renamed to
3859 objc_maybe_build_component_ref.
3860 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3861 (objc_is_property_ref): New.
9faeb493 3862
1e4bf85b
AC
38632010-10-29 Arnaud Charlet <charlet@adacore.com>
3864 Matthew Gingell <gingell@adacore.com>
3865
3866 * c-ada-spec.c (separate_class_package): New function.
3867 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3868 name of their enclosing package.
3869 (print_ada_declaration): Use separate_class_package.
3870
81f0bab2
JM
38712010-10-27 Jason Merrill <jason@redhat.com>
3872
2b08f2c5
JM
3873 * c-common.c (c_common_reswords): Add __is_literal_type.
3874 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3875
81f0bab2
JM
3876 * c-common.c (check_case_value): Remove special C++ code.
3877
200290f2
NP
38782010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3879
3880 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3881 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3882 and RID_LAST_PATTR.
3883 (objc_add_property_declaration): Added additional arguments.
3884 (objc_property_attribute_kind): Removed.
3885 (objc_set_property_attr): Removed.
3886 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3887 copy and nonatomic.
3888 * stub-objc.c (objc_add_property_declaration): Added additional
3889 arguments.
3890 (objc_set_property_attr): Removed.
9faeb493 3891
f614132b
NP
38922010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3893
3894 * c-common.h (objc_add_property_variable): Renamed to
3895 objc_add_property_declaration. Added location argument.
3896 * stub-objc.c (objc_add_property_variable): Same change.
3897
b8a18805
NP
38982010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3899
3900 * c-common.h (objc_maybe_printable_name): New.
3901 * stub-objc.c (objc_maybe_printable_name): New.
3902
30cd1c5d
AS
39032010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3904 Andrew Pinski <pinskia@gmail.com>
3905
3906 * c-common.h (c_common_mark_addressable_vec): Declare.
3907 * c-common.c (c_common_mark_addressable_vec): New function.
3908
249a82c4
NP
39092010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3910
3911 * c-common.h (objc_set_method_type): Removed.
3912 (objc_add_method_declaration): Added boolean argument.
3913 (objc_start_method_definition): Same change.
3914 (objc_build_method_signature): Same change.
3915 * stub-objc.c (objc_set_method_type): Removed.
3916 (objc_add_method_declaration): Added boolean argument.
3917 (objc_start_method_definition): Same change.
3918 (objc_build_method_signature): Same change.
3919
977e30bc
NP
39202010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3921
3922 * c-common.h (finish_file): Removed.
3923 (objc_write_global_declarations): New.
3924 * c-opts.c (c_common_parse_file): Do not call finish_file.
3925 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3926
da57d1b9
NP
39272010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3928
3929 Implemented parsing @synthesize and @dynamic for
3930 Objective-C/Objective-C++.
3931 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3932 (objc_add_synthesize_declaration): New.
3933 (objc_add_dynamic_declaration): New.
3934 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3935 * stub-objc.c (objc_add_synthesize_declaration): New.
3936 (objc_add_dynamic_declaration): New.
9faeb493 3937
0069111f
MM
39382010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3939
3940 PR target/46041
3941 * c-cppbuiltin.c (mode_has_fma): Move function here from
3942 builtins.c. Don't use the fma optab, instead just use the
3943 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3944 using -save-temps.
3945
e426b47b
NP
39462010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3947
3948 Merge from 'apple/trunk' branch on FSF servers.
0069111f 3949
e426b47b
NP
3950 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3951
9faeb493 3952 Radar 4330422
e426b47b
NP
3953 * c-common.h (objc_non_volatilized_type): New declaration
3954 * stub-objc.c (objc_non_volatilized_type): New stub.
3955
90fbfdc3
NP
39562010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3957
e426b47b 3958 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
3959
3960 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3961
9faeb493 3962 Radar 4133425
90fbfdc3 3963 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 3964 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 3965
c37d8c30
IS
39662010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3967
3968 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3969 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3970 (objc_ivar_visibility_kind): New enum.
3971 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 3972 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
3973 visibility enum.
3974
1b1562a5
MM
39752010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3976
3977 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3978 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3979 has the appropriate fma builtins.
3980 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3981
668ea4b1
IS
39822010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3983
1b1562a5 3984 merge from FSF apple 'trunk' branch.
668ea4b1 3985 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 3986
668ea4b1
IS
3987 Radars 4436866, 4505126, 4506903, 4517826
3988 * c-common.c (c_common_resword): Define @property and its attributes.
3989 * c-common.h: Define property attribute enum entries.
3990 (OBJC_IS_PATTR_KEYWORD): New.
3991 (objc_property_attribute_kind): New enum.
3992 Declare objc_set_property_attr (), objc_add_property_variable (),
3993 objc_build_getter_call () and objc_build_setter_call ().
3994 * stub-objc.c (objc_set_property_attr): New stub.
3995 (objc_add_property_variable): Likewise.
3996 (objc_build_getter_call): Likewise.
3997 (objc_build_setter_call) Likewise.
1b1562a5 3998
a1178b30
IS
39992010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4000
1b1562a5 4001 merge from FSF apple 'trunk' branch.
a1178b30
IS
4002 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4003
4004 Radar 3803157 (method attributes)
4005 * c-common.c (handle_deprecated_attribute): Recognize
4006 objc methods as valid declarations.
4007 * c-common.h: Declare objc_method_decl ().
1b1562a5 4008 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4009
a75bfaa6
JM
40102010-10-08 Joseph Myers <joseph@codesourcery.com>
4011
4012 * c-common.c (parse_optimize_options): Call
4013 decode_cmdline_options_to_array_default_mask before
4014 decode_options. Update arguments to decode_options.
4015 * c-common.h (c_common_init_options_struct): Declare.
4016 * c-opts.c (c_common_init_options_struct): New. Split out from
4017 c_common_init_options.
4018
f05b9d93
NP
40192010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4020
4021 Implemented fast enumeration for Objective-C.
4022 * c-common.h (objc_finish_foreach_loop): New.
4023 * stub-objc.c (objc_finish_foreach_loop): New.
4024
1ebe4b4f
JM
40252010-10-05 Joseph Myers <joseph@codesourcery.com>
4026
4027 * c-common.h (struct diagnostic_context): Don't declare here.
4028 (c_common_initialize_diagnostics): Declare using
4029 diagnostic_context typedef.
4030 * c-opts.c (c_common_handle_option): Pass global_dc to
4031 handle_generated_option.
4032
d4d24ba4
JM
40332010-10-04 Joseph Myers <joseph@codesourcery.com>
4034
4035 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4036 handle_generated_option.
4037
478a1c5b
ILT
40382010-10-03 Ian Lance Taylor <iant@google.com>
4039
4040 * c.opt (-fplan9-extensions): New option.
4041
82a1c2fe
FXC
40422010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4043
4044 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4045 Remove.
4046 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4047 of duplicating code.
4048
92902b1b
IS
40492010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4050
4051 * c-common.c: Add two new entries for @optional
4052 and @required keywords.
4053
4054 merge from FSF 'apple/trunk' branch.
4055 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4056
4057 Radar 4386773
4058 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4059 objective-c keywords.
4060 (objc_set_method_opt): New declaration.
4061 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 4062
46625112
JM
40632010-09-30 Joseph Myers <joseph@codesourcery.com>
4064
4065 * c-common.c (handle_optimize_attribute): Pass &global_options to
4066 cl_optimization_save and cl_optimization_restore.
4067 * c-opts.c (c_common_handle_option): Pass &global_options to
4068 handle_generated_option.
4069 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4070 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4071 &global_options to cl_optimization_restore.
4072
49b91f05
NP
40732010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4074
4075 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4076 Objective-C/Objective-C++ keywords.
4077
13ed556f 40782010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 4079
9faeb493
UB
4080 Merge from 'apple/trunk' branch on FSF servers.
4081
a6341d57
NP
4082 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4083
4084 Radar 4281748
4085 * c-common.h (objc_check_global_decl): New declaration.
4086 * stub-objc.c (objc_check_global_decl): New stub.
4087
f0036cca
JM
40882010-09-29 Joseph Myers <joseph@codesourcery.com>
4089
4090 * c.opt: Don't use VarExists.
4091
e3339d0f
JM
40922010-09-29 Joseph Myers <joseph@codesourcery.com>
4093
4094 * c-common.c (c_cpp_error): Update names of diagnostic_context
4095 members.
4096 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4097 cl_optimization members.
4098 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4099 sanitize_cpp_opts, finish_options): Update names of cpp_options
4100 members.
4101
1973201f
NP
41022010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4103
4104 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4105 (objc_is_reserved_word): Removed.
4106 * c-common.c: Updated comments.
4107 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4108 objc_is_reserved_word.
4109 * stub-objc.c (objc_is_reserved_word): Removed.
4110
f7e71da5
IS
41112010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4112
9faeb493 4113 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
4114 include attributes.
4115 (objc_start_method_definition): Likewise.
4116 (objc_build_keyword_decl): Likewise.
4117 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4118 (objc_start_method_definition): Likewise.
4119 (objc_build_keyword_decl): Likewise.
4120
c165dca7
IS
41212010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4122
4123 * c-common.h (objc_start_class_interface): Adjust prototype.
4124 (objc_start_category_interface): Likewise.
4125 (objc_start_protocol): Likewise.
4126 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4127 (objc_start_class_interface): Likewise.
4128 (objc_start_category_interface): Likewise.
4129
7458026b
ILT
41302010-09-27 Ian Lance Taylor <iant@google.com>
4131
4132 * c-common.c (c_common_attribute_table): Add no_split_stack.
4133 (handle_no_split_stack_attribute): New static function.
4134
b581b85b
NP
41352010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4136
9faeb493 4137 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
4138
4139 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4140
9faeb493 4141 Radar 4229905
b581b85b
NP
4142 * c-common.h (objc_have_common_type): New declaration.
4143 * stub-objc.c (objc_have_common_type): New stub.
4144
4145 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4146
4147 Radar 4154928
4148 * c-common.h (objc_common_type): New prototype.
9faeb493 4149 * stub-objc.c (objc_common_type): New stub.
b581b85b 4150
46a4da10
JH
41512010-09-24 Jan Hubicka <jh@suse.cz>
4152
4153 * c-common.c (handle_leaf_attribute): New function.
4154 (struct attribute_spec c_common_att): Add leaf.
4155
e200444e
JM
41562010-09-22 Joseph Myers <joseph@codesourcery.com>
4157
4158 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4159 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4160 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4161 -include-barrier, -include-directory, -include-directory=,
4162 -include-directory-after, -include-directory-after=,
4163 -include-prefix, -include-prefix=, -include-with-prefix,
4164 -include-with-prefix=, -include-with-prefix-after,
4165 -include-with-prefix-after=, -include-with-prefix-before,
4166 -include-with-prefix-before=, -no-integrated-cpp,
4167 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4168 -output=, -pedantic, -pedantic-errors, -preprocess,
4169 -print-missing-file-dependencies, -trace-includes, -traditional,
4170 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4171 -user-dependencies, -verbose, -write-dependencies,
4172 -write-user-dependencies, no-integrated-cpp, traditional): New.
4173
29a80ea6
NP
41742010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4175
4176 PR objc/23710
ac1fc2fc
NP
4177 * c-common.h (objc_start_method_definition): Return bool instead
4178 of void.
4179 * stub-objc.c (objc_start_method_definition): Return bool instead
4180 of void.
4181
41822010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4183
4184 PR objc/25965
4185 * c-common.h (objc_get_interface_ivars): New declaration.
4186 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 4187
de621752
ILT
41882010-09-15 Ian Lance Taylor <iant@google.com>
4189
4190 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 4191 messages. Remove period at end of warning message.
de621752 4192
ba885ec5
NS
41932010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4194
4195 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4196 (handle_alias_attribute): ... here.
4197 (handle_ifunc_attribute): New.
4198
c5ee1358
MM
41992010-09-06 Mark Mitchell <mark@codesourcery.com>
4200
4201 * c-common.h (do_warn_double_promotion): Declare.
4202 * c-common.c (do_warn_double_promotion): Define.
4203
0a0b3574
MM
42042010-09-05 Mark Mitchell <mark@codesourcery.com>
4205
4206 * c.opt (Wdouble-promotion): New.
4207
d1779886
JM
42082010-09-02 Joseph Myers <joseph@codesourcery.com>
4209
4210 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4211 fvtable-thunks, fxref): Mark no longer supported in help text.
4212
2d2bd949
JM
42132010-09-02 Joseph Myers <joseph@codesourcery.com>
4214
4215 * c.opt (Wimport, fall-virtual, falt-external-templates,
4216 fdefault-inline, fenum-int-equiv, fexternal-templates,
4217 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4218 fname-mangling-version-, fnew-abi, fnonnull-objects,
4219 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4220 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4221 applicable.
4222 (fhandle-exceptions): Mark with Alias and Warn.
4223 * c-opts.c (c_common_handle_option): Don't handle options marked
4224 as ignored.
4225
5de8299c
JM
42262010-09-02 Joseph Myers <joseph@codesourcery.com>
4227
4228 * c.opt (Wcomments, Werror-implicit-function-declaration,
4229 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4230 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4231 aliases.
4232 * c-common.c (option_codes): Use OPT_Wcomment instead of
4233 OPT_Wcomments.
4234 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4235 Don't handle options marked as aliases.
4236
0ceb0201
RG
42372010-08-25 Richard Guenther <rguenther@suse.de>
4238
4239 * c-common.c (c_common_get_alias_set): Remove special
4240 handling for pointers.
4241
ac47786e
NF
42422010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4243
4244 * c-common.c: Use FOR_EACH_VEC_ELT.
4245 * c-gimplify.c: Likewise.
4246 * c-pragma.c: Likewise.
4247
c878765b
JM
42482010-08-16 Joseph Myers <joseph@codesourcery.com>
4249
4250 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4251 RejectDriver.
4252 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4253 RejectDriver.
4254 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4255 instead of OPT_MDX and OPT_MMDX.
4256
603349bf
JM
42572010-08-16 Joseph Myers <joseph@codesourcery.com>
4258
4259 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4260
644fa7ac
JM
42612010-08-12 Joseph Myers <joseph@codesourcery.com>
4262
4263 * c.opt (MD, MMD): Change to MDX and MMDX.
4264 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4265
481e1176
JM
42662010-08-11 Joseph Myers <joseph@codesourcery.com>
4267
4268 * c-opts.c (c_common_handle_option): Call handle_generated_option
4269 instead of handle_option.
4270
ac8dc9f7
NF
42712010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4272
4273 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4274 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4275
4f8c876d
NF
42762010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4277
4278 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4279 (pending_redefine_extname): Change type to a VEC.
4280 (add_to_renaming_pragma_list): Update for new type of
4281 pending_redefine_extname.
ac8dc9f7 4282 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 4283
3b0c690e
AC
42842010-08-04 Arnaud Charlet <charlet@adacore.com>
4285
4286 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4287 visited.
4288 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4289 decide whether a type has already been declared/seen.
4290 Do not go to the original type.
4291 (dump_nested_types): New parameter forward.
4292 Generate forward declaration if needed and mark type as visited.
4293 (print_ada_declaration): Call dump_nested_types if not already done.
4294 Mark types as visited.
4295
1890bccc
JM
42962010-08-03 Joseph Myers <joseph@codesourcery.com>
4297
4298 * c.opt (-print-pch-checksum): Remove option.
4299 * c-opts.c (c_common_handle_option): Don't handle
4300 OPT_print_pch_checksum.
4301
5f20c657
JM
43022010-07-27 Joseph Myers <joseph@codesourcery.com>
4303
4304 * c-common.h (c_common_handle_option): Update prototype and return
4305 value type.
4306 * c-opts.c (c_common_handle_option): Update prototype and return
4307 value type. Update calls to handle_option and
4308 enable_warning_as_error.
4309
f551f80c
JJ
43102010-07-27 Jakub Jelinek <jakub@redhat.com>
4311
4312 PR c/45079
4313 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4314
61ff2bdc
JM
43152010-07-27 Joseph Myers <joseph@codesourcery.com>
4316
4317 * c-common.h (c_common_missing_argument): Remove.
4318 * c-opts.c (c_common_missing_argument): Remove.
4319 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4320 idirafter, imacros, include, isysroot, isystem, iquote): Add
4321 MissingArgError.
4322 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4323
7a9bf9a4
JM
43242010-07-27 Joseph Myers <joseph@codesourcery.com>
4325
4326 * c-common.h (c_common_option_lang_mask,
4327 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4328 New.
4329 (c_common_init_options): Update prototype.
4330 * c-opts.c (c_common_option_lang_mask): New.
4331 (c_common_initialize_diagnostics): Split out of
4332 c_common_init_options.
4333 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4334 New.
4335 (c_common_init_options): Update prototype. Use decoded options in
4336 search for -lang-asm.
4337
910ad8de
NF
43382010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4339
4340 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4341 * c-format.c: Likewise.
4342
718f9c0f
MLI
43432010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4344
4345 * c-common.h: Include diagnostic-core.h. Error if already
4346 included.
4347 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4348
4d451982
MLI
43492010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4350
4351 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
4352 Do not include expr.h
4353 (vector_mode_valid_p): Move here.
4354
119fe915
SB
43552010-06-21 DJ Delorie <dj@redhat.com>
4356
4357 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4358 allow these pragmas anywhere.
4359
43602010-06-14 Jakub Jelinek <jakub@redhat.com>
4361
4362 PR bootstrap/44509
4363 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4364 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4365 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4366 ggc_strdup instead of xstrdup.
4367
43682010-06-10 Jakub Jelinek <jakub@redhat.com>
4369
4370 * c-cppbuiltin.c: Include cpp-id-data.h.
4371 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4372 (lazy_hex_fp_value): New function.
4373 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4374
6662d794
MLI
43752010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4376
4377 * c-gimplify.c: Do not include tree-flow.h
4378
38f8b050
JR
43792010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4380
4381 PR other/44034
4382 * c-common.c: Rename targetm member:
4383 targetm.enum_va_list -> targetm.enum_va_list_p
4384
9589f23e
AS
43852010-06-28 Anatoly Sokolov <aesok@post.ru>
4386
4387 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4388
3b06d379
SB
43892010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4390
4391 * c-cppbuiltin.c: Do not include except.h.
4392
d166d4c3
AK
43932010-06-24 Andi Kleen <ak@linux.intel.com>
4394
9faeb493
UB
4395 * c-common.c (warn_for_omitted_condop): New.
4396 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 4397
70cb8be6
JM
43982010-06-21 Joseph Myers <joseph@codesourcery.com>
4399
4400 * c.opt (lang-objc): Remove.
4401 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4402
a4c97feb
JR
44032010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4404
4405 * c-opts.c: Include "tm_p.h".
4406
6e2f1956
JM
44072010-06-20 Joseph Myers <joseph@codesourcery.com>
4408
4409 * c-common.c (parse_optimize_options): Update call to
4410 decode_options.
4411
bc87224e
NF
44122010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4413
4414 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4415 new type of types_used_by_cur_var_decl.
4416
b49cf425
JR
44172010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4418
4419 PR bootstrap/44512
4420 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4421 for C++ standard compliance.
4422
59f9c2ed
JM
44232010-06-16 Jason Merrill <jason@redhat.com>
4424
4425 * c.opt: Add -Wnoexcept.
4426
33766b66
RG
44272010-06-16 Richard Guenther <rguenther@suse.de>
4428
4429 PR c/44555
4430 * c-common.c (c_common_truthvalue_conversion): Remove
4431 premature and wrong optimization concering ADDR_EXPRs.
4432
eff7e30c
AC
44332010-06-15 Arnaud Charlet <charlet@adacore.com>
4434
4435 * c-ada-spec.c (dump_sloc): Remove column info.
4436 (is_simple_enum): New function.
4437 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4438 enum types when relevant.
4439
6312e84d
MLI
44402010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4441
9faeb493 4442 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
4443 location.
4444
1cb42611
JM
44452010-06-10 Joseph Myers <joseph@codesourcery.com>
4446
4447 * c-opts.c (c_common_handle_option): Don't handle
4448 OPT_fshow_column.
4449
a9429e29
LB
44502010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4451
4452 * c-pragma.c (push_alignment): Use typed GC allocation.
4453 (handle_pragma_push_options): Likewise.
4454
4455 * c-common.c (parse_optimize_options): Likewise.
4456
4457 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4458 option.
4459
5498f011
JM
44602010-06-07 Joseph Myers <joseph@codesourcery.com>
4461
4462 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4463 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4464 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4465 flag_signed_bitfields, warn_strict_null_sentinel,
4466 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4467 flag_gen_declaration, flag_no_gnu_keywords,
4468 flag_implement_inlines, flag_implicit_templates,
4469 flag_implicit_inline_templates, flag_optional_diags,
4470 flag_elide_constructors, flag_default_inline, flag_rtti,
4471 flag_conserve_space, flag_access_control, flag_check_new,
4472 flag_new_for_scope, flag_weak, flag_working_directory,
4473 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4474 flag_enforce_eh_specs, flag_threadsafe_statics,
4475 flag_pretty_templates): Remove.
4476 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4477 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4478 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4479 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4480 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4481 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4482 flag_no_gnu_keywords, flag_implement_inlines,
4483 flag_implicit_templates, flag_implicit_inline_templates,
4484 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4485 flag_rtti, flag_conserve_space, flag_access_control,
4486 flag_check_new, flag_new_for_scope, flag_weak,
4487 flag_working_directory, flag_use_cxa_atexit,
4488 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4489 flag_threadsafe_statics, flag_pretty_templates,
4490 warn_strict_null_sentinel): Remove.
4491 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4492 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4493 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4494 fimplicit-inline-templates, fimplicit-templates,
4495 flax-vector-conversions, fms-extensions, fnil-receivers,
4496 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4497 frtti, fshort-double, fshort-enums, fshort-wchar,
4498 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4499 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4500 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4501 gen-decls, undef): Use Var.
4502 (fdefault-inline, foptional-diags): Document as doing nothing.
4503 * c-opts.c (c_common_handle_option): Remove cases for options now
4504 using Var. Mark ignored options as such.
4505
39dabefd
SB
45062010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4507
9faeb493 4508 * c-common.c: Moved to here from parent directory.
39dabefd
SB
4509 * c-common.def: Likewise.
4510 * c-common.h: Likewise.
4511 * c-cppbuiltin.c: Likewise.
4512 * c-dump.c: Likewise.
4513 * c-format.c: Likewise.
4514 * c-format.h : Likewise.
4515 * c-gimplify.c: Likewise.
4516 * c-lex.c: Likewise.
4517 * c-omp.c: Likewise.
4518 * c.opt: Likewise.
4519 * c-opts.c: Likewise.
4520 * c-pch.c: Likewise.
4521 * c-ppoutput.c: Likewise.
4522 * c-pragma.c: Likewise.
4523 * c-pragma.h: Likewise.
4524 * c-pretty-print.c: Likewise.
4525 * c-pretty-print.h: Likewise.
4526 * c-semantics.c: Likewise.
4527 * stub-objc.c: Likewise.
4528
4529 * c-common.c: Include gt-c-family-c-common.h.
4530 * c-pragma.c: Include gt-c-family-c-pragma.h.
4531\f
23a5b65a 4532Copyright (C) 2010-2014 Free Software Foundation, Inc.
39dabefd
SB
4533
4534Copying and distribution of this file, with or without modification,
4535are permitted in any medium without royalty provided the copyright
4536notice and this notice are preserved.