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