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