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