]>
Commit | Line | Data |
---|---|---|
7311d7c1 | 1 | 2014-04-22 Jakub Jelinek <jakub@redhat.com> |
2 | ||
3 | PR sanitizer/60275 | |
4 | * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap () | |
5 | if flag_sanitize_undefined_trap_on_error. | |
6 | (ubsan_instrument_division, ubsan_instrument_shift, | |
7 | ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort () | |
8 | if !flag_sanitize_recover. | |
9 | ||
c1917557 | 10 | 2014-04-22 Marc Glisse <marc.glisse@inria.fr> |
11 | ||
12 | PR libstdc++/43622 | |
13 | * c-common.c (registered_builtin_types): Make non-static. | |
14 | * c-common.h (registered_builtin_types): Declare. | |
15 | ||
b2ca6510 | 16 | 2014-04-14 Richard Biener <rguenther@suse.de> |
17 | Marc Glisse <marc.glisse@inria.fr> | |
18 | ||
19 | PR c/60819 | |
20 | * c-common.c (convert_vector_to_pointer_for_subscript): Properly | |
21 | apply may-alias the scalar pointer type when applicable. | |
22 | ||
855372a3 | 23 | 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com> |
24 | ||
25 | PR middle-end/60467 | |
26 | * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL | |
27 | as possible argument for Cilk_spawn. | |
28 | ||
4012a986 | 29 | 2014-04-11 Tobias Burnus <burnus@net-b.de> |
30 | ||
31 | PR c/60194 | |
32 | * c.opt (Wformat-signedness): Add | |
33 | * c-format.c(check_format_types): Use it. | |
34 | ||
0d284870 | 35 | 2014-04-11 Jason Merrill <jason@redhat.com> |
36 | ||
37 | PR c++/57926 | |
38 | * c-common.c (sync_resolve_size, get_atomic_generic_size): Call | |
39 | default_conversion for an array argument. | |
40 | ||
a34c1231 | 41 | 2014-04-08 Marek Polacek <polacek@redhat.com> |
42 | ||
43 | PR sanitizer/60745 | |
44 | * c-ubsan.c: Include asan.h. | |
45 | (ubsan_instrument_return): Call initialize_sanitizer_builtins. | |
46 | ||
a35a8e18 | 47 | 2014-04-03 Nathan Sidwell <nathan@codesourcery.com> |
48 | ||
49 | * c.opt (Wnon-virtual-dtor): Auto set when Weffc++. | |
50 | ||
b23e42b6 | 51 | 2014-04-02 Marek Polacek <polacek@redhat.com> |
52 | ||
53 | * c-common.h (c_expand_expr): Remove declaration. | |
54 | ||
5a672e62 | 55 | 2014-03-28 Jakub Jelinek <jakub@redhat.com> |
56 | ||
57 | PR c++/60689 | |
58 | * c-common.c (add_atomic_size_parameter): When creating new | |
59 | params vector, push the size argument first. | |
60 | ||
d4d068c0 | 61 | 2014-03-26 Jakub Jelinek <jakub@redhat.com> |
62 | ||
63 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
64 | ubsan_instrument_vla, ubsan_instrument_return): Adjust | |
65 | ubsan_create_data callers. | |
66 | ||
446bdf5f | 67 | 2014-03-22 Jakub Jelinek <jakub@redhat.com> |
68 | ||
69 | PR debug/60603 | |
70 | * c-opts.c (c_finish_options): Restore cb_file_change call to | |
71 | <built-in>. | |
72 | ||
8895f0a3 | 73 | 2014-03-13 Jakub Jelinek <jakub@redhat.com> |
74 | ||
75 | PR middle-end/36282 | |
76 | * c-pragma.c (apply_pragma_weak): Only look at | |
77 | TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if | |
78 | DECL_ASSEMBLER_NAME_SET_P (decl). | |
79 | (maybe_apply_pending_pragma_weaks): Exit early if | |
80 | vec_safe_is_empty (pending_weaks) rather than only when | |
81 | !pending_weaks. | |
82 | (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P, | |
83 | set assembler name back to NULL afterwards. | |
84 | ||
7a5da2cd | 85 | 2014-03-11 Jason Merrill <jason@redhat.com> |
86 | ||
87 | * c.opt: Add -std=gnu++14. | |
88 | ||
95093889 | 89 | 2014-03-11 Ian Bolton <ian.bolton@arm.com> |
90 | ||
91 | * c-opts.c (c_common_post_options): Don't override | |
92 | -ffp-contract=fast if unsafe-math-optimizations is on. | |
93 | ||
c9a24b37 | 94 | 2014-03-08 Paulo Matos <paulo@matos-sorge.com> |
95 | ||
96 | * c.opt: Enable LTO FE for fshort-double. | |
97 | ||
3f6dba6e | 98 | 2014-03-07 Jason Merrill <jason@redhat.com> |
99 | ||
100 | * c.opt: Add -std=c++14. | |
101 | ||
3bfdc94f | 102 | 2014-03-06 Marek Polacek <polacek@redhat.com> |
103 | ||
104 | PR c/60197 | |
105 | * cilk.c (contains_cilk_spawn_stmt): New function. | |
106 | (contains_cilk_spawn_stmt_walker): Likewise. | |
107 | (recognize_spawn): Give error on invalid use of _Cilk_spawn. | |
108 | * c-common.h (contains_cilk_spawn_stmt): Add declaration. | |
109 | ||
8b3a6a4c | 110 | 2014-03-03 Jakub Jelinek <jakub@redhat.com> |
111 | ||
112 | * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD. | |
113 | (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD | |
114 | even when flag_preprocess_only. | |
115 | ||
734ec290 | 116 | 2014-02-26 Jason Merrill <jason@redhat.com> |
117 | ||
118 | PR c++/59231 | |
119 | PR c++/11586 | |
120 | * c-common.c (shorten_compare): Don't check | |
121 | c_inhibit_evaluation_warnings. | |
122 | ||
81aec8b8 | 123 | 2014-02-19 Jakub Jelinek <jakub@redhat.com> |
124 | ||
d1081017 | 125 | PR c/37743 |
126 | * c-common.c (c_common_nodes_and_builtins): When initializing | |
127 | c_uint{16,32,64}_type_node, also set corresponding | |
128 | uint{16,32,64}_type_node to the same value. | |
129 | ||
81aec8b8 | 130 | PR c++/60267 |
131 | * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma | |
132 | for PRAGMA_IVDEP if flag_preprocess_only. | |
133 | ||
312243bb | 134 | 2014-02-12 Jakub Jelinek <jakub@redhat.com> |
135 | ||
136 | PR c/60101 | |
137 | * c-common.c (merge_tlist): If copy is true, call new_tlist, | |
138 | if false, add ADD itself, rather than vice versa. | |
139 | (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero | |
140 | copy. For SAVE_EXPR, only call merge_tlist once. | |
141 | ||
237e78b1 | 142 | 2014-02-08 Jakub Jelinek <jakub@redhat.com> |
143 | ||
144 | PR middle-end/60092 | |
145 | * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p | |
146 | and tree_to_uhwi. | |
147 | (handle_alloc_align_attribute, handle_assume_aligned_attribute): New | |
148 | functions. | |
149 | (c_common_attribute_table): Add alloc_align and assume_aligned | |
150 | attributes. | |
151 | ||
76fdceeb | 152 | 2014-02-06 Marek Polacek <polacek@redhat.com> |
153 | ||
154 | PR c/60087 | |
155 | * c-common.c (warn_for_sign_compare): Call warning_at with location | |
156 | instead of warning. | |
157 | ||
4a4dea42 | 158 | 2014-02-05 Marek Polacek <polacek@redhat.com> |
159 | ||
160 | PR c/53123 | |
161 | * c-omp.c (c_finish_omp_atomic): Remove unreachable return | |
162 | statement. | |
163 | ||
ec704957 | 164 | 2014-02-04 Marek Polacek <polacek@redhat.com> |
165 | ||
166 | PR c/60036 | |
167 | * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or | |
168 | SAVE_EXPR. | |
169 | ||
caf62483 | 170 | 2014-02-03 Marc Glisse <marc.glisse@inria.fr> |
171 | ||
172 | PR c++/53017 | |
173 | PR c++/59211 | |
174 | * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute, | |
175 | handle_vector_size_attribute, handle_nonnull_attribute): Call | |
176 | default_conversion on the attribute argument. | |
177 | (handle_nonnull_attribute): Increment the argument number. | |
178 | ||
ec761d5a | 179 | 2014-01-31 Marek Polacek <polacek@redhat.com> |
180 | ||
181 | PR c/59963 | |
182 | * c-common.c (add_atomic_size_parameter): Pass vNULL to | |
183 | build_function_call_vec. | |
184 | (resolve_overloaded_builtin): Likewise. | |
185 | * c-common.h (build_function_call_vec): Adjust declaration. | |
186 | ||
22a75734 | 187 | 2014-01-30 Marek Polacek <polacek@redhat.com> |
188 | ||
189 | PR c/59940 | |
190 | * c-common.h (unsafe_conversion_p): Adjust declaration. | |
191 | (warnings_for_convert_and_check): Likewise. | |
192 | (convert_and_check): Likewise. | |
193 | * c-common.c (unsafe_conversion_p): Add location parameter. Call | |
194 | expansion_point_location_if_in_system_header on it. | |
195 | (warnings_for_convert_and_check): Add location parameter. Call | |
196 | expansion_point_location_if_in_system_header on it. Use it. | |
197 | (convert_and_check): Add location parameter. Use it. | |
198 | (conversion_warning): Likewise. | |
199 | (c_add_case_label): Adjust convert_and_check calls. | |
200 | (scalar_to_vector): Adjust unsafe_conversion_p calls. | |
201 | ||
a89e6c15 | 202 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
203 | ||
204 | * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with | |
205 | flag_cilkplus. | |
206 | * c-pragma.c (init_pragma): Likewise. | |
207 | * c.opt: Likewise. | |
208 | ||
2623625f | 209 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
210 | ||
211 | PR c/59846 | |
212 | * c-common.c (shorten_compare): Add location_t parameter. | |
213 | * c-common.h (shorten_binary_op): Adjust declaration. | |
214 | ||
46da3601 | 215 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
216 | ||
217 | PR c/58346 | |
218 | * c-common.c (pointer_to_zero_sized_aggr_p): New function. | |
219 | * c-common.h: Declare it. | |
220 | ||
c9743c6a | 221 | 2014-01-20 Eric Botcazou <ebotcazou@adacore.com> |
222 | ||
223 | * c-ada-spec.h (dump_ada_specs): Revert prototype change. | |
224 | * c-ada-spec.c (dump_ads): Likewise. | |
225 | (cpp_check): Likewise. | |
226 | (dump_ada_specs): Likewise. | |
227 | ||
228 | 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com> | |
36e33c6a | 229 | |
230 | PR c++/49718 | |
231 | * c-common.c (handle_no_instrument_function_attribute): Allow | |
232 | no_instrument_function attribute in class member | |
233 | definition/declaration. | |
234 | ||
1248c663 | 235 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
236 | ||
237 | PR c/58943 | |
238 | * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around | |
239 | build_modify_expr with non-NOP_EXPR opcode. Handle return from it | |
240 | being COMPOUND_EXPR. | |
241 | (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first | |
242 | operand a SAVE_EXPR and second MODIFY_EXPR. | |
243 | ||
6e5c480b | 244 | 2014-01-09 Jakub Jelinek <jakub@redhat.com> |
245 | ||
246 | PR target/58115 | |
247 | * c-pch.c (c_common_write_pch): Call | |
248 | prepare_target_option_nodes_for_pch. | |
249 | ||
3aea1f79 | 250 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
251 | ||
252 | Update copyright years | |
253 | ||
e4f22041 | 254 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
255 | ||
256 | * array-notation-common.c, c-cilkplus.c: Use the standard form for | |
257 | the copyright notice. | |
258 | ||
7fb0fe24 | 259 | 2013-12-28 Eric Botcazou <ebotcazou@adacore.com> |
260 | ||
261 | * c-ada-spec.c (print_constructor): New function. | |
262 | (print_destructor): Retrieve the origin of the destructor. | |
263 | (print_ada_declaration): Revamp handling of constructors/destructors. | |
264 | ||
468088ac | 265 | 2013-12-23 Stuart Hastings <stuart@apple.com> |
266 | Bill Maddox <maddox@google.com> | |
267 | Jason Merrill <jason@redhat.com> | |
268 | ||
269 | * c.opt: Add -fdeclone-ctor-dtor. | |
270 | * c-opts.c (c_common_post_options): Default to on iff -Os. | |
271 | ||
74acc703 | 272 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
273 | ||
274 | * c-common.c (c_common_attribute_table): Added "cilk simd function" | |
275 | attribute. | |
276 | * c-pragma.h (enum pragma_cilk_clause): Remove. | |
277 | (enum pragma_omp_clause): Added the following fields: | |
278 | PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK, | |
279 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE, | |
280 | PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE, | |
281 | PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE, | |
282 | PRAGMA_CILK_CLAUSE_UNIFORM. | |
283 | ||
284 | ||
433e804e | 285 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
286 | ||
287 | * cilk.c (cilk_outline): Made this function non-static. | |
288 | (gimplify_cilk_spawn): Removed pre_p and post_p arguments. | |
289 | (create_cilk_wrapper): Added a new parameter: a function pointer. | |
290 | (c_install_body_w_frame_cleanup): Remove | |
291 | (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case. | |
292 | * c-common.h (cilk_outline): New prototype. | |
293 | (gimplify_cilk_spawn): Removed two parameters. | |
294 | (cilk_install_body_with_frame_cleanup): New prototype. | |
295 | * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and | |
296 | CILK_SPAWN_STMT case. | |
297 | ||
5bcc7e60 | 298 | 2013-12-11 Bernd Schmidt <bernds@codesourcery.com> |
299 | ||
e66325ea | 300 | * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR. |
301 | ||
5bcc7e60 | 302 | * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE. |
303 | (int_array_type_node): Remove. | |
304 | * c-common.c (c_common_nodes_and_builtins): Don't build it. | |
305 | ||
0b26ec77 | 306 | 2013-12-05 Marek Polacek <polacek@redhat.com> |
307 | ||
308 | PR c/52023 | |
309 | * c-common.c (c_sizeof_or_alignof_type): Move a declaration into | |
310 | [ADJUST_FIELD_ALIGN]. | |
311 | ||
a179a7dc | 312 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
313 | ||
314 | PR c/52023 | |
315 | * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof | |
316 | and check field alignment if set. | |
317 | * c-common.h (c_sizeof_or_alignof_type): Update prototype. | |
318 | (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type. | |
319 | ||
137559b2 | 320 | 2013-12-04 Jakub Jelinek <jakub@redhat.com> |
321 | Marek Polacek <polacek@redhat.com> | |
322 | ||
323 | * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow | |
324 | sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS. | |
325 | ||
648fd348 | 326 | 2013-11-29 H.J. Lu <hongjiu.lu@intel.com> |
327 | ||
328 | PR c/59309 | |
329 | * cilk.c (gimplify_cilk_spawn): Properly handle function without | |
330 | arguments. | |
331 | ||
253e1cae | 332 | 2013-11-29 Jakub Jelinek <jakub@redhat.com> |
333 | ||
334 | PR c/59280 | |
335 | * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE, | |
336 | goto invalid. If it is error_mark_node, don't issue further | |
337 | diagnostics. | |
338 | ||
3e398f5b | 339 | 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com> |
340 | ||
341 | * c.opt (Wopenmp-simd): New. | |
342 | ||
020bc656 | 343 | 2013-11-22 Jakub Jelinek <jakub@redhat.com> |
344 | ||
345 | * c-ubsan.h (ubsan_instrument_return): New prototype. | |
346 | * c-ubsan.c (ubsan_instrument_return): New function. | |
347 | ||
bc61cadb | 348 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
349 | ||
350 | * c-common.c: Add required include files from gimple.h. | |
351 | * c-gimplify.c: Likewise | |
352 | * cilk.c: Likewise | |
353 | ||
3df42822 | 354 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
355 | ||
356 | * c-common.c (unsafe_conversion_p): Remove use of | |
357 | EXPR_LOC_OR_HERE macro. | |
358 | (conversion_warning): Likewise. | |
359 | (warnings_for_convert_and_check): Likewise. | |
360 | (warn_for_collisions_1): Likewise. | |
361 | (shorten_compare): Likewise, and remove use of in_system_header | |
362 | macro, using the location from the former. | |
363 | * c-lex.c (dump_one_header): Remove use of input_filename macro. | |
364 | (cb_def_pragma): Remove use of in_system_header macro. | |
365 | (lex_string): Likewise. | |
366 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
367 | ||
8c53c46c | 368 | 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com> |
369 | Mike Stump <mikestump@comcast.net> | |
370 | Richard Sandiford <rdsandiford@googlemail.com> | |
371 | ||
372 | * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi | |
373 | instead of TREE_INT_CST_LOW, in cases where there is a protecting | |
374 | tree_fits_shwi_p or tree_fits_uhwi_p. | |
375 | (dump_generic_ada_node): Likewise. | |
376 | * c-format.c (check_format_arg): Likewise. | |
377 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
378 | ||
5200ef07 | 379 | 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com> |
380 | ||
381 | * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi. | |
382 | ||
ca9d7d74 | 383 | 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com> |
384 | ||
385 | PR c/53001 | |
386 | * c-common.c (unsafe_conversion_p): Make this function | |
387 | return an enumeration with more detail. | |
388 | (conversion_warning): Use the new return type of | |
389 | unsafe_conversion_p to separately warn either about conversions | |
390 | that lower floating point number precision or about the other | |
391 | kinds of conversions. | |
392 | * c-common.h (enum conversion_safety): New enumeration. | |
393 | (unsafe_conversion_p): switching return type to | |
394 | conversion_safety enumeration. | |
395 | * c.opt: Adding new warning -Wfloat-conversion and | |
396 | enabling it with -Wconversion. | |
397 | ||
0391a567 | 398 | 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net> |
399 | ||
400 | * c-opts.c: Include plugin.h. | |
401 | (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE. | |
402 | ||
19b928d9 | 403 | 2013-11-19 Marek Polacek <polacek@redhat.com> |
404 | ||
405 | * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data | |
406 | call. | |
407 | (ubsan_instrument_shift): Likewise. | |
408 | (ubsan_instrument_vla): Likewise. | |
409 | ||
aa59f000 | 410 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
411 | ||
412 | * c-common.c (convert_vector_to_pointer_for_subscript): Remove | |
413 | cast to unsigned type. | |
414 | ||
08f817b3 | 415 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
416 | ||
417 | * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than | |
418 | tree_low_cst. | |
419 | (complete_array_type): Update comment to refer to tree_to_[su]hwi | |
420 | rather than tree_low_cst. | |
421 | ||
6a0712d4 | 422 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
423 | ||
424 | * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with | |
425 | tree_to_uhwi throughout. | |
426 | ||
fcb97e84 | 427 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
428 | ||
429 | * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace | |
430 | tree_low_cst (..., 0) with tree_to_shwi throughout. | |
431 | ||
cd4547bf | 432 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
433 | ||
434 | * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace | |
435 | host_integerp (..., 1) with tree_fits_uhwi_p throughout. | |
436 | ||
35ec552a | 437 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
438 | ||
439 | * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace | |
440 | host_integerp (..., 0) with tree_fits_shwi_p throughout. | |
441 | ||
f2697631 | 442 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
443 | ||
444 | * c-cilkplus.c: New file. | |
445 | * c-common.c (readonly_error): Add location argument. | |
446 | * c-common.h (readonly_error): Same. | |
447 | (c_finish_cilk_clauses): Protoize. | |
448 | (c_check_cilk_loop): Same. | |
449 | c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes. | |
450 | Do not fail on error_mark_node. | |
451 | Abstract increment canonicalization to here... | |
452 | (c_omp_for_incr_canonicalize_ptr): New. | |
453 | c-pragma.c (init_pragma): Register "simd" pragma. | |
454 | c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD. | |
455 | (enum pragma_cilk_clause): New. | |
456 | ||
0aa8c34e | 457 | 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com> |
458 | ||
459 | * c-pretty-print.c (pp_c_character_constant): Remove unnecessary | |
460 | wchar_type and host_integerp checks. | |
461 | ||
e795d6e1 | 462 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
463 | ||
464 | * c-common.c: Likewise. | |
465 | * c-gimplify.c: Likewise. | |
466 | * cilk.c: Likewise. | |
467 | ||
9ed99284 | 468 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
469 | ||
470 | * c-common.c: Include fold-const.h. | |
471 | Include stor-layout.h. | |
472 | Include calls.h. | |
473 | Include stringpool.h. | |
474 | Include attribs.h. | |
475 | Include varasm.h. | |
476 | Include trans-mem.h. | |
477 | * c-cppbuiltin.c: Include stor-layout.h. | |
478 | Include stringpool.h. | |
479 | * c-format.c: Include stringpool.h. | |
480 | * c-lex.c: Include stringpool.h. | |
481 | Include stor-layout.h. | |
482 | * c-pragma.c: Include stringpool.h. | |
483 | Include attribs.h. | |
484 | Include varasm.h. | |
485 | Include gcc-symtab.h. | |
486 | * c-pretty-print.c: Include stor-layout.h. | |
487 | Include attribs.h. | |
488 | * cilk.c: Include stringpool.h. | |
489 | Include calls.h. | |
490 | ||
4fba5eb9 | 491 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
492 | ||
493 | * c-common.h (enum rid): Add RID_AUTO_TYPE. | |
494 | * c-common.c (c_common_reswords): Add __auto_type. | |
495 | (keyword_begins_type_specifier): Handle RID_AUTO_TYPE. | |
496 | ||
a8783bee | 497 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
498 | ||
e795d6e1 | 499 | * c-common.c: Include gimplify.h. |
500 | * c-gimplify.c: Likewise. | |
501 | * cilk.c: Likewise. | |
502 | * c-omp.c: Include gimple-expr.h instead of gimple.h. | |
503 | * c-ubsan.c: Don't include gimple.h. | |
a8783bee | 504 | |
d184e0c0 | 505 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
506 | ||
507 | * c-common.c (c_common_reswords): Add _Thread_local. | |
508 | ||
a056826c | 509 | 2013-11-09 Joseph Myers <joseph@codesourcery.com> |
510 | ||
511 | * c-common.c (atomic_size_supported_p): New function. | |
512 | (resolve_overloaded_atomic_exchange) | |
513 | (resolve_overloaded_atomic_compare_exchange) | |
514 | (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): | |
515 | Use it instead of comparing size with a local list of sizes. | |
516 | ||
b560fabd | 517 | 2013-11-07 Andrew MacLeod <amacleod@redhat.com> |
518 | Joseph Myers <joseph@codesourcery.com> | |
519 | ||
520 | * c-common.h (enum rid): Add RID_ATOMIC. | |
521 | * c-common.c (c_common_reswords): Add _Atomic. | |
522 | (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument. | |
523 | (keyword_is_type_qualifier): Accept RID_ATOMIC. | |
524 | * c-format.c (check_format_types): Check for extra _Atomic | |
525 | qualifiers in format argument. | |
526 | * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier. | |
527 | (pp_c_type_qualifier_list): Mention _Atomic in comment. | |
528 | ||
5b1a0622 | 529 | 2013-11-06 Tobias Burnus <burnus@net-b.de> |
530 | ||
531 | * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME. | |
532 | ||
4f8f4cb8 | 533 | 2013-11-06 Joseph Myers <joseph@codesourcery.com> |
534 | ||
535 | * c-opts.c (c_common_post_options): Set -ffp-contract=off in C | |
536 | standards modes. | |
537 | * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast | |
538 | to mean lack of IEEE 754 support. | |
539 | ||
9148bda3 | 540 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
541 | ||
542 | * c.opt (-Wdate-time): New option | |
543 | * c-opts.c (sanitize_cpp_opts): Pass on to libcpp. | |
544 | ||
08c5f4d5 | 545 | 2013-11-05 Joseph Myers <joseph@codesourcery.com> |
546 | ||
547 | * c-cppbuiltin.c (cpp_iec_559_value): Test | |
548 | flag_excess_precision_cmdline not flag_excess_precision. | |
549 | ||
c630ef93 | 550 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
551 | ||
552 | * c.opt (fopenmp-simd): New option. | |
553 | * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ... | |
554 | (omp_pragmas): ... this new struct. | |
555 | (c_pp_lookup_pragma): Also walk omp_pragmas. | |
556 | (init_pragma): Init pragmas for -fopenmp-simd. | |
557 | ||
7354a89b | 558 | 2013-11-04 Marek Polacek <polacek@redhat.com> |
559 | ||
560 | PR c++/58979 | |
561 | * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case. | |
562 | ||
4c866b9b | 563 | 2013-11-04 Joseph Myers <joseph@codesourcery.com> |
564 | ||
565 | * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value): | |
566 | New functions. | |
567 | (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX. | |
568 | ||
e2a6a333 | 569 | 2013-11-04 Eric Botcazou <ebotcazou@adacore.com> |
570 | ||
571 | * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL. | |
572 | (dump_ada_specs): Adjust prototype of second callback. | |
573 | * c-ada-spec.c (cpp_check): New global variable. | |
574 | (dump_ada_nodes): Remove cpp_check parameter and do not pass it down. | |
575 | (print_generic_ada_decl): Likewise. | |
576 | (has_static_fields): Change return type to bool and add guard. | |
577 | (has_nontrivial_methods): New predicate. | |
578 | (is_tagged_type): Change return type to bool. | |
579 | (separate_class_package): Call has_nontrivial_methods. | |
580 | (pp_ada_tree_identifier): Minor tweaks. | |
581 | (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node. | |
582 | (dump_ada_array_domains): Likewise. | |
583 | (dump_ada_array_type): Likewise. | |
584 | (dump_template_types): Remove cpp_check parameter and do not pass it to | |
585 | dump_generic_ada_node. | |
586 | (dump_ada_template): Likewise. | |
587 | (dump_generic_ada_node): Remove cpp_check parameter and do not pass it | |
588 | recursively. | |
589 | (print_ada_methods): Change return type to integer. Remove cpp_check | |
590 | parameter and do not pass it down. | |
591 | (dump_nested_types): Remove cpp_check parameter and do not pass it to | |
592 | dump_generic_ada_node. | |
593 | (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before | |
594 | accessing methods. | |
595 | (print_ada_struct_decl): Remove cpp_check parameter and do not pass it | |
596 | down. Use has_nontrivial_methods to recognize C++ classes. Use return | |
597 | value of print_ada_methods. | |
598 | (dump_ads): Rename cpp_check parameter to check and adjust prototype. | |
599 | Set cpp_check to it before invoking dump_ada_nodes. | |
600 | (dump_ada_specs): Likewise. | |
601 | ||
2c4c3477 | 602 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
603 | ||
604 | * c-ubsan.c: Don't include hash-table.h. | |
605 | (ubsan_instrument_vla): New function. | |
606 | * c-ubsan.h: Declare it. | |
607 | ||
452659af | 608 | 2013-10-31 David Malcolm <dmalcolm@redhat.com> |
609 | ||
610 | Automated part of renaming of symtab_node_base to symtab_node. | |
611 | ||
612 | Patch autogenerated by rename_symtab.py from | |
613 | https://github.com/davidmalcolm/gcc-refactoring-scripts | |
614 | revision 58bb219cc090b2f4516a9297d868c245495ee622 | |
615 | ||
616 | * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename | |
617 | symtab_node_base to symtab_node. | |
618 | ||
4d6f7dd4 | 619 | 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net> |
620 | ||
621 | Implement C++14 digit separators. | |
622 | * c-lex.c (interpret_float): Remove digit separators from scratch string | |
623 | before building real literal. | |
624 | ||
06cfe805 | 625 | 2013-10-30 Jakub Jelinek <jakub@redhat.com> |
626 | ||
627 | * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC. | |
628 | ||
d037099f | 629 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
630 | ||
631 | * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync | |
632 | fields. | |
633 | (c_define_builtins): Called cilk_init_builtins if Cilk Plus is | |
634 | enabled. | |
635 | * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC. | |
636 | (insert_cilk_frame): New prototype. | |
637 | (cilk_init_builtins): Likewise. | |
638 | (gimplify_cilk_spawn): Likewise. | |
639 | (c_cilk_install_body_w_frame_cleanup): Likewise. | |
640 | (cilk_detect_spawn_and_unwrap): Likewise. | |
641 | (cilk_set_spawn_marker): Likewise. | |
642 | (build_cilk_sync): Likewise. | |
643 | (build_cilk_spawn): Likewise. | |
644 | * cilk.c: New file. | |
645 | ||
02774f2d | 646 | 2013-10-29 David Malcolm <dmalcolm@redhat.com> |
647 | ||
648 | Patch autogenerated by refactor_symtab.py from | |
649 | https://github.com/davidmalcolm/gcc-refactoring-scripts | |
650 | revision 58bb219cc090b2f4516a9297d868c245495ee622 | |
651 | ||
652 | * c-gimplify.c (c_genericize): Update for conversion of symtab types | |
653 | to a true class hierarchy. | |
654 | * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise. | |
655 | ||
31fe10fd | 656 | 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com> |
657 | ||
658 | * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend. | |
659 | ||
b1c06ff9 | 660 | 2013-10-26 Jeff Law <law@redhat.com> |
661 | ||
662 | * c-family/c-common.c (c_define_builtins): Remove mudflap support. | |
663 | * c-family/c.opt: Ignore and warn for mudflap options. | |
664 | ||
48a972c8 | 665 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
4644b593 | 666 | |
667 | PR other/33426 | |
668 | * c-pragma.c (init_pragma) Add #pragma ivdep handling. | |
669 | * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP. | |
670 | ||
546a04b1 | 671 | 2013-10-23 Jason Merrill <jason@redhat.com> |
672 | ||
673 | * c-format.c (gcc_cxxdiag_char_table): Add %X. | |
674 | ||
bc7bff74 | 675 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
676 | ||
d62c713e | 677 | * c-common.h (omp_clause_mask::operator !=): New method. |
678 | * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0) | |
679 | instead of if (mask & something) tests everywhere. | |
680 | ||
bc7bff74 | 681 | * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to |
682 | 201307 instead of 201107. | |
683 | * c-common.c (DEF_FUNCTION_TYPE_8): Define. | |
684 | (c_common_attribute_table): Add "omp declare target" and | |
685 | "omp declare simd" attributes. | |
686 | (handle_omp_declare_target_attribute, | |
687 | handle_omp_declare_simd_attribute): New functions. | |
688 | * c-omp.c: Include c-pragma.h. | |
689 | (c_finish_omp_taskgroup): New function. | |
690 | (c_finish_omp_atomic): Add swapped argument, if true, | |
691 | build the operation first with rhs, lhs arguments and use NOP_EXPR | |
692 | build_modify_expr. | |
693 | (c_finish_omp_for): Add code argument, pass it down to make_code. | |
694 | (c_omp_split_clauses): New function. | |
695 | (c_split_parallel_clauses): Removed. | |
696 | (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers, | |
697 | c_omp_declare_simd_clauses_to_decls): New functions. | |
698 | * c-common.h (omp_clause_mask): New type. | |
699 | (OMP_CLAUSE_MASK_1): Define. | |
700 | (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=, | |
701 | omp_clause_mask::operator |=, omp_clause_mask::operator ~, | |
702 | omp_clause_mask::operator |, omp_clause_mask::operator &, | |
703 | omp_clause_mask::operator <<, omp_clause_mask::operator >>, | |
704 | omp_clause_mask::operator ==): New methods. | |
705 | (enum c_omp_clause_split): New. | |
706 | (c_finish_omp_taskgroup): New prototype. | |
707 | (c_finish_omp_atomic): Add swapped argument. | |
708 | (c_finish_omp_for): Add code argument. | |
709 | (c_omp_split_clauses): New prototype. | |
710 | (c_split_parallel_clauses): Removed. | |
711 | (c_omp_declare_simd_clauses_to_numbers, | |
712 | c_omp_declare_simd_clauses_to_decls): New prototypes. | |
713 | * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs. | |
714 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL, | |
715 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION, | |
716 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD, | |
717 | PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS. | |
718 | Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS. | |
719 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED, | |
720 | PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE, | |
721 | PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR, | |
722 | PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH, | |
723 | PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP, | |
724 | PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS, | |
725 | PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND, | |
726 | PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS, | |
727 | PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP, | |
728 | PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and | |
729 | PRAGMA_OMP_CLAUSE_UNIFORM. | |
730 | ||
d7dcba40 | 731 | 2013-10-09 Marc Glisse <marc.glisse@inria.fr> |
732 | ||
733 | PR tree-optimization/20318 | |
734 | * c-common.c (handle_returns_nonnull_attribute): New function. | |
735 | (c_common_attribute_table): Add returns_nonnull. | |
736 | ||
0b7282f1 | 737 | 2013-10-03 Marc Glisse <marc.glisse@inria.fr> |
738 | ||
739 | PR c++/19476 | |
740 | * c.opt (fcheck-new): Move to common.opt. | |
741 | ||
51f553af | 742 | 2013-09-25 Marek Polacek <polacek@redhat.com> |
743 | Jakub Jelinek <jakub@redhat.com> | |
744 | ||
745 | PR sanitizer/58413 | |
746 | * c-ubsan.c (ubsan_instrument_shift): Don't instrument | |
747 | an expression if we can prove it is correct. | |
748 | (ubsan_instrument_division): Likewise. Remove unnecessary | |
749 | check. | |
750 | ||
05f893e1 | 751 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
752 | ||
753 | PR sanitizer/58411 | |
754 | * c-common.c (handle_no_sanitize_undefined_attribute): New function. | |
755 | Declare it. | |
756 | (struct attribute_spec c_common_att): Add no_sanitize_undefined. | |
757 | ||
236ce1d1 | 758 | 2013-09-14 Iain Sandoe <iain@codesourcery.com> |
759 | ||
760 | PR target/48094 | |
761 | * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version, | |
762 | fobjc-gc, freplace-objc-classes): Accept for LTO. | |
763 | ||
f9f68d35 | 764 | 2013-09-13 Jacek Caban <jacek@codeweavers.com> |
765 | ||
766 | * c-target.def: New hook | |
767 | ||
ba2f764e | 768 | 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com> |
769 | ||
770 | PR c++/43452 | |
771 | * c.opt (Wdelete-incomplete): Add. | |
772 | ||
73437615 | 773 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
774 | ||
775 | * c-common.c (same_scalar_type_ignoring_signedness): Delete. | |
776 | (vector_types_compatible_elements_p): New function. | |
777 | * c-common.h: (same_scalar_type_ignoring_signedness): Delete | |
778 | declaration. | |
779 | (vector_types_compatible_elements_p): Declare. | |
780 | ||
95af4c75 | 781 | 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
782 | ||
783 | * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now | |
784 | a virtual member function. | |
785 | (pp_simple_type_specifier): Remove. | |
786 | (pp_c_type_specifier): Likewise. | |
787 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): | |
788 | Rename from pp_c_type_specifier. Adjust. | |
789 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
790 | simple_type_specifier. | |
791 | ||
eaab24b9 | 792 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
793 | ||
794 | * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual | |
795 | member function. | |
796 | (c_pretty_printer::storage_class_specifier): Likewise. | |
797 | (c_pretty_printer::initializer): Likewise. | |
798 | (pp_declaration): Remove. | |
799 | (pp_declaration_specifiers): Likewise. | |
800 | (pp_abstract_declarator): Likewise. | |
801 | (pp_declarator): Likewise. | |
802 | (pp_type_id): Likewise. | |
803 | (pp_statement): Likewise. | |
804 | (pp_constant): Likewise. | |
805 | (pp_id_expression): Likewise. | |
806 | (pp_primary_expression): Likewise. | |
807 | (pp_unary_expression): Likewise. | |
808 | (pp_multiplicative_expression): Likewise. | |
809 | (pp_conditional_expression): Likewise. | |
810 | (pp_assignment_expression): Likewise. | |
811 | (pp_expression): Likewise. | |
812 | (pp_c_type_id): Likewise. | |
813 | (pp_c_storage_class_specifier): Likewise. | |
814 | * c-pretty-print.c (pp_c_type_cast): Tidy. | |
815 | (pp_c_pointer): Likewise. | |
816 | (pp_c_type_specifier): Likewise. | |
817 | (pp_c_parameter_type_list): Likewise. | |
818 | (pp_c_function_definition): Likewise. | |
819 | (pp_c_init_declarator): Likewise. | |
820 | (pp_c_initializer_list): Likewise. | |
821 | (pp_c_constructor_elts): Likewise. | |
822 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
823 | (c_pretty_printer::declaration_specifiers): Likewise. | |
824 | (c_pretty_printer::primary_expression): Likewise. | |
825 | (c_pretty_printer::postfix_expression): Likewise. | |
826 | (c_pretty_printer::type_id): Rename from pp_c_type_id. | |
827 | (c_pretty_printer::storage_class_specifier): Rename from | |
828 | pp_c_storage_class_specifier. | |
829 | (c_pretty_printer::initializer): Rename from pp_c_initializer. | |
830 | (c_pretty_printer::c_pretty_printer): Do not assign to type_id, | |
831 | storage_class_specifier, initializer, offset_list, flags. | |
832 | ||
9e46467d | 833 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
834 | ||
835 | * c-ubsan.c: New file. | |
836 | * c-ubsan.h: New file. | |
837 | ||
36a8d9b9 | 838 | 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net> |
839 | ||
840 | * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual | |
841 | member function. | |
842 | (c_pretty_printer::declaration_specifiers): Likewise. | |
843 | (c_pretty_printer::declarator): Likewise. | |
844 | (c_pretty_printer::abstract_declarator): Likewise. | |
845 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
846 | (c_pretty_printer::direct_declarator): Likewise. | |
847 | (c_pretty_printer::function_specifier): Likewise. | |
848 | (pp_declaration): Adjust. | |
849 | (pp_declaration_specifiers): Likewise. | |
850 | (pp_abstract_declarator): Likewise. | |
851 | (pp_direct_declarator): Likewise. | |
852 | (pp_function_specifier): Likewise. | |
853 | (pp_direct_abstract_declarator): Remove as unused. | |
854 | (pp_c_declaration): Remove. | |
855 | (pp_c_declaration_specifiers): Likewise. | |
856 | (pp_c_declarator): Likewise. | |
857 | (pp_c_direct_declarator): Likewise. | |
858 | (pp_c_function_specifier): Likewise. | |
859 | (pp_c_direct_abstract_declarator): Likewise. | |
860 | * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename | |
861 | from pp_c_abstract_declarator. Adjust. | |
862 | (c_pretty_printer::direct_abstract_declarator): Rename from | |
863 | pp_c_direct_abstract_declarator. Adjust. | |
864 | (c_pretty_printer::function_specifier): Rename from | |
865 | pp_c_function_specifier. Adjust. | |
866 | (c_pretty_printer::declaration_specifiers): Rename from | |
867 | pp_c_declaration_specifiers. Adjust. | |
868 | (c_pretty_printer::direct_declarator): Rename from | |
869 | pp_c_direct_declarator. Adjust. | |
870 | (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust. | |
871 | (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust. | |
872 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
873 | declaration, declaration_specifiers, declarator, | |
874 | direct_declarator, direct_abstract_declarator, function_specifier. | |
875 | ||
30635c2e | 876 | 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net> |
877 | ||
878 | * c-pretty-print.h (c_pretty_printer::unary_expression): Now a | |
879 | virtual member function. | |
880 | (c_pretty_printer::multiplicative_expression): Likewise. | |
881 | (c_pretty_printer::conditional_expression): Likewise. | |
882 | (c_pretty_printer::assignment_expression): Likewise. | |
883 | (c_pretty_printer::expression): Likewise. | |
884 | (pp_unary_expression): Adjust. | |
885 | (pp_multiplicative_expression): Likewise. | |
886 | (pp_assignment_expression): Likewise. | |
887 | (pp_conditional_expression): Likewise. | |
888 | (pp_expression): Likewise. | |
889 | * c-pretty-print.c (c_pretty_printer::unary_expression): Rename | |
890 | from pp_c_unary_expression. Adjust. | |
891 | (c_pretty_printer::multiplicative_expression): Rename from | |
892 | pp_c_multiplicative_expression. Adjust. | |
893 | (c_pretty_printer::conditional_expression): Rename from | |
894 | pp_c_conditional_expression. Adjust. | |
895 | (c_pretty_printer::assignment_expression): Rename from | |
896 | pp_c_assignment_expression. Adjust. | |
897 | (c_pretty_printer::expression): Rename from pp_c_expression. Adjust. | |
898 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
899 | unary_expression, multiplicative_expression, | |
900 | conditional_expression, expression. | |
901 | ||
027d08ed | 902 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
903 | ||
904 | * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a | |
905 | virtual member function. | |
906 | (pp_postfix_expression): Adjust. | |
907 | (pp_c_postfix_expression): Remove. | |
908 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename | |
909 | from pp_c_postfix_expression. Adjust. | |
910 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
911 | postfix_expression. | |
912 | ||
f873303a | 913 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
914 | ||
915 | * c-pretty-print.h (c_pretty_printer::primary_expression): Now a | |
916 | virtua member function. | |
917 | (pp_primary_expression): Adjust. | |
918 | (pp_c_primary_expression): Remove. | |
919 | * c-pretty-print.c (c_pretty_printer::primary_expression): Rename | |
920 | from pp_c_primary_expression. Adjust. | |
921 | (pp_c_initializer_list): Use pp_primary_expression. | |
922 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
923 | primary_expression. | |
924 | ||
08e3e481 | 925 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
926 | ||
927 | * c-pretty-print.h (c_pretty_printer::translate_string): Declare. | |
928 | * c-pretty-print.c (M_): Remove. | |
929 | (c_pretty_printer::translate_string): Define. | |
930 | (pp_c_type_specifier): Use it. | |
931 | (pp_c_primary_expression): Likewise. | |
932 | (pp_c_expression): Likewise. | |
933 | ||
1fc4a87f | 934 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
935 | ||
936 | * c-pretty-print.h (c_pretty_printer::id_expression): Now a | |
937 | virtual function. | |
938 | (pp_c_id_expression): Remove. | |
939 | (pp_id_expression): Adjust. | |
940 | * c-pretty-print.c (c_pretty_printer::id_expression): Rename from | |
941 | pp_c_id_expression. Adjust. | |
942 | (pp_c_postfix_expression): Use pp_id_expression. | |
943 | (c_pretty_printer::c_pretty_printer): Do not assign to id_expression. | |
944 | ||
a6cb161b | 945 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
946 | ||
947 | * c-pretty-print.h (c_pretty_printer::constant): Now a virtual | |
948 | member function. | |
949 | (pp_constant): Adjust. | |
950 | (pp_c_constant): Remove. | |
951 | * c-pretty-print.c (c_pretty_printer::constant): Rename from | |
952 | pp_c_constant. Adjust. | |
953 | (pp_c_constant) | |
954 | (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant. | |
955 | (c_pretty_printer::c_pretty_printer): Remove assignment to constant. | |
956 | ||
eed6bc21 | 957 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
958 | ||
959 | * c-pretty-print.h (pp_c_pretty_printer_init): Remove. | |
960 | (c_pretty_printer::c_pretty_printer): Declare. | |
961 | * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from | |
962 | c_pretty_printer_init. Adjust. | |
963 | (print_c_tree): Do not call c_pretty_printer_init. | |
964 | * c-ada-spec.c (dump_ads): Remove call to pp_construct. | |
965 | ||
df558d2e | 966 | 2013-08-09 Arnaud Charlet <charlet@adacore.com> |
967 | ||
968 | * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name | |
969 | ||
42f9a786 | 970 | 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com> |
971 | ||
972 | PR c++/58080 | |
973 | * c-common.c (pointer_int_sum): Add bool parameter. | |
974 | * c-common.h (pointer_int_sum): Adjust declaration. | |
975 | ||
f874ddad | 976 | 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net> |
977 | ||
978 | * c-pretty-print.c (print_c_tree): Simplify. Use non-static local | |
979 | c_pretty_printer variable. | |
980 | ||
a94db6b0 | 981 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
982 | ||
983 | * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer. | |
984 | (pp_base): Remove. | |
985 | (pp_c_base): Likewise. Adjust users. | |
986 | * c-pretty-print.c (pp_c_maybe_whitespace): Adjust. | |
987 | (pp_c_whitespace): Do not call pp_base. | |
988 | (pp_c_left_paren): Likewise. | |
989 | (pp_c_right_paren): Likewise. | |
990 | (pp_c_left_brace): Likewise. | |
991 | (pp_c_right_brace): Likewise. | |
992 | (pp_c_left_bracket): Likewise. | |
993 | (pp_c_right_bracket): Likewise. | |
994 | (pp_c_dot): Likewise. | |
995 | (pp_c_ampersand): Likewise. | |
996 | (pp_c_star): Likewise. | |
997 | (pp_c_arrow): Likewise. | |
998 | (pp_c_semicolon): Likewise. | |
999 | (pp_c_complement): Likewise. | |
1000 | (pp_c_exclamation): Likewise. | |
1001 | (pp_c_direct_declarator): Likewise. | |
1002 | (pp_c_ws_string): Likewise. | |
1003 | (pp_c_identifier): Likewise. | |
1004 | (pp_c_statement): Likewise. | |
1005 | (print_c_tree): Likewise. | |
1006 | ||
1898176c | 1007 | 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net> |
1008 | ||
1009 | PR c++/58072 | |
1010 | * c-common.c (c_parse_error): Catch user-defined literal tokens and | |
1011 | provide useful error strings. | |
1012 | ||
70d60d1d | 1013 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
1014 | ||
1015 | * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty | |
1016 | printer functions instead of pp_string or operators and punctuators. | |
1017 | (dump_generic_ada_node): Likewise. | |
1018 | * c-pretty-print.c (pp_c_type_specifier): Likewise. | |
1019 | (pp_c_relational_expression): Likewise. | |
1020 | (pp_c_logical_or_expression): Likewise. | |
1021 | ||
dda4f0ec | 1022 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
1023 | ||
1024 | * c-ada-spec.c (print_ada_macros): Use specialized pretty printer | |
1025 | functions instead of pp_character. | |
1026 | (pp_ada_tree_identifier): Likewise. | |
1027 | (dump_ada_double_name): Likewise. | |
1028 | (dump_ada_function_declaration): Likewise. | |
1029 | (dump_ada_array_domains): Likewise. | |
1030 | (dump_template_types): Likewise. | |
1031 | (dump_generic_ada_node): Likewise. | |
1032 | (print_ada_declaration): Likewise. | |
1033 | (print_ada_struct_decl): Likewise. | |
1034 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
1035 | ||
7aa04c8d | 1036 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
1037 | ||
1038 | * c-common.h (enum rid) <RID_GENERIC>: New constant. | |
1039 | * c-common.c (c_common_reswords): Add _Generic. | |
1040 | ||
a04e8d62 | 1041 | 2013-07-21 OndÅ\99ej BÃlka <neleai@seznam.cz> |
1042 | ||
1043 | * c-common.c: Fix typos. | |
1044 | * c-common.h: Likewise. | |
1045 | ||
a96c3cc1 | 1046 | 2013-07-13 Lubos Lunak <l.lunak@suse.cz> |
1047 | ||
1048 | PR c++/55203 | |
1049 | * c-common.c (c_common_attribute_table): Add warn_unused. | |
1050 | (handle_warn_unused_attribute): New. | |
1051 | ||
da31536d | 1052 | 2013-07-10 Jakub Jelinek <jakub@redhat.com> |
1053 | ||
1054 | * c-ppoutput.c (scan_translation_unit): Call account_for_newlines | |
1055 | for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT. | |
1056 | ||
839f2f70 | 1057 | 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com> |
1058 | ||
1059 | PR c++/57869 | |
1060 | * c.opt: Add Wconditionally-supported. | |
1061 | ||
73f353d0 | 1062 | 2013-07-08 Graham Stott <graham.stott@btinternet.com> |
1063 | ||
1064 | * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete | |
1065 | unused variables l_length and l_node. | |
1066 | ||
21ebaa24 | 1067 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
f5298614 | 1068 | |
1069 | PR c/57821 | |
1070 | * c-common.c (complete_array_type): Delay folding first index | |
1071 | like other indices. When folding, check for index overflow. | |
1072 | ||
68ea4406 | 1073 | 2013-06-27 Marc Glisse <marc.glisse@inria.fr> |
1074 | ||
1075 | PR c++/57509 | |
1076 | * c-common.h (c_build_vec_perm_expr): New complain argument. | |
1077 | * c-common.c (c_build_vec_perm_expr): Likewise. | |
1078 | Use save_expr also in C++. | |
1079 | ||
60777f69 | 1080 | 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
1081 | ||
1082 | * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x. | |
1083 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
1084 | * c-opts.c (c_common_post_options): Likewise. | |
1085 | ||
839f2f70 | 1086 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
50acebe0 | 1087 | |
1088 | * array-notation-common.c (length_mismatch_in_expr): Changed the | |
1089 | parameter type's from a dynamic array to a vec_tree. Also removed | |
1090 | the size parameters. | |
1091 | * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per | |
1092 | the change above. | |
1093 | ||
e9331eab | 1094 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1095 | ||
1096 | * c-common.h (struct cilkplus_an_parts): New structure. | |
1097 | (struct cilkplus_an_loop_parts): Likewise. | |
1098 | (cilkplus_extract_an_triplets): New prototype. | |
1099 | (fix_sec_implicit_args): Likewise. | |
1100 | * array-notation-common.c (cilkplus_extract_an_triplets): New function. | |
1101 | (fix_sec_implicit_args): Likewise. | |
60777f69 | 1102 | |
a9c99fc4 | 1103 | 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1104 | ||
1105 | * array-notation-common.c (find_inv_trees): Removed an unwanted | |
1106 | typecasting. | |
1107 | * c-common.h (struct inv_list::additional_tcodes): Changed type from | |
1108 | enum rid to enum tree_code. | |
1109 | ||
f2526cce | 1110 | 2013-06-11 Jan Hubicka <jh@suse.cz> |
1111 | ||
1112 | * c-common.c (handle_alias_ifunc_attribute): Do not set | |
1113 | DECL_EXTERNAL for weakref variables. | |
1114 | * c-pragma.c (handle_pragma_weak): Make sure aliases | |
1115 | are not declared as external. | |
1116 | ||
09970d67 | 1117 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1118 | ||
1119 | * array-notation-common.c (length_mismatch_in_expr_p): Moved this | |
1120 | function from c/c-array-notation.c. | |
1121 | (is_cilkplus_reduce_builtin): Likewise. | |
1122 | (find_rank): Likewise. | |
1123 | (extract_array_notation_exprs): Likewise. | |
1124 | (replace_array_notations): Likewise. | |
1125 | (find_inv_trees): Likewise. | |
1126 | (replace_inv_trees): Likewise. | |
1127 | (contains_array_notation_expr): Likewise. | |
1128 | (find_correct_array_notation_type): Likewise. | |
1129 | * c-common.h (struct inv_list): Moved this struct from the file | |
1130 | c/c-array-notation.c and added a new field called additional tcodes. | |
1131 | (length_mismatch_in_expr_p): New prototype. | |
1132 | (is_cilkplus_reduce_builtin): Likewise. | |
1133 | (find_rank): Likewise. | |
1134 | (extract_array_notation_exprs): Likewise. | |
1135 | (replace_array_notation): Likewise. | |
1136 | (find_inv_trees): Likewise. | |
1137 | (replace_inv_trees): Likewise. | |
1138 | (find_correct_array_notation_type): Likewise. | |
839f2f70 | 1139 | |
3c6d4197 | 1140 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
1141 | ||
1142 | * c-common.c (c_define_builtins): When cilkplus is enabled, the | |
1143 | function array_notation_init_builtins is called. | |
1144 | (c_common_init_ts): Added ARRAY_NOTATION_REF as typed. | |
1145 | * c-common.def (ARRAY_NOTATION_REF): New tree. | |
1146 | * c-common.h (build_array_notation_expr): New function declaration. | |
1147 | (build_array_notation_ref): Likewise. | |
1148 | (extract_sec_implicit_index_arg): New extern declaration. | |
1149 | (is_sec_implicit_index_fn): Likewise. | |
1150 | (ARRAY_NOTATION_CHECK): New define. | |
1151 | (ARRAY_NOTATION_ARRAY): Likewise. | |
1152 | (ARRAY_NOTATION_START): Likewise. | |
1153 | (ARRAY_NOTATION_LENGTH): Likewise. | |
1154 | (ARRAY_NOTATION_STRIDE): Likewise. | |
1155 | * c-pretty-print.c (pp_c_postifix_expression): Added a new case for | |
1156 | ARRAY_NOTATION_REF. | |
1157 | (pp_c_expression): Likewise. | |
1158 | * c.opt (flag_enable_cilkplus): New flag. | |
1159 | * array-notation-common.c: New file. | |
1160 | ||
8e71dad2 | 1161 | 2013-05-14 Jakub Jelinek <jakub@redhat.com> |
1162 | ||
1163 | PR c++/57274 | |
1164 | * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR. | |
1165 | ||
432dd330 | 1166 | 2013-05-10 Marc Glisse <marc.glisse@inria.fr> |
1167 | ||
1168 | * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for | |
1169 | vectors. | |
1170 | ||
b156ec37 | 1171 | 2013-05-07 Han Shen <shenhan@google.com> |
1172 | ||
1173 | * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3". | |
1174 | ||
1a087624 | 1175 | 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
1176 | ||
1177 | * c-common.c (check_user_alignment): Emit error for negative values. | |
1178 | ||
1638c736 | 1179 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
1180 | ||
1181 | * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y. | |
1182 | ||
949dbf93 | 1183 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
1184 | ||
1185 | * c-cppbuiltin.c (c_cpp_builtins): Do not define | |
1186 | __GXX_EXPERIMENTAL_CXX1Y__. | |
1187 | ||
9205a6cc | 1188 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
1189 | Manuel Lopez-Ibanez <manu@gcc.gnu.org> | |
1190 | ||
1191 | * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented. | |
1192 | * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns | |
1193 | to simply use OPT_Wpointer_arith. | |
1194 | (c_sizeof_or_alignof_type): Likewise. | |
1195 | ||
05d0bce1 | 1196 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
1197 | ||
1198 | * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__. | |
1199 | ||
41609f8b | 1200 | 2013-04-12 Jakub Jelinek <jakub@redhat.com> |
1201 | ||
1202 | * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table, | |
1203 | gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format | |
1204 | specifiers. | |
1205 | ||
c671dc4f | 1206 | 2013-04-07 Steven Bosscher <steven@gcc.gnu.org> |
1207 | ||
1208 | * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment. | |
1209 | ||
ba125576 | 1210 | 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com> |
1211 | ||
1212 | * c-common.c (pointer_int_sum): Remove dead code. | |
1213 | ||
9d3fa937 | 1214 | 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com> |
1215 | ||
1216 | PR middle-end/56524 | |
1217 | * c-common.c (handle_optimize_attribute): Don't call | |
1218 | save_optabs_if_changed. | |
1219 | ||
5ceebb21 | 1220 | 2013-03-05 Jakub Jelinek <jakub@redhat.com> |
1221 | ||
1222 | PR middle-end/56461 | |
1223 | * c-pch.c (pch_init): Free target_validity at the end. | |
1224 | ||
18eeed2b | 1225 | 2013-03-04 Jakub Jelinek <jakub@redhat.com> |
1226 | ||
1227 | * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags. | |
1228 | ||
a9196da9 | 1229 | 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com> |
1230 | Jakub Jelinek <jakub@redhat.com> | |
1231 | ||
1232 | PR sanitizer/56454 | |
1233 | * c-common.c (handle_no_sanitize_address_attribute): New function. | |
1234 | (c_common_attribute_table): Add no_sanitize_address attribute. | |
1235 | (handle_no_address_safety_analysis_attribute): Add | |
1236 | no_sanitize_address attribute, not no_address_safety_analysis | |
1237 | attribute. | |
1238 | ||
15c27dda | 1239 | 2013-02-18 Aldy Hernandez <aldyh@redhat.com> |
08c7d04b | 1240 | |
1241 | PR target/52555 | |
1242 | * c-common.c (handle_optimize_attribute): Call | |
1243 | save_optabs_if_changed. | |
1244 | ||
19426fe1 | 1245 | 2013-02-18 Jakub Jelinek <jakub@redhat.com> |
1246 | Steven Bosscher <steven@gcc.gnu.org> | |
1247 | ||
1248 | PR pch/54117 | |
1249 | * c-opts.c (c_common_post_options): If debug info is enabled | |
1250 | and non-dwarf*, refuse to load PCH files and when writing PCH | |
1251 | file warn. | |
1252 | ||
df936998 | 1253 | 2013-02-05 Jakub Jelinek <jakub@redhat.com> |
1254 | ||
1255 | PR middle-end/56167 | |
1256 | * c-common.c (handle_error_attribute): Fix condition. | |
1257 | ||
ae0c3984 | 1258 | 2013-01-30 Jakub Jelinek <jakub@redhat.com> |
1259 | ||
1260 | PR c++/55742 | |
1261 | * c-common.c (handle_target_attribute): Revert 2012-12-26 change. | |
1262 | ||
1c4973d7 | 1263 | 2013-01-18 Jason Merrill <jason@redhat.com> |
1264 | ||
1265 | PR target/54908 | |
1266 | * c.opt (-fextern-tls-init): New. | |
1267 | * c-opts.c (c_common_post_options): Handle it. | |
1268 | ||
7c834436 | 1269 | 2013-01-09 Jakub Jelinek <jakub@redhat.com> |
1270 | ||
1271 | PR c/48418 | |
1272 | * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and | |
1273 | RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST | |
1274 | and is either negative or bigger or equal to type precision | |
1275 | of the first operand. | |
1276 | ||
5abaa10a | 1277 | 2012-12-03 Marek Polacek <polacek@redhat.com> |
1278 | ||
1279 | PR c/55570 | |
1280 | * c-common.c (check_user_alignment): Swap order of tests, | |
1281 | check TREE_CODE first. | |
1282 | ||
324ca377 | 1283 | 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net> |
1284 | ||
1285 | PR c++/52654 | |
1286 | * c-common.h (overflow_type): New enum. | |
1287 | (build_userdef_literal): Add overflow_type argument. | |
1288 | (tree_userdef_literal): Add overflow_type. | |
1289 | (USERDEF_LITERAL_OVERFLOW): New access macro. | |
1290 | * c-common.c (build_userdef_literal): Add overflow_type | |
1291 | argument. | |
1292 | * c-lex.c (c_lex_with_flags): Add overflow_type to | |
1293 | build_userdef_literal calls. | |
1294 | (interpret_integer, interpret_float): Add overflow_type argument. | |
1295 | ||
b4c4a429 | 1296 | 2012-11-28 Richard Biener <rguenther@suse.de> |
1297 | ||
1298 | PR c/35634 | |
1299 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
1300 | here and use a type with proper overflow behavior for types that would | |
1301 | need to be promoted for the arithmetic. | |
1302 | ||
d413ffdd | 1303 | 2012-11-23 Jakub Jelinek <jakub@redhat.com> |
1304 | ||
1305 | PR sanitizer/55435 | |
1306 | * c-common.c (handle_no_address_safety_analysis_attribute): New | |
1307 | function. | |
1308 | (c_common_attribute_table): Add no_address_safety_analysis. | |
1309 | ||
52bc861d | 1310 | 2012-11-16 Simon Baldwin <simonb@google.com> |
1311 | ||
1312 | * c.opt: Add f[no-]canonical-system-headers. | |
1313 | * c-opts.c (c_common_handle_option): Handle | |
1314 | OPT_fcanonical_system_headers. | |
1315 | ||
2dd00636 | 1316 | 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> |
1317 | ||
1318 | PR c++/54413 | |
1319 | * c-opts.c (c_common_handle_option): Set new flags. | |
1320 | * c.opt: Describe new flags. | |
1321 | ||
d4701f6c | 1322 | 2012-11-09 Jason Merrill <jason@redhat.com> |
1323 | ||
1324 | * c.opt (Wabi-tag): New. | |
1325 | ||
72d65da9 | 1326 | 2012-11-09 Andi Kleen <ak@linux.intel.com> |
1327 | ||
1328 | PR 55139 | |
1329 | * c-common.c (get_atomic_generic_size): Mask with | |
1330 | MEMMODEL_MASK | |
1331 | ||
77a357e3 | 1332 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1333 | ||
1334 | PR c/53063 | |
1335 | * c.opt (Wformat): Make it Alias Wformat=1. | |
1336 | (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral, | |
1337 | Wformat-security,Wformat-y2k,Wformat-zero-length): Use | |
1338 | LangEnabledBy. | |
1339 | (Wformat=): RejectNegative. Use LangEnabledBy. | |
1340 | (Wnonnull): Use LangEnabledBy. | |
1341 | * c-opts.c (c_common_handle_option): Do not handle Wformat here. | |
1342 | * c-format.c (set_Wformat): Delete. | |
1343 | (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_. | |
1344 | (maybe_read_dollar_number): Likewise. | |
1345 | (avoid_dollar_number): Likewise. | |
1346 | (finish_dollar_format_checking): Likewise. | |
1347 | (check_format_info): Likewise. | |
1348 | (check_format_info_main): Likewise. | |
1349 | (check_format_types): Likewise. | |
1350 | (format_type_warning): Likewise. | |
1351 | * c-common.c (int): Likewise. | |
1352 | (check_function_sentinel): Likewise. | |
1353 | * c-common.h (warn_format,set_Wformat): Do not declare here. | |
1354 | ||
45efa6b9 | 1355 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1356 | ||
1357 | PR c/53063 | |
1358 | * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare, | |
1359 | Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros): | |
1360 | Use LangEnabledBy. | |
1361 | (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from | |
1362 | common.opt. | |
1363 | (Wvariadic-macros): Init(1). | |
1364 | * c-opts.c (c_common_handle_option): Do not handle them | |
1365 | explicitly. | |
1366 | (c_common_post_options): Likewise. | |
1367 | (sanitize_cpp_opts): warn_unused_macros is now | |
1368 | cpp_warn_unused_macros. | |
1369 | (push_command_line_include): Likewise. | |
1370 | * c-common.c (warn_unknown_pragmas): Do not define. | |
1371 | * c-common.h (warn_unknown_pragmas): Do not declare. | |
1372 | ||
0e4e775a | 1373 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1374 | ||
1375 | PR c/51294 | |
1376 | * c-common.c (conversion_warning): Handle conditional expressions. | |
1377 | ||
8b447d3f | 1378 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
1379 | ||
1380 | PR c++/54930 | |
1381 | * c.opt (Wreturn_local_addr): Define new option. | |
1382 | ||
f4a61754 | 1383 | 2012-10-25 Jason Merrill <jason@redhat.com> |
1384 | ||
ecb10e6a | 1385 | * c.opt (Wvirtual-move-assign): New. |
1386 | ||
f4a61754 | 1387 | * c.opt (Winherited-variadic-ctor): New. |
1388 | ||
7b463b19 | 1389 | 2012-10-25 Marc Glisse <marc.glisse@inria.fr> |
1390 | ||
1391 | PR c++/54427 | |
1392 | * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR. | |
1393 | ||
6adc88f8 | 1394 | 2012-10-23 Joseph Myers <joseph@codesourcery.com> |
1395 | ||
1396 | * c-common.h (pch_cpp_save_state): Declare. | |
1397 | * c-target.def (c_preinclude): New hook. | |
1398 | * c-opts.c (done_preinclude): New. | |
1399 | (push_command_line_include): Handle default preincluded header. | |
1400 | (cb_file_change): Call pch_cpp_save_state when calling | |
1401 | push_command_line_include. | |
1402 | * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved) | |
1403 | (pch_cpp_save_state): New. | |
1404 | (pch_init): Call pch_cpp_save_state conditionally, instead of | |
1405 | calling cpp_save_state. | |
1406 | ||
fa816b0b | 1407 | 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1408 | ||
1409 | PR c/53063 | |
1410 | PR c/40989 | |
1411 | * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit, | |
1412 | Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess, | |
1413 | Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point, | |
1414 | Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused, | |
1415 | Wvolatile-register-var): Add LangEnabledBy or EnabledBy. | |
1416 | * c-opts.c (c_common_handle_option): Remove explicit handling from | |
1417 | here. | |
1418 | (c_common_post_options): Likewise. | |
1419 | ||
d214ccee | 1420 | 2012-10-18 Eric Botcazou <ebotcazou@adacore.com> |
1421 | ||
1422 | * c-ada-spec.c (LOCATION_COL): Delete. | |
1423 | (compare_location): New function. | |
1424 | (compare_node): Use it. | |
1425 | (compare_comment): Likewise. | |
1426 | ||
77b27208 | 1427 | 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1428 | ||
1429 | PR c/53063 | |
1430 | PR c/40989 | |
1431 | * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy. | |
1432 | * c-opts.c (c_common_handle_option): Do not set them here. Add | |
1433 | comment. | |
1434 | (c_common_post_options): Likewise. | |
1435 | ||
cc02ca4d | 1436 | 2012-10-16 Eric Botcazou <ebotcazou@adacore.com> |
1437 | ||
1438 | * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define. | |
1439 | (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially. | |
1440 | Remove POINTER_TYPE handling, add large unsigned handling and use | |
1441 | ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers. | |
1442 | ||
57f872a2 | 1443 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
1444 | ||
1445 | PR c/54381 | |
1446 | * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype. | |
1447 | * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3 | |
1448 | locs and array of 3 trees instead of just single loc and single | |
1449 | sizeof_arg tree. Handle __builtin___*_chk builtins too, and | |
1450 | also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins. | |
1451 | For *cmp* builtins that take two sources strings report warnings | |
1452 | about first and second source, not about destination and source. | |
1453 | ||
7354ad2e | 1454 | 2012-10-12 Marc Glisse <marc.glisse@inria.fr> |
1455 | ||
1456 | PR c++/53055 | |
1457 | * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New. | |
1458 | ||
1ac7f120 | 1459 | 2012-10-11 Eric Botcazou <ebotcazou@adacore.com> |
1460 | ||
1461 | * c-ada-spec.c (dump_ada_template): Bail out for template declarations | |
1462 | declaring something coming from another file. | |
1463 | ||
1e0cc9e3 | 1464 | 2012-10-10 Arnaud Charlet <charlet@adacore.com> |
1465 | ||
1ac7f120 | 1466 | PR ada/54845 |
1e0cc9e3 | 1467 | * c-ada-spec.c (print_ada_struct_decl): Increase buf size. |
1468 | ||
b0e7825e | 1469 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
1470 | ||
1471 | PR c++/54194 | |
1472 | * c-common.c (warn_about_parentheses): Add location_t parameter; | |
1473 | use EXPR_LOC_OR_LOC. | |
1474 | * c-common.h: Update declaration. | |
1475 | ||
41ed701a | 1476 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
1477 | ||
1478 | PR c++/54427 | |
1479 | * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support | |
1480 | more operations. Make error messages optional. | |
1481 | * c-common.h (enum stv_conv): Moved from c-typeck.c. | |
1482 | (scalar_to_vector): Declare. | |
1483 | ||
3740094c | 1484 | 2012-10-08 Jason Merrill <jason@redhat.com> |
1485 | ||
1486 | * c-common.c (c_common_reswords): Add thread_local. | |
1487 | ||
ffcdbf9c | 1488 | 2012-10-08 Dodji Seketeli <dodji@redhat.com> |
1489 | ||
1490 | PR c++/53528 C++11 attribute support | |
1491 | * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare | |
1492 | new functions. | |
1493 | * c-common.c (check_cxx_fundamental_alignment_constraints): New | |
1494 | static function. | |
1495 | (handle_aligned_attribute): In choose strictest alignment | |
1496 | among many. Use new check_cxx_fundamental_alignment_constraints. | |
1497 | (handle_transparent_union_attribute): In c++11 attribute syntax, | |
1498 | don't look through typedefs. | |
1499 | ||
ef34afc1 | 1500 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
1501 | ||
1502 | * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW. | |
1503 | * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition | |
1504 | out of dumpfile.h. | |
1505 | ||
f1ff4562 | 1506 | 2012-09-25 Dehao Chen <dehao@google.com> |
1507 | ||
1508 | PR middle-end/54645 | |
ef34afc1 | 1509 | * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data |
f1ff4562 | 1510 | map when read in the pch. |
1511 | ||
735538a1 | 1512 | 2012-09-18 Arnaud Charlet <charlet@adacore.com> |
1513 | ||
1514 | * c-ada-spec.c: Style fixes. | |
1515 | ||
9120cdc8 | 1516 | 2012-09-18 Thomas Quinot <quinot@adacore.com> |
1517 | ||
1518 | * c.opt (-fada-spec-parent): Define new command line switch. | |
1519 | * c-ada-spec.c (get_ada_package): When -fada-spec-parent | |
1520 | is specified, generate binding spec as a child of the specified unit. | |
1521 | ||
8eba82c2 | 1522 | 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com> |
1523 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
1524 | ||
1525 | PR c++/53210 | |
1526 | * c.opt ([Winit-self]): Enabled by -Wall in C++. | |
1527 | ||
38682990 | 1528 | 2012-08-23 Arnaud Charlet <charlet@adacore.com> |
1529 | ||
1530 | * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only | |
1531 | for pointers, and add missing Convention C pragma. | |
1532 | (print_ada_struct_decl): Add missing aliased keyword. | |
1533 | (dump_ads): Add pragma Ada_2005 and Style_Checks (Off). | |
1534 | ||
f003f5dc | 1535 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
1536 | ||
1537 | * c-common.c (sizeof_pointer_memaccess_warning): New function. | |
1538 | * c.opt (-Wsizeof-pointer-memaccess): Add new option. | |
1539 | * c-opts.c (c_common_handle_option): Enable it for -Wall. | |
1540 | * c-common.h (sizeof_pointer_memaccess_warning): Add prototype. | |
1541 | * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def. | |
1542 | ||
ec11736b | 1543 | 2012-08-10 Richard Guenther <rguenther@suse.de> |
1544 | ||
1545 | * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names. | |
1546 | ||
5f7f600e | 1547 | 2012-08-07 Steven Bosscher <steven@gcc.gnu.org> |
1548 | ||
1549 | * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush | |
1550 | instead of separate pp_newline and pp_flush. | |
1551 | (print_c_tree): Likewise. | |
1552 | ||
758a38ab | 1553 | 2012-07-26 Richard Henderson <rth@redhat.com> |
1554 | ||
1555 | * c-common.c (handle_hot_attribute): Allow labels. | |
1556 | (handle_cold_attribute): Likewise. | |
1557 | ||
9ca77b08 | 1558 | 2012-07-20 Jakub Jelinek <jakub@redhat.com> |
1559 | ||
1560 | PR c++/28656 | |
1561 | * c-common.c (check_function_nonnull): Handle multiple nonnull | |
1562 | attributes properly. | |
1563 | ||
b9ed1410 | 1564 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
1565 | ||
1566 | * c-gimplify.c: Include dumpfile.h instead of tree-dump.h. | |
1567 | * c-ada-spec.c: Likewise. | |
1568 | * c-dump.c (dump_stmt): Move to cp/dump.c, the only user. | |
1569 | ||
c2a65b90 | 1570 | 2012-07-14 Steven Bosscher <steven@gcc.gnu.org> |
1571 | ||
1572 | * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define. | |
1573 | Remove code conditional on it. | |
1574 | ||
88c5a1d1 | 1575 | 2012-07-11 Steven Bosscher <steven@gcc.gnu.org> |
1576 | ||
1577 | * c-gimplify.c: Do not include basic-block.h. | |
1578 | * c-common.c: Do not include linfuncs.h. | |
1579 | ||
4a020a8c | 1580 | 2012-07-08 Steven Bosscher <steven@gcc.gnu.org> |
1581 | ||
1582 | * c-common.h: Include tree.h. | |
1583 | ||
c28ddc97 | 1584 | 2012-07-02 Jason Merrill <jason@redhat.com> |
1585 | ||
1586 | PR c++/53524 | |
1587 | * c-common.c (get_priority): Call default_conversion. | |
1588 | ||
405ed67f | 1589 | 2012-07-01 Uros Bizjak <ubizjak@gmail.com> |
1590 | ||
1591 | * c-pch.c (c_common_write_pch): Remove unused variables. | |
1592 | ||
e53d55e7 | 1593 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
1594 | ||
1595 | * cppspec.c: Moved from gcc/ to here. | |
1596 | ||
3d9c25ec | 1597 | 2012-06-27 Kai Tietz <ktietz@redhat.com> |
1598 | ||
1599 | PR preprocessor/37215 | |
1600 | * c-ppoutput.c (preprocess_file): Check for nonempty buffer. | |
1601 | ||
3169c57a | 1602 | 2012-06-21 Steven Bosscher <steven@gcc.gnu.org> |
1603 | ||
1604 | * c-common.h (c_common_print_pch_checksum): Remove. | |
1605 | * c-pch.c: Do not include output.h. | |
1606 | (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME. | |
1607 | (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined. | |
1608 | (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
1609 | (struct c_pch_header): Remove. | |
1610 | (get_ident): Update gpch version. | |
1611 | (pch_init): Do not print executable_checksum to asm_out_file. | |
1612 | Do not fail if there is no asm_out_file to read back from. Set | |
1613 | asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
1614 | (c_common_write_pch): Verify that nothing was written to asm_out_file | |
1615 | since pch_init was called. Do not write a c_pch_header, and do not | |
1616 | copy from asm_out_file to the PCH. | |
1617 | (c_common_read_pch): Do not read a c_pch_header, and do not restore | |
1618 | the content of asm_out_file from the PCH. | |
1619 | (c_common_print_pch_checksum): Remove. | |
1620 | * c-opts.c (c_common_init): Print out executable_checksum directly. | |
1621 | ||
ff6624bc | 1622 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
1623 | ||
1624 | * c-target.def (objc_declare_unresolved_class_reference, | |
1625 | objc_declare_class_definition): Add new hooks. | |
1626 | ||
367b1459 | 1627 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
1628 | ||
1629 | * c-lex.c: Do not include output.h. | |
1630 | (cb_ident): Try to put out .ident with targetm.asm_out.output_ident. | |
1631 | Remove uses of ASM_OUTPUT_IDENT. | |
1632 | ||
bf0cb017 | 1633 | 2012-06-15 Marc Glisse <marc.glisse@inria.fr> |
1634 | ||
1635 | PR c++/51033 | |
1636 | * c-common.h (c_build_vec_perm_expr): Move decl here. | |
1637 | * c-common.c (c_build_vec_perm_expr): Move definition | |
1638 | here. | |
1639 | ||
b37a3600 | 1640 | 2012-06-06 Steven Bosscher <steven@gcc.gnu.org> |
1641 | ||
1642 | * c.opt (fconserve-space): Turn into a no-op. | |
1643 | ||
19931eea | 1644 | 2012-06-04 Sterling Augustine <saugustine@google.com> |
5f9e7dd5 | 1645 | |
1646 | * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator. | |
1647 | * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at | |
1648 | both the start and end of the function. | |
1649 | ||
dff12c10 | 1650 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
1651 | ||
1652 | * c-common.c: Do not include output.h. | |
1653 | * c-pragma.c: Likewise. | |
1654 | ||
5f9e7dd5 | 1655 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
1656 | ||
1657 | * error.c (dump_decl): Check pp_c_flag_gnu_v3. | |
1658 | (decl_as_dwarf_string, lang_decl_dwarf_name): New functions. | |
1659 | (lang_decl_name): Handle namespace decls. | |
1660 | ||
b5369b7d | 1661 | 2012-05-31 Steven Bosscher <steven@gcc.gnu.org> |
1662 | ||
1663 | * c-ada-spec.c: Do not include output.h. | |
1664 | * c-semantics.c: Likewise. | |
1665 | ||
8032877c | 1666 | 2012-05-29 Joseph Myers <joseph@codesourcery.com> |
1667 | ||
1668 | * c-common.c: Fix typo. | |
1669 | ||
7843e4bc | 1670 | 2012-05-29 Michael Matz <matz@suse.de> |
1671 | ||
1672 | * c-common.h (c_expand_decl): Remove prototype. | |
1673 | ||
8cf857d4 | 1674 | 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1675 | ||
1676 | * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall). | |
1677 | * c-opts.c (c_common_handle_option): Remove code handling | |
1678 | warn_missing_braces. | |
1679 | ||
8b64dc3c | 1680 | 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com> |
1681 | ||
1682 | PR c++/25137 | |
1683 | * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable | |
1684 | -Wmissing_braces. | |
1685 | ||
43cbde16 | 1686 | 2012-05-22 Dodji Seketeli <dodji@redhat.com> |
1687 | ||
1688 | PR c++/53322 | |
1689 | * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused). | |
1690 | ||
db490cb6 | 1691 | 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1692 | ||
1693 | * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here. | |
1694 | * c-opts.c (c_common_handle_option): Do not handle explicitly | |
1695 | Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors. | |
1696 | ||
a60f3e81 | 1697 | 2012-05-16 Dodji Seketeli <dodji@redhat.com> |
1698 | ||
1699 | PR preprocessor/7263 | |
1700 | * c-lex.c (c_lex_with_flags): Pass a virtual location to the call | |
1701 | to cpp_classify_number. For diagnostics, use the precise location | |
1702 | instead of the global input_location. | |
1703 | ||
82e6ef7c | 1704 | 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
1705 | ||
cd4797ff | 1706 | PR c++/11856 |
82e6ef7c | 1707 | * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings. |
1708 | ||
258a168d | 1709 | 2012-05-14 Bernd Schmidt <bernds@codesourcery.com> |
1710 | ||
82e6ef7c | 1711 | * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary. |
258a168d | 1712 | |
d3b7ee7c | 1713 | 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1714 | ||
1715 | PR 53063 | |
1716 | * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init, | |
1717 | Wreorder): Use LangEnabledBy. | |
1718 | * c-opts.c (c_common_handle_option): Do not enable them | |
1719 | explicitly. Call lang-specific generated functions. | |
1720 | (c_common_post_options): Do not set them here. | |
1721 | ||
70059cea | 1722 | 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1723 | ||
1724 | * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers, | |
1725 | Wmissing-field-initializers,Wmissing-parameter-type, | |
1726 | Wold-style-declaration,Woverride-init): Use EnabledBy. | |
1727 | * c-opts.c (c_common_post_options): Do not set here explicitly. | |
1728 | ||
fbb6fbd8 | 1729 | 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1730 | ||
1731 | PR 53063 | |
1732 | * c-opts.c (c_common_handle_option): Use handle_generated_option | |
1733 | to enable sub-options. | |
1734 | ||
61f69bc9 | 1735 | 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com> |
1736 | ||
1737 | PR c++/53158 | |
1738 | * c-common.c (warnings_for_convert_and_check): Use warning_at. | |
1739 | ||
5a1fe2db | 1740 | 2012-05-10 Richard Guenther <rguenther@suse.de> |
1741 | ||
1742 | * c-common.c (c_sizeof_or_alignof_type): Remove assert and | |
1743 | adjust commentary about TYPE_IS_SIZETYPE types. | |
1744 | ||
d42e7c5a | 1745 | 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1746 | ||
1747 | PR c++/53261 | |
1748 | * c-common.c (warn_logical_operator): Check that argument of | |
1749 | integer_zerop is not NULL. | |
1750 | ||
686369e8 | 1751 | 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1752 | ||
1753 | PR c/43772 | |
1754 | * c-common.c (warn_logical_operator): Do not warn if either side | |
1755 | is already true or false. | |
1756 | ||
03fe1dc2 | 1757 | 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1758 | ||
1759 | PR c/51712 | |
1760 | * c-common.c (expr_original_type): New. | |
1761 | (shorten_compare): Do not warn for enumeration types. | |
1762 | ||
bba5a206 | 1763 | 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1764 | ||
1765 | * c.opt (fpermissive): Add Var(flag_permissive). | |
1766 | ||
7059d45d | 1767 | 2012-04-30 Marc Glisse <marc.glisse@inria.fr> |
1768 | ||
1769 | PR c++/51033 | |
1770 | * c-common.c (convert_vector_to_pointer_for_subscript): New function. | |
1771 | * c-common.h (convert_vector_to_pointer_for_subscript): Declare it. | |
1772 | ||
7edb1062 | 1773 | 2012-04-30 Dodji Seketeli <dodji@redhat.com> |
1774 | ||
1775 | Add -Wvarargs option | |
1776 | * c.opt (Wvarargs): Define new option. | |
1777 | ||
068bea1e | 1778 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1779 | ||
1780 | * c-common.c (check_function_arguments): Replace | |
1781 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
1782 | ||
b86527d8 | 1783 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1784 | ||
1785 | * c.opt (Wsuggest-attribute=format): New. Alias of | |
1786 | Wmissing-format-attribute. | |
1787 | * c-format.c (decode_format_type): Replace | |
1788 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
1789 | (check_function_format): Likewise. | |
1790 | ||
19931eea | 1791 | 2012-04-27 Ollie Wild <aaw@google.com> |
76d340ac | 1792 | |
1793 | * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping. | |
1794 | * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix. | |
1795 | * c.opt: Add Wliteral-suffix. | |
1796 | ||
29438999 | 1797 | 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1798 | ||
1799 | PR c/44774 | |
1800 | * c.opt (Wpedantic): New. | |
1801 | (pedantic): Alias Wpedantic. | |
1802 | * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic. | |
1803 | (c_common_post_options): Likewise. | |
1804 | (sanitize_cpp_opts): Likewise. | |
1805 | * c-lex.c (interpret_float): Likewise. | |
1806 | * c-format.c (check_format_types): Likewise. | |
1807 | * c-common.c (pointer_int_sum): Likewise. | |
1808 | (c_sizeof_or_alignof_type): Likewise. | |
1809 | (c_add_case_label): Likewise. | |
1810 | (c_do_switch_warnings): Likewise. | |
1811 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
1812 | ||
4f9d6b8b | 1813 | 2012-04-15 Jason Merrill <jason@redhat.com> |
1814 | ||
1815 | PR c++/52818 | |
1816 | * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99. | |
1817 | (C_STD_NAME): Distinguish between C++98 and C++11. | |
1818 | ||
74bdbe96 | 1819 | 2012-04-11 Eric Botcazou <ebotcazou@adacore.com> |
1820 | ||
1821 | PR target/52624 | |
1822 | * c-common.h (uint16_type_node): Rename into... | |
1823 | (c_uint16_type_node): ...this. | |
1824 | * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming. | |
1825 | * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise. | |
1826 | ||
3d177e8c | 1827 | 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1828 | ||
1829 | * c-common.c (warn_if_unused_value): Move definition to here. | |
1830 | * c-common.h (warn_if_unused_value): Move declaration to here. | |
1831 | ||
6a9a958f | 1832 | 2012-03-23 William Bader <williambader@hotmail.com> |
1833 | ||
1834 | * c-lex.c (c_lex_with_flags): Avoid declarations after stmts. | |
1835 | ||
543efdbe | 1836 | 2012-03-20 Jason Merrill <jason@redhat.com> |
1837 | ||
1838 | * c-common.h (enum cxx_dialect): Add cxx1y. | |
1839 | * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect | |
1840 | test. | |
1841 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
1842 | * c-opts.c (c_common_post_options): Likewise. | |
1843 | (set_std_cxx1y): New. | |
1844 | (c_common_handle_option): Call it. | |
1845 | * c.opt (-std=c++1y, -std=gnu++1y): New flags. | |
1846 | ||
62206d34 | 1847 | 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com> |
1848 | ||
1849 | PR c++/14710 | |
1850 | * c.opt ([Wuseless-cast]): Add. | |
1851 | ||
fadf62f4 | 1852 | 2012-03-16 Richard Guenther <rguenther@suse.de> |
1853 | ||
1854 | * c-pretty-print.c (pp_c_initializer_list): Adjust. | |
1855 | ||
249faa35 | 1856 | 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1857 | ||
1858 | PR c++/44783 | |
1859 | * c.opt (ftemplate-backtrace-limit) Add. | |
1860 | ||
126b6848 | 1861 | 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1862 | ||
1863 | * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix | |
1864 | handling. | |
1865 | * c-pragma.c (handle_pragma_extern_prefix): Remove. | |
1866 | (init_pragma): Don't register extern_prefix. | |
1867 | ||
a51edb4c | 1868 | 2012-03-12 Richard Guenther <rguenther@suse.de> |
1869 | ||
1870 | * c-common.c (c_common_get_narrower): Use c_common_type_for_size. | |
1871 | (builtin_type_for_size): Likewise. | |
1872 | ||
0f6a7cb7 | 1873 | 2012-02-13 Jakub Jelinek <jakub@redhat.com> |
1874 | ||
1875 | PR c++/52215 | |
1876 | * c-common.c (sync_resolve_params): Don't decide whether to convert | |
1877 | or not based on TYPE_SIZE comparison, convert whenever arg_type | |
1878 | is unsigned INTEGER_TYPE. | |
1879 | ||
0779e32c | 1880 | 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com> |
1881 | ||
1882 | PR c/52118 | |
1883 | * c.opt ([Wunused-local-typedefs]): Fix description. | |
1884 | ||
baec58e1 | 1885 | 2012-01-24 Mike Stump <mikestump@comcast.net> |
1886 | ||
1887 | * c-common.c (c_common_type_for_mode): Match signed/unsigned types | |
1888 | exactly. | |
1889 | ||
c779d8cc | 1890 | 2012-01-18 Richard Guenther <rguenther@suse.de> |
1891 | ||
1892 | * c-opts.c (c_common_post_options): Reset LTO flags if | |
1893 | we are about to generate a PCH. | |
1894 | ||
ee917d24 | 1895 | 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com> |
1896 | ||
1897 | PR c++/51777 | |
1898 | * c-pretty-print.c (pp_c_integer_constant): For unsigned constants | |
1899 | use pp_unsigned_wide_integer. | |
1900 | ||
90e2341f | 1901 | 2012-01-10 Richard Guenther <rguenther@suse.de> |
1902 | ||
1903 | PR middle-end/51806 | |
1904 | * c-opts.c (c_common_handle_option): Move -Werror handling | |
1905 | to language independent code. | |
1906 | ||
9ea022ce | 1907 | 2012-01-05 Richard Guenther <rguenther@suse.de> |
1908 | ||
1909 | PR middle-end/51764 | |
1910 | * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here | |
1911 | from common.opt. | |
1912 | ||
3df19e1b | 1913 | 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com> |
1914 | ||
1915 | PR c++/51316 | |
1916 | * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof | |
1917 | of array types with an unknown bound. | |
1918 | ||
32074525 | 1919 | 2011-12-20 Joseph Myers <joseph@codesourcery.com> |
1920 | ||
1921 | * c-common.c (flag_isoc99): Update comment to refer to C11. | |
1922 | (flag_isoc1x): Change to flag_isoc11. | |
1923 | * c-common.h (flag_isoc99): Update comment to refer to C11. | |
1924 | (flag_isoc1x): Change to flag_isoc11. | |
1925 | * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to | |
1926 | C11. | |
1927 | * c-opts.c (set_std_c1x): Change to set_std_c11. | |
1928 | (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11. | |
1929 | Call set_std_c11. | |
1930 | (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11. | |
1931 | (set_std_c1): Use CLK_STDC11 and CLK_GNUC11. | |
1932 | * c.opt (std=c1x): Change to std=c11. Document as non-draft | |
1933 | standard. | |
1934 | (std=c1x, std=iso9899:2011): Add as aliases of std=c11. | |
1935 | (std=gnu1x): Change to std=gnu11. Refer to non-draft standard. | |
1936 | (std=gnu1x): Make alias of std=gnu11. | |
1937 | ||
fca86134 | 1938 | 2011-12-19 Jason Merrill <jason@redhat.com> |
1939 | ||
1940 | PR c++/51228 | |
1941 | * c-common.c (handle_transparent_union_attribute): Check the first | |
1942 | field if the type is complete. | |
1943 | ||
aa4313eb | 1944 | 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com> |
1945 | ||
1946 | PR libstdc++/51365 | |
1947 | * c-common.c (RID_IS_FINAL): Add. | |
1948 | * c-common.h (RID_IS_FINAL): Add. | |
1949 | ||
3f3d5ad4 | 1950 | 2011-11-30 Iain Sandoe <iains@gcc.gnu.org> |
1951 | ||
1952 | * c.opt (fgnu-runtime): Provide full description. | |
1953 | (fnext-runtime): Likewise. | |
1954 | * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove. | |
1955 | ||
c4606d19 | 1956 | 2011-11-28 Andrew MacLeod <amacleod@redhat.com> |
1957 | ||
1958 | * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic | |
1959 | predefines in one place. Add LOCK_FREE predefines. | |
1960 | (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to | |
1961 | new func. | |
1962 | ||
1d581089 | 1963 | 2011-11-24 Andrew MacLeod <amacleod@redhat.com> |
1964 | ||
1965 | PR c/51256 | |
19931eea | 1966 | * c-common.c (get_atomic_generic_size): Check for various error |
1d581089 | 1967 | conditions |
19931eea | 1968 | (resolve_overloaded_atomic_exchange, |
1969 | resolve_overloaded_atomic_compare_exchange, | |
1d581089 | 1970 | resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return |
1971 | error_mark_node for error conditions. | |
19931eea | 1972 | |
6aa221fa | 1973 | 2011-11-08 Richard Guenther <rguenther@suse.de> |
1974 | ||
1975 | PR middle-end/51010 | |
1976 | c-family/ | |
1977 | ||
4c0315d0 | 1978 | 2011-11-07 Richard Henderson <rth@redhat.com> |
1979 | Aldy Hernandez <aldyh@redhat.com> | |
1980 | Torvald Riegel <triegel@redhat.com> | |
1981 | ||
1982 | Merged from transactional-memory. | |
1983 | ||
1984 | * c-common.c (handle_tm_wrap_attribute, | |
1985 | handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New. | |
1986 | (struct c_common_reswords): Added __transaction* keywords. | |
1987 | (struct c_common_attribute_table): Added transaction* and tm_regparm | |
1988 | attributes. | |
1989 | * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT* | |
1990 | masks. | |
1991 | (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr, | |
1992 | find_tm_attribute): Declare. | |
1993 | ||
920f5a70 | 1994 | 2011-11-07 Jason Merrill <jason@redhat.com> |
1995 | ||
1996 | PR c++/35688 | |
1997 | * c-common.c, c-common.h: Revert yesterday's changes. | |
1998 | ||
b4f861b4 | 1999 | 2011-11-06 Jason Merrill <jason@redhat.com> |
2000 | ||
2001 | PR c++/35688 | |
2002 | * c-common.c (decl_has_visibility_attr): Split out from... | |
2003 | (c_determine_visibility): ...here. | |
2004 | * c-common.h: Declare it. | |
2005 | ||
83e25171 | 2006 | 2011-11-06 Joseph Myers <joseph@codesourcery.com> |
2007 | ||
2008 | * c-common.c (c_common_reswords): Add _Alignas and _Alignof. | |
2009 | (c_sizeof_or_alignof_type): Diagnose alignof applied to a function | |
2010 | type. | |
2011 | (check_user_alignment): New. Split out of | |
2012 | handle_aligned_attribute. Disallow integer constants with | |
2013 | noninteger types. Conditionally allow zero. | |
2014 | (handle_aligned_attribute): Use check_user_alignment. | |
2015 | * c-common.h (RID_ALIGNAS, check_user_alignment): New. | |
2016 | ||
1cd6e20d | 2017 | 2011-11-06 Andrew MacLeod <amacleod@redhat.com> |
2018 | Richard Henderson <rth@redhat.com> | |
2019 | ||
2020 | Merged from cxx-mem-model. | |
2021 | ||
2022 | * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns. | |
19931eea | 2023 | * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak |
1cd6e20d | 2024 | parameters that are the same type size. |
2025 | (get_atomic_generic_size): New. Find size of generic | |
2026 | atomic function parameters and do typechecking. | |
2027 | (add_atomic_size_parameter): New. Insert size into parameter list. | |
2028 | (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to | |
2029 | either __atomic_exchange_n or external library call. | |
19931eea | 2030 | (resolve_overloaded_atomic_compare_exchange): Restructure |
1cd6e20d | 2031 | __atomic_compare_exchange to either _n variant or external library call. |
19931eea | 2032 | (resolve_overloaded_atomic_load): Restructure __atomic_load to either |
1cd6e20d | 2033 | __atomic_load_n or an external library call. |
2034 | (resolve_overloaded_atomic_store): Restructure __atomic_store to either | |
2035 | __atomic_store_n or an external library call. | |
2036 | (resolve_overloaded_builtin): Handle new __atomic builtins. | |
2037 | ||
7549df0d | 2038 | 2011-11-04 Eric Botcazou <ebotcazou@adacore.com> |
2039 | ||
2040 | PR c++/50608 | |
2041 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1. | |
2042 | (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust. | |
2043 | <INDIRECT_REF>: Return the argument. | |
2044 | <ARRAY_REF>: Remove special code for negative offset. | |
2045 | Call fold_build_pointer_plus instead of size_binop. | |
2046 | (fold_offsetof): Remove STOP_REF argument and adjust. | |
2047 | * c-common.h (fold_offsetof_1): Declare. | |
2048 | (fold_offsetof): Remove STOP_REF argument. | |
2049 | ||
7e783eb3 | 2050 | 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com> |
2051 | ||
2052 | PR c++/50810 | |
2053 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
2054 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
2055 | Wnarrowing for C++0x and C++98. | |
2056 | * c.opt ([Wnarrowing]): Update. | |
2057 | ||
8fe701f5 | 2058 | 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com> |
2059 | ||
2060 | PR c++/44277 | |
2061 | * c.opt: Add Wzero-as-null-pointer-constant. | |
2062 | ||
0d84dc2d | 2063 | 2011-10-31 Jason Merrill <jason@redhat.com> |
2064 | ||
67031f52 | 2065 | * c.opt (-fdeduce-init-list): Off by default. |
2066 | ||
0d84dc2d | 2067 | PR c++/50920 |
2068 | * c-common.h (cxx_dialect): Add cxx11 and cxx03. | |
2069 | * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03, | |
2070 | and -Wc++11-compat. | |
2071 | * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x. | |
2072 | ||
66f24c41 | 2073 | 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov> |
2074 | ||
2075 | PR c++/30066 | |
2076 | * c.opt (fvisibility-inlines-hidden): Description change. | |
2077 | ||
244db24d | 2078 | 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net> |
2079 | ||
2080 | Implement C++11 user-defined literals. | |
2081 | * c-common.c (build_userdef_literal): New. | |
2082 | * c-common.def: New tree code. | |
2083 | * c-common.h (tree_userdef_literal): New tree struct and accessors. | |
2084 | * c-lex.c (interpret_float): Add suffix parm. | |
2085 | (c_lex_with_flags): Build literal tokens. | |
2086 | ||
235be70f | 2087 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
2088 | ||
2089 | PR c++/50841 | |
2090 | Revert: | |
2091 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> | |
2092 | ||
2093 | PR c++/50810 | |
2094 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
2095 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
2096 | Wnarrowing for C++0x and C++98. | |
2097 | * c.opt ([Wnarrowing]): Update. | |
2098 | ||
4fe0fb1c | 2099 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
2100 | ||
2101 | PR c++/50810 | |
2102 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
2103 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
2104 | Wnarrowing for C++0x and C++98. | |
2105 | * c.opt ([Wnarrowing]): Update. | |
2106 | ||
5f7504f9 | 2107 | 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> |
2108 | ||
2109 | PR c++/45385 | |
2110 | * c-common.c (conversion_warning): Remove code looking for | |
2111 | artificial operands. | |
2112 | ||
2a688977 | 2113 | 2011-10-18 Dodji Seketeli <dodji@redhat.com> |
2114 | ||
2115 | PR bootstrap/50760 | |
2116 | * c-lex.c (fe_file_change): Use LINEMAP_SYSP when | |
19931eea | 2117 | !NO_IMPLICIT_EXTERN_C. |
2a688977 | 2118 | |
326e3391 | 2119 | 2011-10-17 Michael Spertus <mike_spertus@symantec.com> |
2120 | ||
2121 | * c-common.c (c_common_reswords): Add __bases, | |
2122 | __direct_bases. | |
2123 | * c-common.h: Add RID_BASES and RID_DIRECT_BASES. | |
2124 | ||
2125 | 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com> | |
2126 | ||
2127 | PR c++/50757 | |
2128 | * c.opt ([Wnonnull]): Add C++ and Objective-C++. | |
2129 | ||
62db153a | 2130 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
2131 | Dodji Seketeli <dodji@redhat.com> | |
2132 | ||
2133 | * c.opt (fdebug-cpp): New option. | |
2134 | * c-opts.c (c_common_handle_option): Handle the option. | |
2135 | * c-ppoutput.c (maybe_print_line_1): New static function. Takes an | |
2136 | output stream in parameter. Factorized from ... | |
2137 | (maybe_print_line): ... this. Dump location debug information when | |
2138 | -fdebug-cpp is in effect. | |
2139 | (print_line_1): New static function. Takes an output stream in | |
2140 | parameter. Factorized from ... | |
2141 | (print_line): ... here. Dump location information when -fdebug-cpp | |
2142 | is in effect. | |
2143 | (scan_translation_unit): Dump location information when | |
2144 | -fdebug-cpp is in effect. | |
2145 | ||
ce70f433 | 2146 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
2147 | Dodji Seketeli <dodji@redhat.com> | |
2148 | ||
2149 | * c.opt (ftrack-macro-expansion): New option. Handle it with and | |
2150 | without argument. | |
2151 | * c-opts.c (c_common_handle_option)<case | |
2152 | OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New | |
2153 | cases. Handle -ftrack-macro-expansion with and without argument. | |
2154 | ||
97bfb9ef | 2155 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
2156 | Dodji Seketeli <dodji@redhat.com> | |
2157 | ||
2158 | * c-ppoutput.c (scan_translation_unit, maybe_print_line) | |
2159 | (print_line, cb_define, do_line_change): Adjust to avoid touching | |
2160 | the internals of struct line_map. Use the public API instead. | |
2161 | * c-pch.c (c_common_read_pch): Likewise. | |
2162 | * c-lex.c (fe_file_change): Likewise. | |
2163 | ||
326e3391 | 2164 | 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com> |
2165 | ||
2166 | PR c++/17212 | |
2167 | * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++. | |
2168 | ||
2169 | 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com> | |
2170 | ||
2171 | PR c++/33067 | |
2172 | * c-pretty-print.c (pp_c_floating_constant): Output | |
2173 | max_digits10 (in the ISO C++ WG N1822 sense) decimal digits. | |
2174 | ||
b9a16870 | 2175 | 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com> |
2176 | ||
2177 | * c-common.c (def_builtin_1): Delete old interface with two | |
2178 | parallel arrays to hold standard builtin declarations, and replace | |
2179 | it with a function based interface that can support creating | |
2180 | builtins on the fly in the future. Change all uses, and poison | |
2181 | the old names. Make sure 0 is not a legitimate builtin index. | |
2182 | * c-omp.c (c_finish_omp_barrier): Ditto. | |
2183 | (c_finish_omp_taskwait): Ditto. | |
2184 | (c_finish_omp_flush): Ditto. | |
2185 | ||
c7964868 | 2186 | 2011-10-11 Tristan Gingold <gingold@adacore.com> |
2187 | ||
2188 | * c.opt: (fallow-parameterless-variadic-functions): New. | |
2189 | ||
a4e3ffad | 2190 | 2011-09-08 Dodji Seketeli <dodji@redhat.com> |
2191 | ||
2192 | PR c++/33255 - Support -Wunused-local-typedefs warning | |
2193 | * c-common.h (struct c_language_function::local_typedefs): New | |
2194 | field. | |
19931eea | 2195 | (record_locally_defined_typedef, maybe_record_typedef_use) |
2196 | (maybe_warn_unused_local_typedefs): Declare new functions. | |
a4e3ffad | 2197 | * c-common.c (record_locally_defined_typedef) |
19931eea | 2198 | (maybe_record_typedef_use) |
2199 | (maybe_warn_unused_local_typedefs): Define new functions. | |
a4e3ffad | 2200 | * c.opt: Declare new -Wunused-local-typedefs flag. |
2201 | ||
737a23cc | 2202 | 2011-09-06 Eric Botcazou <ebotcazou@adacore.com> |
2203 | ||
2204 | PR middle-end/50266 | |
2205 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like | |
2206 | computations. | |
2207 | ||
7542c3b4 | 2208 | 2011-09-05 Richard Guenther <rguenther@suse.de> |
2209 | ||
2210 | * c-common.c (complete_array_type): Use ssize_int (-1) instead | |
2211 | of integer_minus_one_node for empty array upper bounds. | |
2212 | ||
1dc92c59 | 2213 | 2011-08-28 Dodji Seketeli <dodji@redhat.com> |
2214 | ||
2215 | * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as | |
2216 | it's the first time it's being called on this main TU. | |
2217 | ||
2bdf2b6e | 2218 | 2011-08-24 Richard Guenther <rguenther@suse.de> |
2219 | ||
2220 | PR c/49396 | |
2221 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. | |
2222 | ||
2223 | 2011-08-22 Gabriel Charette <gchare@google.com> | |
6ea2c7a3 | 2224 | |
2225 | * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens | |
2226 | defined in cpp_init_builtins and c_cpp_builtins. | |
2227 | ||
bff4ad11 | 2228 | 2011-08-19 Joseph Myers <joseph@codesourcery.com> |
2229 | ||
2230 | * c-common.c (c_common_reswords): Add __builtin_complex. | |
2231 | * c-common.h (RID_BUILTIN_COMPLEX): New. | |
2232 | ||
985c6e3a | 2233 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
2234 | ||
2235 | * c-common.c (c_common_reswords): Add _Noreturn. | |
2236 | (keyword_is_function_specifier): Handle RID_NORETURN. | |
2237 | * c-common.h (RID_NORETURN): New. | |
2238 | ||
7dfa155b | 2239 | 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
2240 | ||
2241 | * c-common.c (unsafe_conversion_p): New function. Check if it is | |
2242 | unsafe to convert an expression to the type. | |
2243 | (conversion_warning): Adjust, use unsafe_conversion_p. | |
2244 | * c-common.h (unsafe_conversion_p): New function declaration. | |
2245 | ||
2169f33b | 2246 | 2011-08-02 Jakub Jelinek <jakub@redhat.com> |
2247 | ||
2248 | * c-common.h (c_finish_omp_atomic): Adjust prototype. | |
2249 | (c_finish_omp_taskyield): New prototype. | |
2250 | * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1 | |
2251 | arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and | |
2252 | OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1 | |
2253 | or RHS1 have side-effects, evaluate those too in the right spot, | |
2254 | if it is a decl and LHS is also a decl, error out if they | |
2255 | aren't the same. | |
2256 | (c_finish_omp_taskyield): New function. | |
2257 | * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107. | |
2258 | * c-pragma.c (omp_pragmas): Add taskyield. | |
2259 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD. | |
2260 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and | |
2261 | PRAGMA_OMP_CLAUSE_MERGEABLE. | |
2262 | ||
ab77850e | 2263 | 2011-07-25 Dodji Seketeli <dodji@redhat.com> |
2264 | ||
2265 | * c-common.h (set_underlying_type): Remove parm name from | |
2266 | declaration. | |
2267 | ||
6ee97920 | 2268 | 2011-07-25 Romain Geissler <romain.geissler@gmail.com> |
2269 | ||
2270 | * c-pretty-print.h: Search c-common.h in c-family. | |
19931eea | 2271 | |
dc251364 | 2272 | 2011-07-22 Jason Merrill <jason@redhat.com> |
2273 | ||
1a2a35f0 | 2274 | PR c++/49793 |
2275 | * c.opt (Wnarrowing): New. | |
2276 | ||
27282252 | 2277 | PR c++/30112 |
2278 | * c-common.h: Declare c_linkage_bindings. | |
2279 | * c-pragma.c (handle_pragma_redefine_extname): Use it. | |
2280 | ||
dc251364 | 2281 | PR c++/49813 |
2282 | * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99. | |
2283 | * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well | |
2284 | as flag_isoc99 for 'restrict'. | |
2285 | (pp_c_specifier_qualifier_list): Likewise for _Complex. | |
2286 | ||
fc501191 | 2287 | 2011-07-21 Ian Lance Taylor <iant@google.com> |
2288 | ||
2289 | PR middle-end/49705 | |
2290 | * c-common.c (c_disable_warnings): New static function. | |
2291 | (c_enable_warnings): New static function. | |
2292 | (c_fully_fold_internal): Change local unused_p to bool. Call | |
2293 | c_disable_warnings and c_enable_warnings rather than change | |
2294 | c_inhibit_evaluation_warnings. | |
2295 | ||
07b8f133 | 2296 | 2011-07-20 Jason Merrill <jason@redhat.com> |
2297 | ||
2298 | PR c++/6709 (DR 743) | |
2299 | PR c++/42603 (DR 950) | |
2300 | * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h. | |
2301 | (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise. | |
2302 | (CPP_DECLTYPE): New. | |
2303 | * c-common.c (c_parse_error): Handle CPP_DECLTYPE. | |
2304 | ||
2cc66f2a | 2305 | 2011-07-19 Richard Guenther <rguenther@suse.de> |
2306 | ||
2307 | * c-common.c (pointer_int_sum): Use fold_build_pointer_plus. | |
2308 | * c-omp.c (c_finish_omp_for): Likewise. | |
2309 | ||
3c802a1e | 2310 | 2011-07-12 Eric Botcazou <ebotcazou@adacore.com> |
2311 | ||
2312 | * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop | |
2313 | body on the next line. | |
2314 | ||
98a33d9f | 2315 | 2011-07-08 Jason Merrill <jason@redhat.com> |
2316 | ||
3115bda0 | 2317 | PR c++/45437 |
2318 | * c-omp.c (check_omp_for_incr_expr): Handle preevaluation. | |
2319 | ||
98a33d9f | 2320 | PR c++/49673 |
2321 | * c-common.c (c_apply_type_quals_to_decl): Don't check | |
2322 | TYPE_NEEDS_CONSTRUCTING. | |
2323 | ||
c38a75b7 | 2324 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
2325 | ||
2326 | * c-common.c (c_common_nodes_and_builtins): | |
2327 | Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. | |
2328 | ||
e593356b | 2329 | 2011-07-05 Richard Guenther <rguenther@suse.de> |
2330 | ||
2331 | * c-common.c (c_common_nodes_and_builtins): Build all common | |
2332 | tree nodes first. | |
2333 | ||
fca0886c | 2334 | 2011-06-27 Jakub Jelinek <jakub@redhat.com> |
2335 | ||
a68f7a8d | 2336 | * c-common.h (c_tree_chain_next): New static inline function. |
2337 | ||
fca0886c | 2338 | * c-common.c (check_builtin_function_arguments): Handle |
2339 | BUILT_IN_ASSUME_ALIGNED. | |
2340 | ||
2797f13a | 2341 | 2011-06-21 Andrew MacLeod <amacleod@redhat.com> |
2342 | ||
2343 | * c-common.c: Add sync_ or SYNC__ to builtin names. | |
2344 | * c-omp.c: Add sync_ or SYNC__ to builtin names. | |
9cad95b7 | 2345 | |
2346 | 2011-06-20 Pierre Vittet <piervit@pvittet.com> | |
2347 | ||
2348 | * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New | |
2349 | handler. | |
2350 | (gen_pragma_handler): New union. | |
2351 | (internal_pragma_handler): New type. | |
2352 | (c_register_pragma_with_data) | |
2353 | (c_register_pragma_with_expansion_and_data): New functions. | |
2354 | ||
2355 | * c-pragma.c (registered_pragmas, c_register_pragma_1) | |
2356 | (c_register_pragma, c_register_pragma_with_expansion) | |
2357 | (c_invoke_pragma_handler): Changed to work with | |
2358 | internal_pragma_handler. | |
2359 | (c_register_pragma_with_data) | |
2360 | (c_register_pragma_with_expansion_and_data): New functions. | |
2361 | ||
218e3e4e | 2362 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
2363 | ||
2364 | * c-common.c: Include common/common-target.h. | |
2365 | (handle_section_attribute): Use | |
2366 | targetm_common.have_named_sections. | |
2367 | * c-cppbuiltin.c: Include common/common-target.h. | |
2368 | (c_cpp_builtins): Use targetm_common.except_unwind_info. | |
2369 | ||
41e53ed2 | 2370 | 2011-06-10 Richard Guenther <rguenther@suse.de> |
2371 | ||
2372 | * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier | |
2373 | to print a IDENTIFIER_NODE. | |
2374 | ||
a6f06169 | 2375 | 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2376 | Joseph Myers <joseph@codesourcery.com> | |
2377 | ||
2378 | * c.opt (fbuilding-libgcc): New option. | |
2379 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
2380 | __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc. | |
2381 | ||
1ea9269b | 2382 | 2011-06-07 Jason Merrill <jason@redhat.com> |
2383 | ||
8ce59854 | 2384 | * c-common.c (max_tinst_depth): Lower default to 900. |
2385 | ||
1ea9269b | 2386 | * c-format.c (gcc_cxxdiag_char_table): Add 'S' format. |
2387 | ||
1af0124d | 2388 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
2389 | ||
2390 | * c-common.c (c_common_nodes_and_builtins): Do not set | |
2391 | size_type_node or call set_sizetype. | |
2392 | ||
0e9a4c01 | 2393 | 2011-06-07 Dodji Seketeli <dodji@redhat.com> |
2394 | ||
2395 | PR debug/49130 | |
2396 | * c-pretty-print.c (pp_c_integer_constant): Consider the canonical | |
19931eea | 2397 | type when using pointer comparison to compare types. |
0e9a4c01 | 2398 | |
90b40725 | 2399 | 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com> |
2400 | ||
2401 | * c.opt: Add -Wdelete-non-virtual-dtor. | |
2402 | * c-opts.c (c_common_handle_option): Include it in -Wall. | |
2403 | ||
fc9c9e87 | 2404 | 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org> |
2405 | ||
2406 | PR bootstrap/49190 | |
2407 | ||
2408 | Revert: | |
2409 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> | |
2410 | ||
2411 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
2412 | not tree_common. | |
2413 | ||
d0389adc | 2414 | 2011-05-27 Jakub Jelinek <jakub@redhat.com> |
2415 | ||
2416 | PR c++/49165 | |
2417 | * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For | |
2418 | C++ don't call c_common_truthvalue_conversion on void type arms. | |
2419 | ||
cacfdc02 | 2420 | 2011-05-27 Nathan Froyd <froydnj@codesourcery.com> |
2421 | ||
2422 | * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC. | |
2423 | (stmt_list_stack): Define. | |
2424 | (cur_stmt_list): Adjust for new type of x_cur_stmt_list. | |
2425 | * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise. | |
2426 | ||
027fc6ef | 2427 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
2428 | ||
2429 | * c-common.c (warning_candidate_p): Check for BLOCKs. | |
2430 | ||
f21317a1 | 2431 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
2432 | ||
2433 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
2434 | not tree_common. | |
2435 | ||
789e953d | 2436 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
2437 | ||
2438 | * c-common.c (def_fn_type): Remove extra va_end. | |
2439 | ||
7f506bca | 2440 | 2011-05-23 Jason Merrill <jason@redhat.com> |
2441 | ||
2442 | PR c++/48106 | |
2443 | * c-common.c (c_common_get_narrower): New. | |
2444 | (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. | |
2445 | ||
774e9d58 | 2446 | 2011-05-23 Nathan Froyd <froydnj@codesourcery.com> |
2447 | ||
2448 | * c-common.h (check_function_arguments): Tweak prototype of | |
2449 | check_function_arguments. | |
2450 | * c-common.c (check_function_arguments): Likewise. Adjust | |
2451 | calls to check_function_nonnull, check_function_format, and | |
2452 | check_function_sentinel. | |
2453 | (check_function_sentinel): Take a FUNCTION_TYPE rather than | |
2454 | separate attributes and typelist arguments. Use | |
2455 | FOREACH_FUNCTION_ARGS to iterate over argument types. | |
2456 | ||
23407dc9 | 2457 | 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
2458 | ||
2459 | * c-common.c (c_common_reswords): Reorder. | |
2460 | * c-common.h (rid): Likewise. | |
2461 | ||
3a939d12 | 2462 | 2011-05-10 Nathan Froyd <froydnj@codesourcery.com> |
2463 | ||
2464 | * c-common.c (def_fn_type): Don't call build_function_type, call | |
2465 | build_function_type_array or build_varargs_function_type_array | |
2466 | instead. | |
2467 | (c_common_nodes_and_builtins): Likewise. | |
2468 | ||
b6e3dd65 | 2469 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
2470 | ||
2471 | * c-common.c (c_add_case_label): Omit the loc argument to | |
2472 | build_case_label. | |
2473 | * c-common.h (build_case_label): Remove. | |
2474 | * c-semantics.c (build_case_label): Remove. | |
2475 | ||
4232a958 | 2476 | 2011-05-05 Joseph Myers <joseph@codesourcery.com> |
2477 | ||
2478 | * c-objc.h (objc_start_method_definition): Update prototype. | |
2479 | * stub-objc.c (objc_start_method_definition): Add extra parameter. | |
2480 | ||
d0af78c5 | 2481 | 2011-05-04 Nathan Froyd <froydnj@codesourcery.com> |
2482 | ||
2483 | * c-common.c (check_main_parameter_types): Reindent. Don't use | |
2484 | TYPE_ARG_TYPES directly. | |
2485 | (handle_nonnull_attribute): Likewise. | |
2486 | (sync_resolve_params): Likewise. | |
2487 | * c-format.c (handle_format_arg_attribute): Likewise. Adjust call | |
2488 | to check_format_string. | |
2489 | (handle_format_attribute): Likewise. | |
2490 | (check_format_string): Take a function type to examine instead of | |
2491 | a type list. Use a function_arg_iterator to step through argument | |
2492 | types. | |
2493 | ||
ceb7b692 | 2494 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
2495 | ||
2496 | * c-common.c (fix_string_type): Use size_int for index type bounds. | |
2497 | (start_fname_decls): Do not pass NULL to build_int_cst. | |
2498 | (c_init_attributes): Likewise. | |
2499 | * c-lex.c (c_lex_with_flags): Likewise. | |
2500 | ||
c66c81be | 2501 | 2011-04-27 Jason Merrill <jason@redhat.com> |
2502 | ||
2503 | * c-common.c (make_tree_vector_from_list): New. | |
2504 | * c-common.h: Declare it. | |
2505 | ||
16930c72 | 2506 | 2011-04-26 Richard Guenther <rguenther@suse.de> |
2507 | ||
2508 | PR preprocessor/48248 | |
2509 | * c-ppoutput.c (maybe_print_line): Always optimize newlines | |
2510 | for output size with -P. | |
2511 | ||
23407dc9 | 2512 | 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> |
2513 | ||
2514 | * c-common.c (struct c_common_resword): Add __underlying_type. | |
2515 | * c-common.h (enum rid): Add RID_UNDERLYING_TYPE. | |
2516 | ||
dd045aee | 2517 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
2518 | ||
2519 | * c-format.c (init_dollar_format_checking): Remove useless | |
2520 | if-before-free. | |
2521 | ||
394dd737 | 2522 | 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com> |
2523 | ||
2524 | * c-objc.h (objc_get_interface_ivars): Removed. | |
23407dc9 | 2525 | (objc_detect_field_duplicates): New. |
394dd737 | 2526 | * stub-objc.c: Likewise. |
23407dc9 | 2527 | |
a758bf7d | 2528 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
2529 | ||
2530 | * stub-objc.c (objc_declare_protocols): Renamed to | |
2531 | objc_declare_protocol. | |
2532 | * c-objc.h: Likewise. | |
23407dc9 | 2533 | |
29d7200d | 2534 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
2535 | ||
2536 | * stub-objc.c (objc_declare_class): Updated argument name. | |
2537 | ||
9b88d08d | 2538 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
2539 | ||
2540 | * c-common.h (c_common_init_ts): Declare. | |
2541 | * c-common.c (c_common_init_ts): Define. | |
2542 | ||
4185cf58 | 2543 | 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> |
2544 | ||
2545 | * c-objc.h (objc_build_message_expr): Updated prototype. | |
2546 | * stub-objc.c (objc_build_message_expr): Likewise. | |
19931eea | 2547 | |
5a90471f | 2548 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
2549 | ||
2550 | * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead | |
2551 | of cgraph_node. | |
2552 | ||
783bb57e | 2553 | 2011-04-11 Richard Guenther <rguenther@suse.de> |
2554 | ||
2555 | * c-common.c (complete_array_type): Build a range type of | |
2556 | proper type. | |
2557 | ||
c33080b9 | 2558 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
2559 | ||
2560 | * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. | |
2561 | (handle_type_generic_attribute): Likewise. | |
2562 | ||
f8913d47 | 2563 | 2011-04-07 Jason Merrill <jason@redhat.com> |
2564 | ||
2565 | PR c++/48450 | |
2566 | * c-common.c (c_common_truthvalue_conversion): Don't ignore | |
2567 | conversion from C++0x scoped enum. | |
2568 | ||
c94b1d0e | 2569 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
2570 | ||
2571 | * c-target-def.h: New file. | |
2572 | * c-target.def: New file. | |
2573 | * c-target.h: New file. | |
2574 | * c-common.c (targetcm): Don't define here. | |
2575 | * c-common.h (default_handle_c_option): Declare. | |
2576 | * c-format.c: Include c-target.h instead of target.h. | |
2577 | * c-opts.c: Include c-target.h instead of target.h. Explicitly | |
2578 | include tm.h. | |
2579 | (default_handle_c_option): Move from targhooks.c. | |
2580 | ||
acb10f41 | 2581 | 2011-03-29 Jakub Jelinek <jakub@redhat.com> |
2582 | ||
2583 | PR preprocessor/48248 | |
2584 | * c-ppoutput.c (print): Add src_file field. | |
2585 | (init_pp_output): Initialize it. | |
2586 | (maybe_print_line): Don't optimize by adding up to 8 newlines | |
2587 | if map->to_file and print.src_file are different file. | |
2588 | (print_line): Update print.src_file. | |
2589 | ||
82715bcd | 2590 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
2591 | ||
2592 | * c-ada-spec.c (compare_comment): Use filename_cmp | |
2593 | instead of strcmp for filename. | |
2594 | ||
451c8e2f | 2595 | 2011-03-25 Jeff Law <law@redhat.com> |
2596 | ||
2597 | * c-family/c-common.c (def_fn_type): Add missing va_end. | |
2598 | ||
3c47771c | 2599 | 2011-03-25 Jason Merrill <jason@redhat.com> |
2600 | ||
2601 | * c.opt: Add -std=c++03. | |
2602 | ||
97e6200f | 2603 | 2011-03-22 Eric Botcazou <ebotcazou@adacore.com> |
2604 | ||
2605 | * c-ada-spec.c (dump_ada_template): Skip non-class instances. | |
2606 | ||
ac86af5d | 2607 | 2011-03-17 Kai Tietz |
2608 | ||
2609 | PR target/12171 | |
ee212425 | 2610 | * c-pretty-print.c (pp_c_specifier_qualifier_list): |
2611 | Display allowed attributes for function pointer types. | |
2612 | (pp_c_attributes_display): New function to display | |
2613 | attributes having affects_type_identity flag set to true. | |
2614 | * c-pretty-print.h (pp_c_attributes_display): New prototype. | |
2615 | ||
ac86af5d | 2616 | * c-common.c (c_common_attribute_table): |
2617 | Add new element. | |
2618 | (c_common_format_attribute_table): Likewise. | |
2619 | ||
914d1151 | 2620 | 2011-03-18 Jason Merrill <jason@redhat.com> |
2621 | ||
69788bdf | 2622 | * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth). |
2623 | * c-common.h: Don't declare it here. | |
2624 | * c-common.c: Or define it here. | |
2625 | * c-opts.c (c_common_handle_option): Or set it here. | |
2626 | ||
914d1151 | 2627 | PR c++/35315 |
2628 | * c-common.c (handle_transparent_union_attribute): Don't | |
2629 | make a duplicate type in C++. | |
2630 | ||
54cf6eed | 2631 | 2011-03-15 Jason Merrill <jason@redhat.com> |
2632 | ||
2633 | * c-common.c (max_constexpr_depth): New. | |
2634 | * c-common.h: Declare it. | |
2635 | * c-opts.c (c_common_handle_option): Set it. | |
2636 | * c.opt (fconstexpr-depth): New option. | |
2637 | ||
02cb1060 | 2638 | 2011-03-11 Jason Merrill <jason@redhat.com> |
2639 | ||
9bf1c74e | 2640 | * c-common.c (attribute_takes_identifier_p): Add missing const. |
2641 | ||
02cb1060 | 2642 | PR c++/46803 |
2643 | * c-common.c (attribute_takes_identifier_p): Assume that an | |
2644 | unknown attribute takes an identifier. | |
2645 | ||
ecf2703d | 2646 | 2011-03-07 Nathan Froyd <froydnj@codesourcery.com> |
2647 | ||
2648 | PR c/47786 | |
2649 | * c-common.c (c_type_hash): Call list_length instead of iterating | |
2650 | through DECL_CHAIN. Rename 'i' to 'n_elements'. | |
2651 | ||
2b19dfe4 | 2652 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> |
2653 | ||
2654 | PR c/47809 | |
2655 | * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. | |
2656 | ||
29cf2335 | 2657 | 2011-02-17 Iain Sandoe <iains@gcc.gnu.org> |
2658 | ||
2659 | * c.opt (fobjc-abi-version=) New. | |
2660 | (fobjc-nilcheck): New. | |
2661 | ||
fad3f658 | 2662 | 2011-02-03 Nathan Froyd <froydnj@codesourcery.com> |
2663 | ||
2664 | PR c++/46890 | |
2665 | * c-common.h (keyword_is_decl_specifier): Declare. | |
2666 | * c-common.c (keyword_is_decl_specifier): Define. | |
2667 | (keyword_is_function_specifier): New function. | |
2668 | ||
a12319b3 | 2669 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
2670 | ||
2671 | PR c/47473 | |
2672 | * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure | |
2673 | EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of | |
2674 | REAL_TYPE. | |
2675 | ||
5c128dc8 | 2676 | 2011-01-26 Arnaud Charlet <charlet@adacore.com> |
2677 | ||
2678 | * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. | |
2679 | ||
8d67b0c7 | 2680 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
2681 | ||
2682 | PR pch/47430 | |
2683 | * c-opts.c (c_common_post_options): Call c_common_no_more_pch | |
2684 | after init_c_lex if pch_file is set. | |
2685 | ||
0675168d | 2686 | 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com> |
2687 | ||
e8911163 | 2688 | PR c++/43601 |
0675168d | 2689 | * c.opt (-fkeep-inline-dllexport): New switch. |
2690 | ||
0725e25c | 2691 | 2011-01-12 Richard Guenther <rguenther@suse.de> |
2692 | ||
2693 | PR middle-end/32511 | |
2694 | * c-common.c (handle_weak_attribute): Warn instead of error | |
2695 | on declaring an inline function weak. | |
2696 | ||
fdd84b77 | 2697 | 2011-01-05 Tom Tromey <tromey@redhat.com> |
2698 | ||
2699 | * c-common.h (lvalue_error): Update. | |
2700 | * c-common.c (lvalue_error): Add 'loc' argument. Call error_at, | |
2701 | not error. | |
2702 | ||
e6e73d14 | 2703 | 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> |
19931eea | 2704 | |
d67e8485 | 2705 | PR objc/47075 |
2706 | * c-objc.h (objc_finish_message_expr): Added argument to | |
2707 | prototype. | |
2708 | ||
a36cf284 | 2709 | 2010-12-22 Nathan Froyd <froydnj@codesourcery.com> |
2710 | ||
2711 | * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): | |
2712 | Use prototype_p. | |
2713 | ||
33b3681f | 2714 | 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> |
2715 | ||
2716 | * c-objc.h (objc_maybe_warn_exceptions): New. | |
19931eea | 2717 | * stub-objc.c (objc_maybe_warn_exceptions): New. |
33b3681f | 2718 | |
a1f90215 | 2719 | 2010-12-10 Nathan Froyd <froydnj@codesourcery.com> |
2720 | ||
2721 | * c-common.h (readonly_error): Declare. | |
2722 | * c-common.c (readonly_error): Define. | |
2723 | ||
b1bbc8e5 | 2724 | 2010-12-09 Nathan Froyd <froydnj@codesourcery.com> |
2725 | ||
2726 | * c-common.h (invalid_indirection_error): Declare. | |
2727 | * c-common.c (invalid_indirection_error): Define. | |
2728 | ||
b0d55af9 | 2729 | 2010-12-03 Richard Guenther <rguenther@suse.de> |
2730 | ||
2731 | PR c/46745 | |
2732 | * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF. | |
2733 | (pp_c_unary_expression): Likewise. | |
2734 | (pp_c_expression): Likewise. | |
2735 | ||
d7489d8d | 2736 | 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> |
2737 | ||
2738 | * c-common.h (objc_finish_function): New. | |
2739 | (objc_non_volatilized_type): Removed. | |
2740 | (objc_type_quals_match): Removed. | |
2741 | * stub-objc.c (objc_finish_function): New. | |
2742 | (objc_non_volatilized_type): Removed. | |
2743 | (objc_type_quals_match): Removed. | |
19931eea | 2744 | |
92468061 | 2745 | 2010-11-30 Joseph Myers <joseph@codesourcery.com> |
2746 | ||
2747 | * c-common.h (parse_optimize_options): Declare. | |
2748 | * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c, | |
2749 | c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h. | |
2750 | ||
967958e4 | 2751 | 2010-11-29 Joseph Myers <joseph@codesourcery.com> |
2752 | ||
2753 | * c-opts.c (check_deps_environment_vars): Use getenv instead of | |
2754 | GET_ENVIRONMENT. | |
2755 | * c-pch.c (O_BINARY): Don't define here. | |
2756 | * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. | |
2757 | ||
b213bf24 | 2758 | 2010-11-25 Joseph Myers <joseph@codesourcery.com> |
2759 | ||
2760 | * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to | |
2761 | targetm.except_unwind_info. | |
2762 | ||
9faf44d6 | 2763 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
2764 | ||
2765 | * c-opts.c (c_common_handle_option): Pass location to | |
2766 | set_struct_debug_option. | |
2767 | ||
79396169 | 2768 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
2769 | ||
2770 | * c-common.c (visibility_options): Move from ../opts.c. | |
2771 | * c-common.h (struct visibility_flags, visibility_options): | |
2772 | Declare here. | |
2773 | * c-opts.c (finish_options): Rename to c_finish_options. | |
2774 | (c_common_init): Update call to finish_options. | |
2775 | ||
b4aa4123 | 2776 | 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> |
2777 | ||
2778 | PR objc/34033 | |
2779 | * c-lex.c (lex_string): Check that each string in an Objective-C | |
2780 | string concat sequence starts with either one or zero '@', and | |
2781 | that there are no spurious '@' signs at the end. | |
2782 | ||
3e0e49f2 | 2783 | 2010-11-20 Joseph Myers <joseph@codesourcery.com> |
2784 | ||
2785 | * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, | |
2786 | HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and | |
2787 | HANDLE_PRAGMA_VISIBILITY. | |
2788 | * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, | |
2789 | HANDLE_PRAGMA_VISIBILITY): Don't define. | |
2790 | (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. | |
2791 | ||
a9ffdd35 | 2792 | 2010-11-20 Nathan Froyd <froydnj@codesourcery.com> |
2793 | ||
2794 | PR c++/16189 | |
2795 | PR c++/36888 | |
2796 | PR c++/45331 | |
2797 | * c-common.h (keyword_begins_type_specifier): Declare. | |
2798 | (keyword_is_storage_class_specifier): Declare. | |
2799 | (keyword_is_type_qualifier): Declare. | |
2800 | * c-common.c (keyword_begins_type_specifier): New function. | |
2801 | (keyword_is_storage_class_specifier): New function. | |
2802 | (keyword_is_type_qualifier): Declare. | |
2803 | ||
93be21c0 | 2804 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
2805 | ||
2806 | PR c/46547 | |
2807 | * c-common.c (in_late_binary_op): Define. | |
2808 | (c_common_truthvalue_conversion): Check in_late_binary_op before | |
2809 | calling c_save_expr. | |
2810 | * c-common.h (in_late_binary_op): Declare. | |
2811 | ||
d7175aef | 2812 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
2813 | ||
2814 | * c-opts.c (c_common_handle_option): Update calls to | |
2815 | set_struct_debug_option. | |
2816 | ||
c213e196 | 2817 | 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com> |
2818 | ||
2819 | * c-common.h (objc_declare_protocols): Added additional argument. | |
2820 | * stub-objc.c (objc_declare_protocol): Same change. | |
19931eea | 2821 | |
0b5fc5d6 | 2822 | 2010-11-18 Nathan Froyd <froydnj@codesourcery.com> |
2823 | ||
2824 | PR c/33193 | |
2825 | * c-common.h (build_real_imag_expr): Declare. | |
2826 | * c-semantics.c (build_real_imag_expr): Define. | |
2827 | ||
b8ba44e7 | 2828 | 2010-11-17 Joseph Myers <joseph@codesourcery.com> |
2829 | ||
2830 | * c-opts.c (c_common_parse_file): Take no arguments. | |
2831 | * c-common.h (c_common_parse_file): Update prototype. | |
2832 | ||
6ef8d12f | 2833 | 2010-11-16 Jakub Jelinek <jakub@redhat.com> |
2834 | ||
2835 | PR c++/46401 | |
2836 | * c-common.c (warning_candidate_p): Don't track non-const calls | |
2837 | or STRING_CSTs. | |
2838 | ||
929d2a90 | 2839 | 2010-11-15 Ian Lance Taylor <iant@google.com> |
2840 | ||
2841 | * c-lex.c (init_c_lex): Set macro debug callbacks if | |
2842 | flag_dump_go_spec is set. | |
2843 | ||
e4a7640a | 2844 | 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> |
2845 | ||
2846 | * c-common.h (objc_build_incr_expr_for_property_ref): New. | |
2847 | * stub-objc.c (objc_build_incr_expr_for_property_ref): New. | |
2848 | ||
597d2d81 | 2849 | 2010-11-15 Nathan Froyd <froydnj@codesourcery.com> |
2850 | ||
2851 | PR preprocessor/45038 | |
2852 | * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ | |
2853 | dialects. | |
2854 | ||
c123f04d | 2855 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
2856 | ||
2857 | * c-common.h (c_family_lang_mask): Declare. | |
2858 | * c-opts.c (c_family_lang_mask): Make extern. | |
2859 | * c-pragma.c (handle_pragma_diagnostic): Use | |
2860 | control_warning_option. | |
2861 | ||
3c6c0e40 | 2862 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
2863 | ||
2864 | * c-common.c (parse_optimize_options): Update call to | |
2865 | decode_options. | |
2866 | * c-common.h (c_common_handle_option): Update prototype. | |
2867 | * c-opts.c (c_common_handle_option): Take location_t parameter and | |
2868 | pass it to other functions. | |
2869 | ||
19ec5c9e | 2870 | 2010-11-11 Joseph Myers <joseph@codesourcery.com> |
2871 | ||
2872 | * c-opts.c (warning_as_error_callback): Remove. | |
2873 | (c_common_initialize_diagnostics): Don't call | |
2874 | register_warning_as_error_callback. | |
2875 | (c_common_handle_option): Handle -Werror=normalized= here. | |
2876 | ||
bf776685 | 2877 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
2878 | ||
2879 | * c-common.c (handle_mode_attribute): Use %' and word "signedness" | |
2880 | in diagnostic. | |
2881 | * c-opts.c (c_common_parse_file): Start diagnostics with lowercase | |
2882 | letter. | |
2883 | * c-pragma.c (handle_pragma_target, handle_pragma_optimize): | |
2884 | Remove trailing '.' from diagnostics. | |
2885 | * c.opt (Wwrite-strings_: Avoid '`' in help text. | |
2886 | ||
6bd9d862 | 2887 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
2888 | ||
2889 | * c-common.c (parse_optimize_options): Pass global_dc to | |
2890 | decode_options. | |
2891 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
2892 | set_Wstrict_aliasing. | |
2893 | * c.opt (v): Don't mark Common or document here. | |
2894 | ||
1f6616ee | 2895 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
2896 | ||
2897 | PR target/44981 | |
2898 | * c-format.c (format_type): New type gcc_objc_string_format_type. | |
2899 | (valid_stringptr_type_p): New. | |
2900 | (handle_format_arg_attribute): Use valid_stringptr_type_p (). | |
19931eea | 2901 | (check_format_string): Pass expected type, use |
1f6616ee | 2902 | valid_stringptr_type_p (), check that the format string types are |
2903 | consistent with the format specification. | |
2904 | (decode_format_attr): Warn if NSString is used outside objective-c. | |
2905 | (format_types_orig): Add NSString. | |
2906 | (format_name): New. | |
2907 | (format_flags): New. | |
2908 | (check_format_arg): Handle format strings requiring an external parser. | |
2909 | first_target_format_type: New variable. | |
2910 | (handle_format_attribute): Set up first_target_format_type, pass the | |
2911 | expected format arg string type to check_format_string(). | |
2912 | * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. | |
2913 | * stub-objc.c (objc_string_ref_type_p): New. | |
2914 | (objc_check_format_arg): New. | |
2915 | ||
b0d0931f | 2916 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
2917 | ||
19931eea | 2918 | Fixed using the Objective-C 2.0 dot-syntax with class names. |
b0d0931f | 2919 | * c-common.h (objc_build_class_component_ref): New. |
2920 | * stub-objc.c (objc_build_class_component_ref): New. | |
2921 | ||
f26877d5 | 2922 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
2923 | ||
2924 | * c.opt (Wproperty-assign-default): New option. | |
2925 | ||
1ef143b6 | 2926 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
2927 | ||
2928 | Implemented -fobjc-std=objc1 flag. | |
2929 | * c.opt (fobjc-std=objc1): New option. | |
2930 | ||
8c582e4f | 2931 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
2932 | ||
2933 | Implemented format and noreturn attributes for Objective-C methods. | |
2934 | * c-common.c (handle_noreturn_attribute): Recognize 'noreturn' | |
2935 | attribute for Objective-C methods. | |
2936 | ||
8637f1db | 2937 | 2010-10-31 Jason Merrill <jason@redhat.com> |
2938 | ||
2939 | * c-common.c (conversion_warning, warn_for_collisions_1): Use | |
2940 | EXPR_LOC_OR_HERE. | |
2941 | ||
9d9f5bb3 | 2942 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
2943 | ||
2944 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
2945 | * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. | |
2946 | (objc_add_property_declaration): Removed arguments for copies and | |
2947 | ivar. | |
2948 | (objc_build_getter_call): Renamed to | |
2949 | objc_maybe_build_component_ref. | |
2950 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
2951 | (objc_is_property_ref): New. | |
2952 | * c-common.c (c_common_reswords): Removed copies and ivar. | |
2953 | * stub-objc.c (objc_add_property_declaration): Removed arguments | |
2954 | for copies and ivar. | |
2955 | (objc_build_getter_call): Renamed to | |
2956 | objc_maybe_build_component_ref. | |
2957 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
2958 | (objc_is_property_ref): New. | |
19931eea | 2959 | |
56f907a0 | 2960 | 2010-10-29 Arnaud Charlet <charlet@adacore.com> |
2961 | Matthew Gingell <gingell@adacore.com> | |
2962 | ||
2963 | * c-ada-spec.c (separate_class_package): New function. | |
2964 | (pp_ada_tree_identifier): Prefix references to C++ classes with the | |
2965 | name of their enclosing package. | |
2966 | (print_ada_declaration): Use separate_class_package. | |
2967 | ||
b5fa273e | 2968 | 2010-10-27 Jason Merrill <jason@redhat.com> |
2969 | ||
5290e253 | 2970 | * c-common.c (c_common_reswords): Add __is_literal_type. |
2971 | * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. | |
2972 | ||
b5fa273e | 2973 | * c-common.c (check_case_value): Remove special C++ code. |
2974 | ||
7590f0e5 | 2975 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
2976 | ||
2977 | * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, | |
2978 | RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR | |
2979 | and RID_LAST_PATTR. | |
2980 | (objc_add_property_declaration): Added additional arguments. | |
2981 | (objc_property_attribute_kind): Removed. | |
2982 | (objc_set_property_attr): Removed. | |
2983 | * c-common.c (c_common_reswords): Added readwrite, assign, retain, | |
2984 | copy and nonatomic. | |
2985 | * stub-objc.c (objc_add_property_declaration): Added additional | |
2986 | arguments. | |
2987 | (objc_set_property_attr): Removed. | |
19931eea | 2988 | |
1d894bcf | 2989 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
2990 | ||
2991 | * c-common.h (objc_add_property_variable): Renamed to | |
2992 | objc_add_property_declaration. Added location argument. | |
2993 | * stub-objc.c (objc_add_property_variable): Same change. | |
2994 | ||
e23bf1fb | 2995 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
2996 | ||
2997 | * c-common.h (objc_maybe_printable_name): New. | |
2998 | * stub-objc.c (objc_maybe_printable_name): New. | |
2999 | ||
93426222 | 3000 | 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
3001 | Andrew Pinski <pinskia@gmail.com> | |
3002 | ||
3003 | * c-common.h (c_common_mark_addressable_vec): Declare. | |
3004 | * c-common.c (c_common_mark_addressable_vec): New function. | |
3005 | ||
45b2b110 | 3006 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
3007 | ||
3008 | * c-common.h (objc_set_method_type): Removed. | |
3009 | (objc_add_method_declaration): Added boolean argument. | |
3010 | (objc_start_method_definition): Same change. | |
3011 | (objc_build_method_signature): Same change. | |
3012 | * stub-objc.c (objc_set_method_type): Removed. | |
3013 | (objc_add_method_declaration): Added boolean argument. | |
3014 | (objc_start_method_definition): Same change. | |
3015 | (objc_build_method_signature): Same change. | |
3016 | ||
64cd9619 | 3017 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
3018 | ||
3019 | * c-common.h (finish_file): Removed. | |
3020 | (objc_write_global_declarations): New. | |
3021 | * c-opts.c (c_common_parse_file): Do not call finish_file. | |
3022 | * stub-objc.c (objc_write_global_declarations): New. | |
19931eea | 3023 | |
e1f293c0 | 3024 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
3025 | ||
3026 | Implemented parsing @synthesize and @dynamic for | |
3027 | Objective-C/Objective-C++. | |
3028 | * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. | |
3029 | (objc_add_synthesize_declaration): New. | |
3030 | (objc_add_dynamic_declaration): New. | |
3031 | * c-common.c (c_common_reswords): Add synthesize and dynamic. | |
3032 | * stub-objc.c (objc_add_synthesize_declaration): New. | |
3033 | (objc_add_dynamic_declaration): New. | |
19931eea | 3034 | |
ef97a312 | 3035 | 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com> |
3036 | ||
3037 | PR target/46041 | |
3038 | * c-cppbuiltin.c (mode_has_fma): Move function here from | |
3039 | builtins.c. Don't use the fma optab, instead just use the | |
3040 | HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when | |
3041 | using -save-temps. | |
3042 | ||
69b07042 | 3043 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
3044 | ||
3045 | Merge from 'apple/trunk' branch on FSF servers. | |
ef97a312 | 3046 | |
69b07042 | 3047 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> |
3048 | ||
19931eea | 3049 | Radar 4330422 |
69b07042 | 3050 | * c-common.h (objc_non_volatilized_type): New declaration |
3051 | * stub-objc.c (objc_non_volatilized_type): New stub. | |
3052 | ||
f15f2e56 | 3053 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
3054 | ||
69b07042 | 3055 | Merge from 'apple/trunk' branch on FSF servers. |
f15f2e56 | 3056 | |
3057 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> | |
3058 | ||
19931eea | 3059 | Radar 4133425 |
f15f2e56 | 3060 | * c-common.h (objc_diagnose_private_ivar): New decl. |
ef97a312 | 3061 | * stub-objc.c (objc_diagnose_private_ivar): New stub. |
f15f2e56 | 3062 | |
4a8875ed | 3063 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
3064 | ||
3065 | * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. | |
3066 | * c-common.h (enum rid): Add RID_AT_PACKAGE. | |
3067 | (objc_ivar_visibility_kind): New enum. | |
3068 | (objc_set_visibility): Adjust prototype to use visibility enum. | |
ef97a312 | 3069 | * stub-objc.c (objc_set_visibility): Adjust stub to use |
4a8875ed | 3070 | visibility enum. |
3071 | ||
7e0713b1 | 3072 | 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
3073 | ||
3074 | * c-cppbuiltin.c (builtin_define_float_constants): Emit | |
3075 | __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine | |
3076 | has the appropriate fma builtins. | |
3077 | (c_cpp_builtins): Adjust call to builtin_define_float_constants. | |
3078 | ||
86c110ac | 3079 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
3080 | ||
7e0713b1 | 3081 | merge from FSF apple 'trunk' branch. |
86c110ac | 3082 | 2006 Fariborz Jahanian <fjahanian@apple.com> |
7e0713b1 | 3083 | |
86c110ac | 3084 | Radars 4436866, 4505126, 4506903, 4517826 |
3085 | * c-common.c (c_common_resword): Define @property and its attributes. | |
3086 | * c-common.h: Define property attribute enum entries. | |
3087 | (OBJC_IS_PATTR_KEYWORD): New. | |
3088 | (objc_property_attribute_kind): New enum. | |
3089 | Declare objc_set_property_attr (), objc_add_property_variable (), | |
3090 | objc_build_getter_call () and objc_build_setter_call (). | |
3091 | * stub-objc.c (objc_set_property_attr): New stub. | |
3092 | (objc_add_property_variable): Likewise. | |
3093 | (objc_build_getter_call): Likewise. | |
3094 | (objc_build_setter_call) Likewise. | |
7e0713b1 | 3095 | |
40c8d1dd | 3096 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
3097 | ||
7e0713b1 | 3098 | merge from FSF apple 'trunk' branch. |
40c8d1dd | 3099 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> |
3100 | ||
3101 | Radar 3803157 (method attributes) | |
3102 | * c-common.c (handle_deprecated_attribute): Recognize | |
3103 | objc methods as valid declarations. | |
3104 | * c-common.h: Declare objc_method_decl (). | |
7e0713b1 | 3105 | * stub-objc.c (objc_method_decl): New stub. |
40c8d1dd | 3106 | |
f3f006ad | 3107 | 2010-10-08 Joseph Myers <joseph@codesourcery.com> |
3108 | ||
3109 | * c-common.c (parse_optimize_options): Call | |
3110 | decode_cmdline_options_to_array_default_mask before | |
3111 | decode_options. Update arguments to decode_options. | |
3112 | * c-common.h (c_common_init_options_struct): Declare. | |
3113 | * c-opts.c (c_common_init_options_struct): New. Split out from | |
3114 | c_common_init_options. | |
3115 | ||
0a65c3bb | 3116 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
3117 | ||
3118 | Implemented fast enumeration for Objective-C. | |
3119 | * c-common.h (objc_finish_foreach_loop): New. | |
3120 | * stub-objc.c (objc_finish_foreach_loop): New. | |
3121 | ||
24ca3b4e | 3122 | 2010-10-05 Joseph Myers <joseph@codesourcery.com> |
3123 | ||
3124 | * c-common.h (struct diagnostic_context): Don't declare here. | |
3125 | (c_common_initialize_diagnostics): Declare using | |
3126 | diagnostic_context typedef. | |
3127 | * c-opts.c (c_common_handle_option): Pass global_dc to | |
3128 | handle_generated_option. | |
3129 | ||
f83b64ca | 3130 | 2010-10-04 Joseph Myers <joseph@codesourcery.com> |
3131 | ||
3132 | * c-opts.c (c_common_handle_option): Pass &global_options_set to | |
3133 | handle_generated_option. | |
3134 | ||
2fdec027 | 3135 | 2010-10-03 Ian Lance Taylor <iant@google.com> |
3136 | ||
3137 | * c.opt (-fplan9-extensions): New option. | |
3138 | ||
41acdfa4 | 3139 | 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
3140 | ||
3141 | * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): | |
3142 | Remove. | |
3143 | (c_cpp_builtins): Call functions from cppbuiltin.c instead | |
3144 | of duplicating code. | |
3145 | ||
069761fb | 3146 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
3147 | ||
3148 | * c-common.c: Add two new entries for @optional | |
3149 | and @required keywords. | |
3150 | ||
3151 | merge from FSF 'apple/trunk' branch. | |
3152 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> | |
3153 | ||
3154 | Radar 4386773 | |
3155 | * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new | |
3156 | objective-c keywords. | |
3157 | (objc_set_method_opt): New declaration. | |
3158 | * stub-objc.c (objc_set_method_opt): New stub. | |
19931eea | 3159 | |
2c5d2e39 | 3160 | 2010-09-30 Joseph Myers <joseph@codesourcery.com> |
3161 | ||
3162 | * c-common.c (handle_optimize_attribute): Pass &global_options to | |
3163 | cl_optimization_save and cl_optimization_restore. | |
3164 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
3165 | handle_generated_option. | |
3166 | * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. | |
3167 | (handle_pragma_pop_options, handle_pragma_reset_options): Pass | |
3168 | &global_options to cl_optimization_restore. | |
3169 | ||
e5c75ac3 | 3170 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
3171 | ||
3172 | * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME | |
3173 | Objective-C/Objective-C++ keywords. | |
3174 | ||
3511333e | 3175 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
e147d6aa | 3176 | |
19931eea | 3177 | Merge from 'apple/trunk' branch on FSF servers. |
3178 | ||
e147d6aa | 3179 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> |
3180 | ||
3181 | Radar 4281748 | |
3182 | * c-common.h (objc_check_global_decl): New declaration. | |
3183 | * stub-objc.c (objc_check_global_decl): New stub. | |
3184 | ||
5461e683 | 3185 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
3186 | ||
3187 | * c.opt: Don't use VarExists. | |
3188 | ||
5ae82d58 | 3189 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
3190 | ||
3191 | * c-common.c (c_cpp_error): Update names of diagnostic_context | |
3192 | members. | |
3193 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of | |
3194 | cl_optimization members. | |
3195 | * c-opts.c (warning_as_error_callback, c_common_handle_option, | |
3196 | sanitize_cpp_opts, finish_options): Update names of cpp_options | |
3197 | members. | |
3198 | ||
b27e241e | 3199 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
3200 | ||
3201 | * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. | |
3202 | (objc_is_reserved_word): Removed. | |
3203 | * c-common.c: Updated comments. | |
3204 | * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of | |
3205 | objc_is_reserved_word. | |
3206 | * stub-objc.c (objc_is_reserved_word): Removed. | |
3207 | ||
03fc2271 | 3208 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
3209 | ||
19931eea | 3210 | * c-common.h (objc_add_method_declaration): Adjust prototype to |
03fc2271 | 3211 | include attributes. |
3212 | (objc_start_method_definition): Likewise. | |
3213 | (objc_build_keyword_decl): Likewise. | |
3214 | * stub-objc.c:(objc_add_method_declaration): Handle attributes. | |
3215 | (objc_start_method_definition): Likewise. | |
3216 | (objc_build_keyword_decl): Likewise. | |
3217 | ||
a336eb4b | 3218 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
3219 | ||
3220 | * c-common.h (objc_start_class_interface): Adjust prototype. | |
3221 | (objc_start_category_interface): Likewise. | |
3222 | (objc_start_protocol): Likewise. | |
3223 | * stub-objc.c (objc_start_protocol): Adjust for extra argument. | |
3224 | (objc_start_class_interface): Likewise. | |
3225 | (objc_start_category_interface): Likewise. | |
3226 | ||
48b14f50 | 3227 | 2010-09-27 Ian Lance Taylor <iant@google.com> |
3228 | ||
3229 | * c-common.c (c_common_attribute_table): Add no_split_stack. | |
3230 | (handle_no_split_stack_attribute): New static function. | |
3231 | ||
4abfc532 | 3232 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
3233 | ||
19931eea | 3234 | Merge from 'apple/trunk' branch on FSF servers. |
4abfc532 | 3235 | |
3236 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> | |
3237 | ||
19931eea | 3238 | Radar 4229905 |
4abfc532 | 3239 | * c-common.h (objc_have_common_type): New declaration. |
3240 | * stub-objc.c (objc_have_common_type): New stub. | |
3241 | ||
3242 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
3243 | ||
3244 | Radar 4154928 | |
3245 | * c-common.h (objc_common_type): New prototype. | |
19931eea | 3246 | * stub-objc.c (objc_common_type): New stub. |
4abfc532 | 3247 | |
7bd95dfd | 3248 | 2010-09-24 Jan Hubicka <jh@suse.cz> |
3249 | ||
3250 | * c-common.c (handle_leaf_attribute): New function. | |
3251 | (struct attribute_spec c_common_att): Add leaf. | |
3252 | ||
5789e05b | 3253 | 2010-09-22 Joseph Myers <joseph@codesourcery.com> |
3254 | ||
3255 | * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, | |
3256 | -comments-in-macros, -define-macro, -define-macro=, -dependencies, | |
3257 | -dump, -dump=, -imacros, -imacros=, -include, -include=, | |
3258 | -include-barrier, -include-directory, -include-directory=, | |
3259 | -include-directory-after, -include-directory-after=, | |
3260 | -include-prefix, -include-prefix=, -include-with-prefix, | |
3261 | -include-with-prefix=, -include-with-prefix-after, | |
3262 | -include-with-prefix-after=, -include-with-prefix-before, | |
3263 | -include-with-prefix-before=, -no-integrated-cpp, | |
3264 | -no-line-commands, -no-standard-includes, -no-warnings, -output, | |
3265 | -output=, -pedantic, -pedantic-errors, -preprocess, | |
3266 | -print-missing-file-dependencies, -trace-includes, -traditional, | |
3267 | -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, | |
3268 | -user-dependencies, -verbose, -write-dependencies, | |
3269 | -write-user-dependencies, no-integrated-cpp, traditional): New. | |
3270 | ||
e6fb54ba | 3271 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
3272 | ||
3273 | PR objc/23710 | |
9b60f3b0 | 3274 | * c-common.h (objc_start_method_definition): Return bool instead |
3275 | of void. | |
3276 | * stub-objc.c (objc_start_method_definition): Return bool instead | |
3277 | of void. | |
3278 | ||
3279 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> | |
3280 | ||
3281 | PR objc/25965 | |
3282 | * c-common.h (objc_get_interface_ivars): New declaration. | |
3283 | * stub-objc.c (objc_get_interface_ivars): New stub. | |
e6fb54ba | 3284 | |
e44b0a1f | 3285 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
3286 | ||
3287 | * c-common.c (parse_optimize_options): Do not capitalize warning | |
ebd7c4c1 | 3288 | messages. Remove period at end of warning message. |
e44b0a1f | 3289 | |
85c0a25c | 3290 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
3291 | ||
3292 | * c-common.c (handle_alias_ifunc_attribute): New, broken out of ... | |
3293 | (handle_alias_attribute): ... here. | |
3294 | (handle_ifunc_attribute): New. | |
3295 | ||
5ba33bf4 | 3296 | 2010-09-06 Mark Mitchell <mark@codesourcery.com> |
3297 | ||
3298 | * c-common.h (do_warn_double_promotion): Declare. | |
3299 | * c-common.c (do_warn_double_promotion): Define. | |
3300 | ||
c920faa3 | 3301 | 2010-09-05 Mark Mitchell <mark@codesourcery.com> |
3302 | ||
3303 | * c.opt (Wdouble-promotion): New. | |
3304 | ||
9604e070 | 3305 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
3306 | ||
3307 | * c.opt (falt-external-templates, fhuge-objects, fvtable-gc, | |
3308 | fvtable-thunks, fxref): Mark no longer supported in help text. | |
3309 | ||
3b0273a1 | 3310 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
3311 | ||
3312 | * c.opt (Wimport, fall-virtual, falt-external-templates, | |
3313 | fdefault-inline, fenum-int-equiv, fexternal-templates, | |
3314 | fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, | |
3315 | fname-mangling-version-, fnew-abi, fnonnull-objects, | |
3316 | foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, | |
3317 | fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as | |
3318 | applicable. | |
3319 | (fhandle-exceptions): Mark with Alias and Warn. | |
3320 | * c-opts.c (c_common_handle_option): Don't handle options marked | |
3321 | as ignored. | |
3322 | ||
67089c6b | 3323 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
3324 | ||
3325 | * c.opt (Wcomments, Werror-implicit-function-declaration, | |
3326 | ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, | |
3327 | std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as | |
3328 | aliases. | |
3329 | * c-common.c (option_codes): Use OPT_Wcomment instead of | |
3330 | OPT_Wcomments. | |
3331 | * c-opts.c (warning_as_error_callback, c_common_handle_option): | |
3332 | Don't handle options marked as aliases. | |
3333 | ||
2af087f2 | 3334 | 2010-08-25 Richard Guenther <rguenther@suse.de> |
3335 | ||
3336 | * c-common.c (c_common_get_alias_set): Remove special | |
3337 | handling for pointers. | |
3338 | ||
48148244 | 3339 | 2010-08-20 Nathan Froyd <froydnj@codesourcery.com> |
3340 | ||
3341 | * c-common.c: Use FOR_EACH_VEC_ELT. | |
3342 | * c-gimplify.c: Likewise. | |
3343 | * c-pragma.c: Likewise. | |
3344 | ||
89c69892 | 3345 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
3346 | ||
3347 | * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of | |
3348 | RejectDriver. | |
3349 | (MMDX): Change back to MMD. Mark NoDriverArg instead of | |
3350 | RejectDriver. | |
3351 | * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD | |
3352 | instead of OPT_MDX and OPT_MMDX. | |
3353 | ||
e28aa114 | 3354 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
3355 | ||
3356 | * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. | |
3357 | ||
99b66d21 | 3358 | 2010-08-12 Joseph Myers <joseph@codesourcery.com> |
3359 | ||
3360 | * c.opt (MD, MMD): Change to MDX and MMDX. | |
3361 | * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. | |
3362 | ||
666f4bf0 | 3363 | 2010-08-11 Joseph Myers <joseph@codesourcery.com> |
3364 | ||
3365 | * c-opts.c (c_common_handle_option): Call handle_generated_option | |
3366 | instead of handle_option. | |
3367 | ||
5ec815f6 | 3368 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
3369 | ||
3370 | * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. | |
3371 | (maybe_apply_renaming_pragma): Delete unneeded declarations. | |
3372 | ||
d13143cf | 3373 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
3374 | ||
3375 | * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. | |
3376 | (pending_redefine_extname): Change type to a VEC. | |
3377 | (add_to_renaming_pragma_list): Update for new type of | |
3378 | pending_redefine_extname. | |
5ec815f6 | 3379 | (maybe_apply_renaming_pragma): Likewise. |
d13143cf | 3380 | |
2008c983 | 3381 | 2010-08-04 Arnaud Charlet <charlet@adacore.com> |
3382 | ||
3383 | * c-ada-spec.c (dump_ada_template): Mark underlying instance type as | |
3384 | visited. | |
3385 | (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to | |
3386 | decide whether a type has already been declared/seen. | |
3387 | Do not go to the original type. | |
3388 | (dump_nested_types): New parameter forward. | |
3389 | Generate forward declaration if needed and mark type as visited. | |
3390 | (print_ada_declaration): Call dump_nested_types if not already done. | |
3391 | Mark types as visited. | |
3392 | ||
9b091a73 | 3393 | 2010-08-03 Joseph Myers <joseph@codesourcery.com> |
3394 | ||
3395 | * c.opt (-print-pch-checksum): Remove option. | |
3396 | * c-opts.c (c_common_handle_option): Don't handle | |
3397 | OPT_print_pch_checksum. | |
3398 | ||
b78351e5 | 3399 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
3400 | ||
3401 | * c-common.h (c_common_handle_option): Update prototype and return | |
3402 | value type. | |
3403 | * c-opts.c (c_common_handle_option): Update prototype and return | |
3404 | value type. Update calls to handle_option and | |
3405 | enable_warning_as_error. | |
3406 | ||
34416a90 | 3407 | 2010-07-27 Jakub Jelinek <jakub@redhat.com> |
3408 | ||
3409 | PR c/45079 | |
3410 | * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. | |
3411 | ||
fecf9011 | 3412 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
3413 | ||
3414 | * c-common.h (c_common_missing_argument): Remove. | |
3415 | * c-opts.c (c_common_missing_argument): Remove. | |
3416 | * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, | |
3417 | idirafter, imacros, include, isysroot, isystem, iquote): Add | |
3418 | MissingArgError. | |
3419 | * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. | |
3420 | ||
e88d34f6 | 3421 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
3422 | ||
3423 | * c-common.h (c_common_option_lang_mask, | |
3424 | c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): | |
3425 | New. | |
3426 | (c_common_init_options): Update prototype. | |
3427 | * c-opts.c (c_common_option_lang_mask): New. | |
3428 | (c_common_initialize_diagnostics): Split out of | |
3429 | c_common_init_options. | |
3430 | (accept_all_c_family_options, c_common_complain_wrong_lang_p): | |
3431 | New. | |
3432 | (c_common_init_options): Update prototype. Use decoded options in | |
3433 | search for -lang-asm. | |
3434 | ||
1767a056 | 3435 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
3436 | ||
3437 | * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
3438 | * c-format.c: Likewise. | |
3439 | ||
0b205f4c | 3440 | 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3441 | ||
3442 | * c-common.h: Include diagnostic-core.h. Error if already | |
3443 | included. | |
3444 | * c-semantics.c: Do not define GCC_DIAG_STYLE here. | |
3445 | ||
1c58e3f1 | 3446 | 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3447 | ||
3448 | * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef. | |
3449 | Do not include expr.h | |
3450 | (vector_mode_valid_p): Move here. | |
3451 | ||
33cc157c | 3452 | 2010-06-21 DJ Delorie <dj@redhat.com> |
3453 | ||
3454 | * c-pragma.c (handle_pragma_diagnostic): Add push/pop, | |
3455 | allow these pragmas anywhere. | |
3456 | ||
3457 | 2010-06-14 Jakub Jelinek <jakub@redhat.com> | |
3458 | ||
3459 | PR bootstrap/44509 | |
3460 | * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. | |
3461 | (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. | |
3462 | (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use | |
3463 | ggc_strdup instead of xstrdup. | |
3464 | ||
3465 | 2010-06-10 Jakub Jelinek <jakub@redhat.com> | |
3466 | ||
3467 | * c-cppbuiltin.c: Include cpp-id-data.h. | |
3468 | (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. | |
3469 | (lazy_hex_fp_value): New function. | |
3470 | (builtin_define_with_hex_fp_value): Provide definitions lazily. | |
3471 | ||
9b40bfbf | 3472 | 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3473 | ||
3474 | * c-gimplify.c: Do not include tree-flow.h | |
3475 | ||
202d6e5f | 3476 | 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com> |
3477 | ||
3478 | PR other/44034 | |
3479 | * c-common.c: Rename targetm member: | |
3480 | targetm.enum_va_list -> targetm.enum_va_list_p | |
3481 | ||
d3237426 | 3482 | 2010-06-28 Anatoly Sokolov <aesok@post.ru> |
3483 | ||
3484 | * c-common.c (shorten_compare): Adjust call to force_fit_type_double. | |
3485 | ||
596981c8 | 3486 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
3487 | ||
3488 | * c-cppbuiltin.c: Do not include except.h. | |
3489 | ||
b9bdfa0b | 3490 | 2010-06-24 Andi Kleen <ak@linux.intel.com> |
3491 | ||
19931eea | 3492 | * c-common.c (warn_for_omitted_condop): New. |
3493 | * c-common.h (warn_for_omitted_condop): Add prototype. | |
b9bdfa0b | 3494 | |
55ad092d | 3495 | 2010-06-21 Joseph Myers <joseph@codesourcery.com> |
3496 | ||
3497 | * c.opt (lang-objc): Remove. | |
3498 | * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. | |
3499 | ||
9e7c2572 | 3500 | 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com> |
3501 | ||
3502 | * c-opts.c: Include "tm_p.h". | |
3503 | ||
615ef0bb | 3504 | 2010-06-20 Joseph Myers <joseph@codesourcery.com> |
3505 | ||
3506 | * c-common.c (parse_optimize_options): Update call to | |
3507 | decode_options. | |
3508 | ||
aef48c9a | 3509 | 2010-06-18 Nathan Froyd <froydnj@codesourcery.com> |
3510 | ||
3511 | * c-common.c (record_types_used_by_current_var_decl): Adjust for | |
3512 | new type of types_used_by_cur_var_decl. | |
3513 | ||
d74003b4 | 3514 | 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com> |
3515 | ||
3516 | PR bootstrap/44512 | |
3517 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast | |
3518 | for C++ standard compliance. | |
3519 | ||
1194d077 | 3520 | 2010-06-16 Jason Merrill <jason@redhat.com> |
3521 | ||
3522 | * c.opt: Add -Wnoexcept. | |
3523 | ||
d473d901 | 3524 | 2010-06-16 Richard Guenther <rguenther@suse.de> |
3525 | ||
3526 | PR c/44555 | |
3527 | * c-common.c (c_common_truthvalue_conversion): Remove | |
3528 | premature and wrong optimization concering ADDR_EXPRs. | |
3529 | ||
b62dbfd3 | 3530 | 2010-06-15 Arnaud Charlet <charlet@adacore.com> |
3531 | ||
3532 | * c-ada-spec.c (dump_sloc): Remove column info. | |
3533 | (is_simple_enum): New function. | |
3534 | (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada | |
3535 | enum types when relevant. | |
3536 | ||
200dd99c | 3537 | 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3538 | ||
19931eea | 3539 | * c-common.c (conversion_warning): Warn at expression |
200dd99c | 3540 | location. |
3541 | ||
abf6a617 | 3542 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
3543 | ||
3544 | * c-opts.c (c_common_handle_option): Don't handle | |
3545 | OPT_fshow_column. | |
3546 | ||
ba72912a | 3547 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
3548 | ||
3549 | * c-pragma.c (push_alignment): Use typed GC allocation. | |
3550 | (handle_pragma_push_options): Likewise. | |
3551 | ||
3552 | * c-common.c (parse_optimize_options): Likewise. | |
3553 | ||
3554 | * c-common.h (struct sorted_fields_type): Add variable_size GTY | |
3555 | option. | |
3556 | ||
4aafe913 | 3557 | 2010-06-07 Joseph Myers <joseph@codesourcery.com> |
3558 | ||
3559 | * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, | |
3560 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
3561 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
3562 | flag_signed_bitfields, warn_strict_null_sentinel, | |
3563 | flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, | |
3564 | flag_gen_declaration, flag_no_gnu_keywords, | |
3565 | flag_implement_inlines, flag_implicit_templates, | |
3566 | flag_implicit_inline_templates, flag_optional_diags, | |
3567 | flag_elide_constructors, flag_default_inline, flag_rtti, | |
3568 | flag_conserve_space, flag_access_control, flag_check_new, | |
3569 | flag_new_for_scope, flag_weak, flag_working_directory, | |
3570 | flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, | |
3571 | flag_enforce_eh_specs, flag_threadsafe_statics, | |
3572 | flag_pretty_templates): Remove. | |
3573 | * c-common.h (flag_preprocess_only, flag_nil_receivers, | |
3574 | flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, | |
3575 | flag_replace_objc_classes, flag_undef, flag_no_builtin, | |
3576 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
3577 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
3578 | flag_const_strings, flag_signed_bitfields, flag_gen_declaration, | |
3579 | flag_no_gnu_keywords, flag_implement_inlines, | |
3580 | flag_implicit_templates, flag_implicit_inline_templates, | |
3581 | flag_optional_diags, flag_elide_constructors, flag_default_inline, | |
3582 | flag_rtti, flag_conserve_space, flag_access_control, | |
3583 | flag_check_new, flag_new_for_scope, flag_weak, | |
3584 | flag_working_directory, flag_use_cxa_atexit, | |
3585 | flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, | |
3586 | flag_threadsafe_statics, flag_pretty_templates, | |
3587 | warn_strict_null_sentinel): Remove. | |
3588 | * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, | |
3589 | fbuiltin, fcheck-new, fconserve-space, felide-constructors, | |
3590 | fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, | |
3591 | fimplicit-inline-templates, fimplicit-templates, | |
3592 | flax-vector-conversions, fms-extensions, fnil-receivers, | |
3593 | fnonansi-builtins, fpretty-templates, freplace-objc-classes, | |
3594 | frtti, fshort-double, fshort-enums, fshort-wchar, | |
3595 | fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, | |
3596 | funsigned-bitfields, funsigned-char, fuse-cxa-atexit, | |
3597 | fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, | |
3598 | gen-decls, undef): Use Var. | |
3599 | (fdefault-inline, foptional-diags): Document as doing nothing. | |
3600 | * c-opts.c (c_common_handle_option): Remove cases for options now | |
3601 | using Var. Mark ignored options as such. | |
3602 | ||
7bedc3a0 | 3603 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
3604 | ||
19931eea | 3605 | * c-common.c: Moved to here from parent directory. |
7bedc3a0 | 3606 | * c-common.def: Likewise. |
3607 | * c-common.h: Likewise. | |
3608 | * c-cppbuiltin.c: Likewise. | |
3609 | * c-dump.c: Likewise. | |
3610 | * c-format.c: Likewise. | |
3611 | * c-format.h : Likewise. | |
3612 | * c-gimplify.c: Likewise. | |
3613 | * c-lex.c: Likewise. | |
3614 | * c-omp.c: Likewise. | |
3615 | * c.opt: Likewise. | |
3616 | * c-opts.c: Likewise. | |
3617 | * c-pch.c: Likewise. | |
3618 | * c-ppoutput.c: Likewise. | |
3619 | * c-pragma.c: Likewise. | |
3620 | * c-pragma.h: Likewise. | |
3621 | * c-pretty-print.c: Likewise. | |
3622 | * c-pretty-print.h: Likewise. | |
3623 | * c-semantics.c: Likewise. | |
3624 | * stub-objc.c: Likewise. | |
3625 | ||
3626 | * c-common.c: Include gt-c-family-c-common.h. | |
3627 | * c-pragma.c: Include gt-c-family-c-pragma.h. | |
3628 | \f | |
3aea1f79 | 3629 | Copyright (C) 2010-2014 Free Software Foundation, Inc. |
7bedc3a0 | 3630 | |
3631 | Copying and distribution of this file, with or without modification, | |
3632 | are permitted in any medium without royalty provided the copyright | |
3633 | notice and this notice are preserved. |