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