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