]>
Commit | Line | Data |
---|---|---|
0957c029 JJ |
1 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
2 | ||
3 | * c-common.c (def_fn_type): Remove extra va_end. | |
4 | ||
828fb3ba JM |
5 | 2011-05-23 Jason Merrill <jason@redhat.com> |
6 | ||
7 | PR c++/48106 | |
8 | * c-common.c (c_common_get_narrower): New. | |
9 | (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. | |
10 | ||
dde05067 NF |
11 | 2011-05-23 Nathan Froyd <froydnj@codesourcery.com> |
12 | ||
13 | * c-common.h (check_function_arguments): Tweak prototype of | |
14 | check_function_arguments. | |
15 | * c-common.c (check_function_arguments): Likewise. Adjust | |
16 | calls to check_function_nonnull, check_function_format, and | |
17 | check_function_sentinel. | |
18 | (check_function_sentinel): Take a FUNCTION_TYPE rather than | |
19 | separate attributes and typelist arguments. Use | |
20 | FOREACH_FUNCTION_ARGS to iterate over argument types. | |
21 | ||
3c0d13bf PC |
22 | 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
23 | ||
24 | * c-common.c (c_common_reswords): Reorder. | |
25 | * c-common.h (rid): Likewise. | |
26 | ||
8242dd04 NF |
27 | 2011-05-10 Nathan Froyd <froydnj@codesourcery.com> |
28 | ||
29 | * c-common.c (def_fn_type): Don't call build_function_type, call | |
30 | build_function_type_array or build_varargs_function_type_array | |
31 | instead. | |
32 | (c_common_nodes_and_builtins): Likewise. | |
33 | ||
3d528853 NF |
34 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
35 | ||
36 | * c-common.c (c_add_case_label): Omit the loc argument to | |
37 | build_case_label. | |
38 | * c-common.h (build_case_label): Remove. | |
39 | * c-semantics.c (build_case_label): Remove. | |
40 | ||
a04a722b JM |
41 | 2011-05-05 Joseph Myers <joseph@codesourcery.com> |
42 | ||
43 | * c-objc.h (objc_start_method_definition): Update prototype. | |
44 | * stub-objc.c (objc_start_method_definition): Add extra parameter. | |
45 | ||
e19a18d4 NF |
46 | 2011-05-04 Nathan Froyd <froydnj@codesourcery.com> |
47 | ||
48 | * c-common.c (check_main_parameter_types): Reindent. Don't use | |
49 | TYPE_ARG_TYPES directly. | |
50 | (handle_nonnull_attribute): Likewise. | |
51 | (sync_resolve_params): Likewise. | |
52 | * c-format.c (handle_format_arg_attribute): Likewise. Adjust call | |
53 | to check_format_string. | |
54 | (handle_format_attribute): Likewise. | |
55 | (check_format_string): Take a function type to examine instead of | |
56 | a type list. Use a function_arg_iterator to step through argument | |
57 | types. | |
58 | ||
c62c040f RG |
59 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
60 | ||
61 | * c-common.c (fix_string_type): Use size_int for index type bounds. | |
62 | (start_fname_decls): Do not pass NULL to build_int_cst. | |
63 | (c_init_attributes): Likewise. | |
64 | * c-lex.c (c_lex_with_flags): Likewise. | |
65 | ||
c12ff9d8 JM |
66 | 2011-04-27 Jason Merrill <jason@redhat.com> |
67 | ||
68 | * c-common.c (make_tree_vector_from_list): New. | |
69 | * c-common.h: Declare it. | |
70 | ||
304dfbe3 RG |
71 | 2011-04-26 Richard Guenther <rguenther@suse.de> |
72 | ||
73 | PR preprocessor/48248 | |
74 | * c-ppoutput.c (maybe_print_line): Always optimize newlines | |
75 | for output size with -P. | |
76 | ||
3c0d13bf PC |
77 | 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> |
78 | ||
79 | * c-common.c (struct c_common_resword): Add __underlying_type. | |
80 | * c-common.h (enum rid): Add RID_UNDERLYING_TYPE. | |
81 | ||
04695783 JM |
82 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
83 | ||
84 | * c-format.c (init_dollar_format_checking): Remove useless | |
85 | if-before-free. | |
86 | ||
0dc33c3c NP |
87 | 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com> |
88 | ||
89 | * c-objc.h (objc_get_interface_ivars): Removed. | |
3c0d13bf | 90 | (objc_detect_field_duplicates): New. |
0dc33c3c | 91 | * stub-objc.c: Likewise. |
3c0d13bf | 92 | |
c59633d9 NP |
93 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
94 | ||
95 | * stub-objc.c (objc_declare_protocols): Renamed to | |
96 | objc_declare_protocol. | |
97 | * c-objc.h: Likewise. | |
3c0d13bf | 98 | |
32dabdaf NP |
99 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
100 | ||
101 | * stub-objc.c (objc_declare_class): Updated argument name. | |
102 | ||
81f653d6 NF |
103 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
104 | ||
105 | * c-common.h (c_common_init_ts): Declare. | |
106 | * c-common.c (c_common_init_ts): Define. | |
107 | ||
eb345401 NP |
108 | 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> |
109 | ||
110 | * c-objc.h (objc_build_message_expr): Updated prototype. | |
111 | * stub-objc.c (objc_build_message_expr): Likewise. | |
112 | ||
a358e188 MJ |
113 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
114 | ||
115 | * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead | |
116 | of cgraph_node. | |
117 | ||
e6313a78 RG |
118 | 2011-04-11 Richard Guenther <rguenther@suse.de> |
119 | ||
120 | * c-common.c (complete_array_type): Build a range type of | |
121 | proper type. | |
122 | ||
dcf0c47e NF |
123 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
124 | ||
125 | * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. | |
126 | (handle_type_generic_attribute): Likewise. | |
127 | ||
1ee44b26 JM |
128 | 2011-04-07 Jason Merrill <jason@redhat.com> |
129 | ||
130 | PR c++/48450 | |
131 | * c-common.c (c_common_truthvalue_conversion): Don't ignore | |
132 | conversion from C++0x scoped enum. | |
133 | ||
acce4e77 JM |
134 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
135 | ||
136 | * c-target-def.h: New file. | |
137 | * c-target.def: New file. | |
138 | * c-target.h: New file. | |
139 | * c-common.c (targetcm): Don't define here. | |
140 | * c-common.h (default_handle_c_option): Declare. | |
141 | * c-format.c: Include c-target.h instead of target.h. | |
142 | * c-opts.c: Include c-target.h instead of target.h. Explicitly | |
143 | include tm.h. | |
144 | (default_handle_c_option): Move from targhooks.c. | |
145 | ||
e2eefb55 JJ |
146 | 2011-03-29 Jakub Jelinek <jakub@redhat.com> |
147 | ||
148 | PR preprocessor/48248 | |
149 | * c-ppoutput.c (print): Add src_file field. | |
150 | (init_pp_output): Initialize it. | |
151 | (maybe_print_line): Don't optimize by adding up to 8 newlines | |
152 | if map->to_file and print.src_file are different file. | |
153 | (print_line): Update print.src_file. | |
154 | ||
ba78087b KT |
155 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
156 | ||
157 | * c-ada-spec.c (compare_comment): Use filename_cmp | |
158 | instead of strcmp for filename. | |
159 | ||
0edf1bb2 JL |
160 | 2011-03-25 Jeff Law <law@redhat.com> |
161 | ||
162 | * c-family/c-common.c (def_fn_type): Add missing va_end. | |
163 | ||
c7dc8804 JM |
164 | 2011-03-25 Jason Merrill <jason@redhat.com> |
165 | ||
166 | * c.opt: Add -std=c++03. | |
167 | ||
d1d879b1 EB |
168 | 2011-03-22 Eric Botcazou <ebotcazou@adacore.com> |
169 | ||
170 | * c-ada-spec.c (dump_ada_template): Skip non-class instances. | |
171 | ||
62d784f7 KT |
172 | 2011-03-17 Kai Tietz |
173 | ||
174 | PR target/12171 | |
5050afdf KT |
175 | * c-pretty-print.c (pp_c_specifier_qualifier_list): |
176 | Display allowed attributes for function pointer types. | |
177 | (pp_c_attributes_display): New function to display | |
178 | attributes having affects_type_identity flag set to true. | |
179 | * c-pretty-print.h (pp_c_attributes_display): New prototype. | |
180 | ||
62d784f7 KT |
181 | * c-common.c (c_common_attribute_table): |
182 | Add new element. | |
183 | (c_common_format_attribute_table): Likewise. | |
184 | ||
82d37118 JM |
185 | 2011-03-18 Jason Merrill <jason@redhat.com> |
186 | ||
49a000c3 JM |
187 | * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth). |
188 | * c-common.h: Don't declare it here. | |
189 | * c-common.c: Or define it here. | |
190 | * c-opts.c (c_common_handle_option): Or set it here. | |
191 | ||
82d37118 JM |
192 | PR c++/35315 |
193 | * c-common.c (handle_transparent_union_attribute): Don't | |
194 | make a duplicate type in C++. | |
195 | ||
17bc631c JM |
196 | 2011-03-15 Jason Merrill <jason@redhat.com> |
197 | ||
198 | * c-common.c (max_constexpr_depth): New. | |
199 | * c-common.h: Declare it. | |
200 | * c-opts.c (c_common_handle_option): Set it. | |
201 | * c.opt (fconstexpr-depth): New option. | |
202 | ||
1b9b91a6 JM |
203 | 2011-03-11 Jason Merrill <jason@redhat.com> |
204 | ||
f231b5ff JM |
205 | * c-common.c (attribute_takes_identifier_p): Add missing const. |
206 | ||
1b9b91a6 JM |
207 | PR c++/46803 |
208 | * c-common.c (attribute_takes_identifier_p): Assume that an | |
209 | unknown attribute takes an identifier. | |
210 | ||
a19e4d44 NF |
211 | 2011-03-07 Nathan Froyd <froydnj@codesourcery.com> |
212 | ||
213 | PR c/47786 | |
214 | * c-common.c (c_type_hash): Call list_length instead of iterating | |
215 | through DECL_CHAIN. Rename 'i' to 'n_elements'. | |
216 | ||
982d62f6 JJ |
217 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> |
218 | ||
219 | PR c/47809 | |
220 | * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. | |
221 | ||
0a256240 NP |
222 | 2011-02-17 Iain Sandoe <iains@gcc.gnu.org> |
223 | ||
224 | * c.opt (fobjc-abi-version=) New. | |
225 | (fobjc-nilcheck): New. | |
226 | ||
ba9e6dd5 NF |
227 | 2011-02-03 Nathan Froyd <froydnj@codesourcery.com> |
228 | ||
229 | PR c++/46890 | |
230 | * c-common.h (keyword_is_decl_specifier): Declare. | |
231 | * c-common.c (keyword_is_decl_specifier): Define. | |
232 | (keyword_is_function_specifier): New function. | |
233 | ||
7273813a JJ |
234 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
235 | ||
236 | PR c/47473 | |
237 | * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure | |
238 | EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of | |
239 | REAL_TYPE. | |
240 | ||
908ef79b AC |
241 | 2011-01-26 Arnaud Charlet <charlet@adacore.com> |
242 | ||
243 | * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. | |
244 | ||
237e9384 JJ |
245 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
246 | ||
247 | PR pch/47430 | |
248 | * c-opts.c (c_common_post_options): Call c_common_no_more_pch | |
249 | after init_c_lex if pch_file is set. | |
250 | ||
47ea1edf DK |
251 | 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com> |
252 | ||
d4dba752 | 253 | PR c++/43601 |
47ea1edf DK |
254 | * c.opt (-fkeep-inline-dllexport): New switch. |
255 | ||
2aa9c6ae RG |
256 | 2011-01-12 Richard Guenther <rguenther@suse.de> |
257 | ||
258 | PR middle-end/32511 | |
259 | * c-common.c (handle_weak_attribute): Warn instead of error | |
260 | on declaring an inline function weak. | |
261 | ||
7bd11157 TT |
262 | 2011-01-05 Tom Tromey <tromey@redhat.com> |
263 | ||
264 | * c-common.h (lvalue_error): Update. | |
265 | * c-common.c (lvalue_error): Add 'loc' argument. Call error_at, | |
266 | not error. | |
267 | ||
0e66e494 NP |
268 | 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> |
269 | ||
b4f588c4 NP |
270 | PR objc/47075 |
271 | * c-objc.h (objc_finish_message_expr): Added argument to | |
272 | prototype. | |
273 | ||
f4da8dce NF |
274 | 2010-12-22 Nathan Froyd <froydnj@codesourcery.com> |
275 | ||
276 | * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): | |
277 | Use prototype_p. | |
278 | ||
46270f14 NP |
279 | 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> |
280 | ||
281 | * c-objc.h (objc_maybe_warn_exceptions): New. | |
282 | * stub-objc.c (objc_maybe_warn_exceptions): New. | |
283 | ||
4816c593 NF |
284 | 2010-12-10 Nathan Froyd <froydnj@codesourcery.com> |
285 | ||
286 | * c-common.h (readonly_error): Declare. | |
287 | * c-common.c (readonly_error): Define. | |
288 | ||
7a6daeb0 NF |
289 | 2010-12-09 Nathan Froyd <froydnj@codesourcery.com> |
290 | ||
291 | * c-common.h (invalid_indirection_error): Declare. | |
292 | * c-common.c (invalid_indirection_error): Define. | |
293 | ||
892f6119 RG |
294 | 2010-12-03 Richard Guenther <rguenther@suse.de> |
295 | ||
296 | PR c/46745 | |
297 | * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF. | |
298 | (pp_c_unary_expression): Likewise. | |
299 | (pp_c_expression): Likewise. | |
300 | ||
6c39e757 NP |
301 | 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> |
302 | ||
303 | * c-common.h (objc_finish_function): New. | |
304 | (objc_non_volatilized_type): Removed. | |
305 | (objc_type_quals_match): Removed. | |
306 | * stub-objc.c (objc_finish_function): New. | |
307 | (objc_non_volatilized_type): Removed. | |
308 | (objc_type_quals_match): Removed. | |
309 | ||
7c475d11 JM |
310 | 2010-11-30 Joseph Myers <joseph@codesourcery.com> |
311 | ||
312 | * c-common.h (parse_optimize_options): Declare. | |
313 | * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c, | |
314 | c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h. | |
315 | ||
71f3e391 JM |
316 | 2010-11-29 Joseph Myers <joseph@codesourcery.com> |
317 | ||
318 | * c-opts.c (check_deps_environment_vars): Use getenv instead of | |
319 | GET_ENVIRONMENT. | |
320 | * c-pch.c (O_BINARY): Don't define here. | |
321 | * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. | |
322 | ||
d5fabb58 JM |
323 | 2010-11-25 Joseph Myers <joseph@codesourcery.com> |
324 | ||
325 | * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to | |
326 | targetm.except_unwind_info. | |
327 | ||
299404a1 JM |
328 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
329 | ||
330 | * c-opts.c (c_common_handle_option): Pass location to | |
331 | set_struct_debug_option. | |
332 | ||
c98cd5bf JM |
333 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
334 | ||
335 | * c-common.c (visibility_options): Move from ../opts.c. | |
336 | * c-common.h (struct visibility_flags, visibility_options): | |
337 | Declare here. | |
338 | * c-opts.c (finish_options): Rename to c_finish_options. | |
339 | (c_common_init): Update call to finish_options. | |
340 | ||
a9546771 NP |
341 | 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> |
342 | ||
343 | PR objc/34033 | |
344 | * c-lex.c (lex_string): Check that each string in an Objective-C | |
345 | string concat sequence starts with either one or zero '@', and | |
346 | that there are no spurious '@' signs at the end. | |
347 | ||
24a57808 JM |
348 | 2010-11-20 Joseph Myers <joseph@codesourcery.com> |
349 | ||
350 | * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, | |
351 | HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and | |
352 | HANDLE_PRAGMA_VISIBILITY. | |
353 | * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, | |
354 | HANDLE_PRAGMA_VISIBILITY): Don't define. | |
355 | (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. | |
356 | ||
a9aa2c3a NF |
357 | 2010-11-20 Nathan Froyd <froydnj@codesourcery.com> |
358 | ||
359 | PR c++/16189 | |
360 | PR c++/36888 | |
361 | PR c++/45331 | |
362 | * c-common.h (keyword_begins_type_specifier): Declare. | |
363 | (keyword_is_storage_class_specifier): Declare. | |
364 | (keyword_is_type_qualifier): Declare. | |
365 | * c-common.c (keyword_begins_type_specifier): New function. | |
366 | (keyword_is_storage_class_specifier): New function. | |
367 | (keyword_is_type_qualifier): Declare. | |
368 | ||
5386338c JM |
369 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
370 | ||
371 | PR c/46547 | |
372 | * c-common.c (in_late_binary_op): Define. | |
373 | (c_common_truthvalue_conversion): Check in_late_binary_op before | |
374 | calling c_save_expr. | |
375 | * c-common.h (in_late_binary_op): Declare. | |
376 | ||
69ccdddb JM |
377 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
378 | ||
379 | * c-opts.c (c_common_handle_option): Update calls to | |
380 | set_struct_debug_option. | |
381 | ||
6b192a09 NP |
382 | 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com> |
383 | ||
384 | * c-common.h (objc_declare_protocols): Added additional argument. | |
385 | * stub-objc.c (objc_declare_protocol): Same change. | |
386 | ||
fb52b50a NF |
387 | 2010-11-18 Nathan Froyd <froydnj@codesourcery.com> |
388 | ||
389 | PR c/33193 | |
390 | * c-common.h (build_real_imag_expr): Declare. | |
391 | * c-semantics.c (build_real_imag_expr): Define. | |
392 | ||
b37421c6 JM |
393 | 2010-11-17 Joseph Myers <joseph@codesourcery.com> |
394 | ||
395 | * c-opts.c (c_common_parse_file): Take no arguments. | |
396 | * c-common.h (c_common_parse_file): Update prototype. | |
397 | ||
07078664 JJ |
398 | 2010-11-16 Jakub Jelinek <jakub@redhat.com> |
399 | ||
400 | PR c++/46401 | |
401 | * c-common.c (warning_candidate_p): Don't track non-const calls | |
402 | or STRING_CSTs. | |
403 | ||
c6a13190 ILT |
404 | 2010-11-15 Ian Lance Taylor <iant@google.com> |
405 | ||
406 | * c-lex.c (init_c_lex): Set macro debug callbacks if | |
407 | flag_dump_go_spec is set. | |
408 | ||
925e8657 NP |
409 | 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> |
410 | ||
411 | * c-common.h (objc_build_incr_expr_for_property_ref): New. | |
412 | * stub-objc.c (objc_build_incr_expr_for_property_ref): New. | |
413 | ||
bb0a9581 NF |
414 | 2010-11-15 Nathan Froyd <froydnj@codesourcery.com> |
415 | ||
416 | PR preprocessor/45038 | |
417 | * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ | |
418 | dialects. | |
419 | ||
c5fa0890 JM |
420 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
421 | ||
422 | * c-common.h (c_family_lang_mask): Declare. | |
423 | * c-opts.c (c_family_lang_mask): Make extern. | |
424 | * c-pragma.c (handle_pragma_diagnostic): Use | |
425 | control_warning_option. | |
426 | ||
a4d8c676 JM |
427 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
428 | ||
429 | * c-common.c (parse_optimize_options): Update call to | |
430 | decode_options. | |
431 | * c-common.h (c_common_handle_option): Update prototype. | |
432 | * c-opts.c (c_common_handle_option): Take location_t parameter and | |
433 | pass it to other functions. | |
434 | ||
f954bd2c JM |
435 | 2010-11-11 Joseph Myers <joseph@codesourcery.com> |
436 | ||
437 | * c-opts.c (warning_as_error_callback): Remove. | |
438 | (c_common_initialize_diagnostics): Don't call | |
439 | register_warning_as_error_callback. | |
440 | (c_common_handle_option): Handle -Werror=normalized= here. | |
441 | ||
d8a07487 JM |
442 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
443 | ||
444 | * c-common.c (handle_mode_attribute): Use %' and word "signedness" | |
445 | in diagnostic. | |
446 | * c-opts.c (c_common_parse_file): Start diagnostics with lowercase | |
447 | letter. | |
448 | * c-pragma.c (handle_pragma_target, handle_pragma_optimize): | |
449 | Remove trailing '.' from diagnostics. | |
450 | * c.opt (Wwrite-strings_: Avoid '`' in help text. | |
451 | ||
d5478783 JM |
452 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
453 | ||
454 | * c-common.c (parse_optimize_options): Pass global_dc to | |
455 | decode_options. | |
456 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
457 | set_Wstrict_aliasing. | |
458 | * c.opt (v): Don't mark Common or document here. | |
459 | ||
91ebb981 IS |
460 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
461 | ||
462 | PR target/44981 | |
463 | * c-format.c (format_type): New type gcc_objc_string_format_type. | |
464 | (valid_stringptr_type_p): New. | |
465 | (handle_format_arg_attribute): Use valid_stringptr_type_p (). | |
466 | (check_format_string): Pass expected type, use | |
467 | valid_stringptr_type_p (), check that the format string types are | |
468 | consistent with the format specification. | |
469 | (decode_format_attr): Warn if NSString is used outside objective-c. | |
470 | (format_types_orig): Add NSString. | |
471 | (format_name): New. | |
472 | (format_flags): New. | |
473 | (check_format_arg): Handle format strings requiring an external parser. | |
474 | first_target_format_type: New variable. | |
475 | (handle_format_attribute): Set up first_target_format_type, pass the | |
476 | expected format arg string type to check_format_string(). | |
477 | * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. | |
478 | * stub-objc.c (objc_string_ref_type_p): New. | |
479 | (objc_check_format_arg): New. | |
480 | ||
bede2adc NP |
481 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
482 | ||
483 | Fixed using the Objective-C 2.0 dot-syntax with class names. | |
484 | * c-common.h (objc_build_class_component_ref): New. | |
485 | * stub-objc.c (objc_build_class_component_ref): New. | |
486 | ||
9a179d01 NP |
487 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
488 | ||
489 | * c.opt (Wproperty-assign-default): New option. | |
490 | ||
22d8d616 NP |
491 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
492 | ||
493 | Implemented -fobjc-std=objc1 flag. | |
494 | * c.opt (fobjc-std=objc1): New option. | |
495 | ||
2debdb4f NP |
496 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
497 | ||
498 | Implemented format and noreturn attributes for Objective-C methods. | |
499 | * c-common.c (handle_noreturn_attribute): Recognize 'noreturn' | |
500 | attribute for Objective-C methods. | |
501 | ||
ec52b111 JM |
502 | 2010-10-31 Jason Merrill <jason@redhat.com> |
503 | ||
504 | * c-common.c (conversion_warning, warn_for_collisions_1): Use | |
505 | EXPR_LOC_OR_HERE. | |
506 | ||
46a88c12 NP |
507 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
508 | ||
509 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
510 | * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. | |
511 | (objc_add_property_declaration): Removed arguments for copies and | |
512 | ivar. | |
513 | (objc_build_getter_call): Renamed to | |
514 | objc_maybe_build_component_ref. | |
515 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
516 | (objc_is_property_ref): New. | |
517 | * c-common.c (c_common_reswords): Removed copies and ivar. | |
518 | * stub-objc.c (objc_add_property_declaration): Removed arguments | |
519 | for copies and ivar. | |
520 | (objc_build_getter_call): Renamed to | |
521 | objc_maybe_build_component_ref. | |
522 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
523 | (objc_is_property_ref): New. | |
524 | ||
1e4bf85b AC |
525 | 2010-10-29 Arnaud Charlet <charlet@adacore.com> |
526 | Matthew Gingell <gingell@adacore.com> | |
527 | ||
528 | * c-ada-spec.c (separate_class_package): New function. | |
529 | (pp_ada_tree_identifier): Prefix references to C++ classes with the | |
530 | name of their enclosing package. | |
531 | (print_ada_declaration): Use separate_class_package. | |
532 | ||
81f0bab2 JM |
533 | 2010-10-27 Jason Merrill <jason@redhat.com> |
534 | ||
2b08f2c5 JM |
535 | * c-common.c (c_common_reswords): Add __is_literal_type. |
536 | * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. | |
537 | ||
81f0bab2 JM |
538 | * c-common.c (check_case_value): Remove special C++ code. |
539 | ||
200290f2 NP |
540 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
541 | ||
542 | * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, | |
543 | RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR | |
544 | and RID_LAST_PATTR. | |
545 | (objc_add_property_declaration): Added additional arguments. | |
546 | (objc_property_attribute_kind): Removed. | |
547 | (objc_set_property_attr): Removed. | |
548 | * c-common.c (c_common_reswords): Added readwrite, assign, retain, | |
549 | copy and nonatomic. | |
550 | * stub-objc.c (objc_add_property_declaration): Added additional | |
551 | arguments. | |
552 | (objc_set_property_attr): Removed. | |
553 | ||
f614132b NP |
554 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
555 | ||
556 | * c-common.h (objc_add_property_variable): Renamed to | |
557 | objc_add_property_declaration. Added location argument. | |
558 | * stub-objc.c (objc_add_property_variable): Same change. | |
559 | ||
b8a18805 NP |
560 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
561 | ||
562 | * c-common.h (objc_maybe_printable_name): New. | |
563 | * stub-objc.c (objc_maybe_printable_name): New. | |
564 | ||
30cd1c5d AS |
565 | 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
566 | Andrew Pinski <pinskia@gmail.com> | |
567 | ||
568 | * c-common.h (c_common_mark_addressable_vec): Declare. | |
569 | * c-common.c (c_common_mark_addressable_vec): New function. | |
570 | ||
249a82c4 NP |
571 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
572 | ||
573 | * c-common.h (objc_set_method_type): Removed. | |
574 | (objc_add_method_declaration): Added boolean argument. | |
575 | (objc_start_method_definition): Same change. | |
576 | (objc_build_method_signature): Same change. | |
577 | * stub-objc.c (objc_set_method_type): Removed. | |
578 | (objc_add_method_declaration): Added boolean argument. | |
579 | (objc_start_method_definition): Same change. | |
580 | (objc_build_method_signature): Same change. | |
581 | ||
977e30bc NP |
582 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
583 | ||
584 | * c-common.h (finish_file): Removed. | |
585 | (objc_write_global_declarations): New. | |
586 | * c-opts.c (c_common_parse_file): Do not call finish_file. | |
587 | * stub-objc.c (objc_write_global_declarations): New. | |
588 | ||
da57d1b9 NP |
589 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
590 | ||
591 | Implemented parsing @synthesize and @dynamic for | |
592 | Objective-C/Objective-C++. | |
593 | * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. | |
594 | (objc_add_synthesize_declaration): New. | |
595 | (objc_add_dynamic_declaration): New. | |
596 | * c-common.c (c_common_reswords): Add synthesize and dynamic. | |
597 | * stub-objc.c (objc_add_synthesize_declaration): New. | |
598 | (objc_add_dynamic_declaration): New. | |
599 | ||
0069111f MM |
600 | 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com> |
601 | ||
602 | PR target/46041 | |
603 | * c-cppbuiltin.c (mode_has_fma): Move function here from | |
604 | builtins.c. Don't use the fma optab, instead just use the | |
605 | HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when | |
606 | using -save-temps. | |
607 | ||
e426b47b NP |
608 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
609 | ||
610 | Merge from 'apple/trunk' branch on FSF servers. | |
0069111f | 611 | |
e426b47b NP |
612 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> |
613 | ||
614 | Radar 4330422 | |
615 | * c-common.h (objc_non_volatilized_type): New declaration | |
616 | * stub-objc.c (objc_non_volatilized_type): New stub. | |
617 | ||
90fbfdc3 NP |
618 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
619 | ||
e426b47b | 620 | Merge from 'apple/trunk' branch on FSF servers. |
90fbfdc3 NP |
621 | |
622 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> | |
623 | ||
624 | Radar 4133425 | |
625 | * c-common.h (objc_diagnose_private_ivar): New decl. | |
0069111f | 626 | * stub-objc.c (objc_diagnose_private_ivar): New stub. |
90fbfdc3 | 627 | |
c37d8c30 IS |
628 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
629 | ||
630 | * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. | |
631 | * c-common.h (enum rid): Add RID_AT_PACKAGE. | |
632 | (objc_ivar_visibility_kind): New enum. | |
633 | (objc_set_visibility): Adjust prototype to use visibility enum. | |
0069111f | 634 | * stub-objc.c (objc_set_visibility): Adjust stub to use |
c37d8c30 IS |
635 | visibility enum. |
636 | ||
1b1562a5 MM |
637 | 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
638 | ||
639 | * c-cppbuiltin.c (builtin_define_float_constants): Emit | |
640 | __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine | |
641 | has the appropriate fma builtins. | |
642 | (c_cpp_builtins): Adjust call to builtin_define_float_constants. | |
643 | ||
668ea4b1 IS |
644 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
645 | ||
1b1562a5 | 646 | merge from FSF apple 'trunk' branch. |
668ea4b1 | 647 | 2006 Fariborz Jahanian <fjahanian@apple.com> |
1b1562a5 | 648 | |
668ea4b1 IS |
649 | Radars 4436866, 4505126, 4506903, 4517826 |
650 | * c-common.c (c_common_resword): Define @property and its attributes. | |
651 | * c-common.h: Define property attribute enum entries. | |
652 | (OBJC_IS_PATTR_KEYWORD): New. | |
653 | (objc_property_attribute_kind): New enum. | |
654 | Declare objc_set_property_attr (), objc_add_property_variable (), | |
655 | objc_build_getter_call () and objc_build_setter_call (). | |
656 | * stub-objc.c (objc_set_property_attr): New stub. | |
657 | (objc_add_property_variable): Likewise. | |
658 | (objc_build_getter_call): Likewise. | |
659 | (objc_build_setter_call) Likewise. | |
1b1562a5 | 660 | |
a1178b30 IS |
661 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
662 | ||
1b1562a5 | 663 | merge from FSF apple 'trunk' branch. |
a1178b30 IS |
664 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> |
665 | ||
666 | Radar 3803157 (method attributes) | |
667 | * c-common.c (handle_deprecated_attribute): Recognize | |
668 | objc methods as valid declarations. | |
669 | * c-common.h: Declare objc_method_decl (). | |
1b1562a5 | 670 | * stub-objc.c (objc_method_decl): New stub. |
a1178b30 | 671 | |
a75bfaa6 JM |
672 | 2010-10-08 Joseph Myers <joseph@codesourcery.com> |
673 | ||
674 | * c-common.c (parse_optimize_options): Call | |
675 | decode_cmdline_options_to_array_default_mask before | |
676 | decode_options. Update arguments to decode_options. | |
677 | * c-common.h (c_common_init_options_struct): Declare. | |
678 | * c-opts.c (c_common_init_options_struct): New. Split out from | |
679 | c_common_init_options. | |
680 | ||
f05b9d93 NP |
681 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
682 | ||
683 | Implemented fast enumeration for Objective-C. | |
684 | * c-common.h (objc_finish_foreach_loop): New. | |
685 | * stub-objc.c (objc_finish_foreach_loop): New. | |
686 | ||
1ebe4b4f JM |
687 | 2010-10-05 Joseph Myers <joseph@codesourcery.com> |
688 | ||
689 | * c-common.h (struct diagnostic_context): Don't declare here. | |
690 | (c_common_initialize_diagnostics): Declare using | |
691 | diagnostic_context typedef. | |
692 | * c-opts.c (c_common_handle_option): Pass global_dc to | |
693 | handle_generated_option. | |
694 | ||
d4d24ba4 JM |
695 | 2010-10-04 Joseph Myers <joseph@codesourcery.com> |
696 | ||
697 | * c-opts.c (c_common_handle_option): Pass &global_options_set to | |
698 | handle_generated_option. | |
699 | ||
478a1c5b ILT |
700 | 2010-10-03 Ian Lance Taylor <iant@google.com> |
701 | ||
702 | * c.opt (-fplan9-extensions): New option. | |
703 | ||
82a1c2fe FXC |
704 | 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
705 | ||
706 | * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): | |
707 | Remove. | |
708 | (c_cpp_builtins): Call functions from cppbuiltin.c instead | |
709 | of duplicating code. | |
710 | ||
92902b1b IS |
711 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
712 | ||
713 | * c-common.c: Add two new entries for @optional | |
714 | and @required keywords. | |
715 | ||
716 | merge from FSF 'apple/trunk' branch. | |
717 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> | |
718 | ||
719 | Radar 4386773 | |
720 | * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new | |
721 | objective-c keywords. | |
722 | (objc_set_method_opt): New declaration. | |
723 | * stub-objc.c (objc_set_method_opt): New stub. | |
724 | ||
46625112 JM |
725 | 2010-09-30 Joseph Myers <joseph@codesourcery.com> |
726 | ||
727 | * c-common.c (handle_optimize_attribute): Pass &global_options to | |
728 | cl_optimization_save and cl_optimization_restore. | |
729 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
730 | handle_generated_option. | |
731 | * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. | |
732 | (handle_pragma_pop_options, handle_pragma_reset_options): Pass | |
733 | &global_options to cl_optimization_restore. | |
734 | ||
49b91f05 NP |
735 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
736 | ||
737 | * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME | |
738 | Objective-C/Objective-C++ keywords. | |
739 | ||
13ed556f | 740 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
a6341d57 NP |
741 | |
742 | Merge from 'apple/trunk' branch on FSF servers. | |
743 | ||
744 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> | |
745 | ||
746 | Radar 4281748 | |
747 | * c-common.h (objc_check_global_decl): New declaration. | |
748 | * stub-objc.c (objc_check_global_decl): New stub. | |
749 | ||
f0036cca JM |
750 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
751 | ||
752 | * c.opt: Don't use VarExists. | |
753 | ||
e3339d0f JM |
754 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
755 | ||
756 | * c-common.c (c_cpp_error): Update names of diagnostic_context | |
757 | members. | |
758 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of | |
759 | cl_optimization members. | |
760 | * c-opts.c (warning_as_error_callback, c_common_handle_option, | |
761 | sanitize_cpp_opts, finish_options): Update names of cpp_options | |
762 | members. | |
763 | ||
1973201f NP |
764 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
765 | ||
766 | * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. | |
767 | (objc_is_reserved_word): Removed. | |
768 | * c-common.c: Updated comments. | |
769 | * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of | |
770 | objc_is_reserved_word. | |
771 | * stub-objc.c (objc_is_reserved_word): Removed. | |
772 | ||
f7e71da5 IS |
773 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
774 | ||
775 | * c-common.h (objc_add_method_declaration): Adjust prototype to | |
776 | include attributes. | |
777 | (objc_start_method_definition): Likewise. | |
778 | (objc_build_keyword_decl): Likewise. | |
779 | * stub-objc.c:(objc_add_method_declaration): Handle attributes. | |
780 | (objc_start_method_definition): Likewise. | |
781 | (objc_build_keyword_decl): Likewise. | |
782 | ||
c165dca7 IS |
783 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
784 | ||
785 | * c-common.h (objc_start_class_interface): Adjust prototype. | |
786 | (objc_start_category_interface): Likewise. | |
787 | (objc_start_protocol): Likewise. | |
788 | * stub-objc.c (objc_start_protocol): Adjust for extra argument. | |
789 | (objc_start_class_interface): Likewise. | |
790 | (objc_start_category_interface): Likewise. | |
791 | ||
7458026b ILT |
792 | 2010-09-27 Ian Lance Taylor <iant@google.com> |
793 | ||
794 | * c-common.c (c_common_attribute_table): Add no_split_stack. | |
795 | (handle_no_split_stack_attribute): New static function. | |
796 | ||
b581b85b NP |
797 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
798 | ||
799 | Merge from 'apple/trunk' branch on FSF servers. | |
800 | ||
801 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> | |
802 | ||
803 | Radar 4229905 | |
804 | * c-common.h (objc_have_common_type): New declaration. | |
805 | * stub-objc.c (objc_have_common_type): New stub. | |
806 | ||
807 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
808 | ||
809 | Radar 4154928 | |
810 | * c-common.h (objc_common_type): New prototype. | |
811 | * stub-objc.c (objc_common_type): New stub. | |
812 | ||
46a4da10 JH |
813 | 2010-09-24 Jan Hubicka <jh@suse.cz> |
814 | ||
815 | * c-common.c (handle_leaf_attribute): New function. | |
816 | (struct attribute_spec c_common_att): Add leaf. | |
817 | ||
e200444e JM |
818 | 2010-09-22 Joseph Myers <joseph@codesourcery.com> |
819 | ||
820 | * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, | |
821 | -comments-in-macros, -define-macro, -define-macro=, -dependencies, | |
822 | -dump, -dump=, -imacros, -imacros=, -include, -include=, | |
823 | -include-barrier, -include-directory, -include-directory=, | |
824 | -include-directory-after, -include-directory-after=, | |
825 | -include-prefix, -include-prefix=, -include-with-prefix, | |
826 | -include-with-prefix=, -include-with-prefix-after, | |
827 | -include-with-prefix-after=, -include-with-prefix-before, | |
828 | -include-with-prefix-before=, -no-integrated-cpp, | |
829 | -no-line-commands, -no-standard-includes, -no-warnings, -output, | |
830 | -output=, -pedantic, -pedantic-errors, -preprocess, | |
831 | -print-missing-file-dependencies, -trace-includes, -traditional, | |
832 | -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, | |
833 | -user-dependencies, -verbose, -write-dependencies, | |
834 | -write-user-dependencies, no-integrated-cpp, traditional): New. | |
835 | ||
29a80ea6 NP |
836 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
837 | ||
838 | PR objc/23710 | |
ac1fc2fc NP |
839 | * c-common.h (objc_start_method_definition): Return bool instead |
840 | of void. | |
841 | * stub-objc.c (objc_start_method_definition): Return bool instead | |
842 | of void. | |
843 | ||
844 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> | |
845 | ||
846 | PR objc/25965 | |
847 | * c-common.h (objc_get_interface_ivars): New declaration. | |
848 | * stub-objc.c (objc_get_interface_ivars): New stub. | |
29a80ea6 | 849 | |
de621752 ILT |
850 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
851 | ||
852 | * c-common.c (parse_optimize_options): Do not capitalize warning | |
06730c5d | 853 | messages. Remove period at end of warning message. |
de621752 | 854 | |
ba885ec5 NS |
855 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
856 | ||
857 | * c-common.c (handle_alias_ifunc_attribute): New, broken out of ... | |
858 | (handle_alias_attribute): ... here. | |
859 | (handle_ifunc_attribute): New. | |
860 | ||
c5ee1358 MM |
861 | 2010-09-06 Mark Mitchell <mark@codesourcery.com> |
862 | ||
863 | * c-common.h (do_warn_double_promotion): Declare. | |
864 | * c-common.c (do_warn_double_promotion): Define. | |
865 | ||
0a0b3574 MM |
866 | 2010-09-05 Mark Mitchell <mark@codesourcery.com> |
867 | ||
868 | * c.opt (Wdouble-promotion): New. | |
869 | ||
d1779886 JM |
870 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
871 | ||
872 | * c.opt (falt-external-templates, fhuge-objects, fvtable-gc, | |
873 | fvtable-thunks, fxref): Mark no longer supported in help text. | |
874 | ||
2d2bd949 JM |
875 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
876 | ||
877 | * c.opt (Wimport, fall-virtual, falt-external-templates, | |
878 | fdefault-inline, fenum-int-equiv, fexternal-templates, | |
879 | fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, | |
880 | fname-mangling-version-, fnew-abi, fnonnull-objects, | |
881 | foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, | |
882 | fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as | |
883 | applicable. | |
884 | (fhandle-exceptions): Mark with Alias and Warn. | |
885 | * c-opts.c (c_common_handle_option): Don't handle options marked | |
886 | as ignored. | |
887 | ||
5de8299c JM |
888 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
889 | ||
890 | * c.opt (Wcomments, Werror-implicit-function-declaration, | |
891 | ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, | |
892 | std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as | |
893 | aliases. | |
894 | * c-common.c (option_codes): Use OPT_Wcomment instead of | |
895 | OPT_Wcomments. | |
896 | * c-opts.c (warning_as_error_callback, c_common_handle_option): | |
897 | Don't handle options marked as aliases. | |
898 | ||
0ceb0201 RG |
899 | 2010-08-25 Richard Guenther <rguenther@suse.de> |
900 | ||
901 | * c-common.c (c_common_get_alias_set): Remove special | |
902 | handling for pointers. | |
903 | ||
ac47786e NF |
904 | 2010-08-20 Nathan Froyd <froydnj@codesourcery.com> |
905 | ||
906 | * c-common.c: Use FOR_EACH_VEC_ELT. | |
907 | * c-gimplify.c: Likewise. | |
908 | * c-pragma.c: Likewise. | |
909 | ||
c878765b JM |
910 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
911 | ||
912 | * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of | |
913 | RejectDriver. | |
914 | (MMDX): Change back to MMD. Mark NoDriverArg instead of | |
915 | RejectDriver. | |
916 | * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD | |
917 | instead of OPT_MDX and OPT_MMDX. | |
918 | ||
603349bf JM |
919 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
920 | ||
921 | * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. | |
922 | ||
644fa7ac JM |
923 | 2010-08-12 Joseph Myers <joseph@codesourcery.com> |
924 | ||
925 | * c.opt (MD, MMD): Change to MDX and MMDX. | |
926 | * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. | |
927 | ||
481e1176 JM |
928 | 2010-08-11 Joseph Myers <joseph@codesourcery.com> |
929 | ||
930 | * c-opts.c (c_common_handle_option): Call handle_generated_option | |
931 | instead of handle_option. | |
932 | ||
ac8dc9f7 NF |
933 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
934 | ||
935 | * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. | |
936 | (maybe_apply_renaming_pragma): Delete unneeded declarations. | |
937 | ||
4f8c876d NF |
938 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
939 | ||
940 | * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. | |
941 | (pending_redefine_extname): Change type to a VEC. | |
942 | (add_to_renaming_pragma_list): Update for new type of | |
943 | pending_redefine_extname. | |
ac8dc9f7 | 944 | (maybe_apply_renaming_pragma): Likewise. |
4f8c876d | 945 | |
3b0c690e AC |
946 | 2010-08-04 Arnaud Charlet <charlet@adacore.com> |
947 | ||
948 | * c-ada-spec.c (dump_ada_template): Mark underlying instance type as | |
949 | visited. | |
950 | (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to | |
951 | decide whether a type has already been declared/seen. | |
952 | Do not go to the original type. | |
953 | (dump_nested_types): New parameter forward. | |
954 | Generate forward declaration if needed and mark type as visited. | |
955 | (print_ada_declaration): Call dump_nested_types if not already done. | |
956 | Mark types as visited. | |
957 | ||
1890bccc JM |
958 | 2010-08-03 Joseph Myers <joseph@codesourcery.com> |
959 | ||
960 | * c.opt (-print-pch-checksum): Remove option. | |
961 | * c-opts.c (c_common_handle_option): Don't handle | |
962 | OPT_print_pch_checksum. | |
963 | ||
5f20c657 JM |
964 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
965 | ||
966 | * c-common.h (c_common_handle_option): Update prototype and return | |
967 | value type. | |
968 | * c-opts.c (c_common_handle_option): Update prototype and return | |
969 | value type. Update calls to handle_option and | |
970 | enable_warning_as_error. | |
971 | ||
f551f80c JJ |
972 | 2010-07-27 Jakub Jelinek <jakub@redhat.com> |
973 | ||
974 | PR c/45079 | |
975 | * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. | |
976 | ||
61ff2bdc JM |
977 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
978 | ||
979 | * c-common.h (c_common_missing_argument): Remove. | |
980 | * c-opts.c (c_common_missing_argument): Remove. | |
981 | * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, | |
982 | idirafter, imacros, include, isysroot, isystem, iquote): Add | |
983 | MissingArgError. | |
984 | * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. | |
985 | ||
7a9bf9a4 JM |
986 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
987 | ||
988 | * c-common.h (c_common_option_lang_mask, | |
989 | c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): | |
990 | New. | |
991 | (c_common_init_options): Update prototype. | |
992 | * c-opts.c (c_common_option_lang_mask): New. | |
993 | (c_common_initialize_diagnostics): Split out of | |
994 | c_common_init_options. | |
995 | (accept_all_c_family_options, c_common_complain_wrong_lang_p): | |
996 | New. | |
997 | (c_common_init_options): Update prototype. Use decoded options in | |
998 | search for -lang-asm. | |
999 | ||
910ad8de NF |
1000 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
1001 | ||
1002 | * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
1003 | * c-format.c: Likewise. | |
1004 | ||
718f9c0f MLI |
1005 | 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1006 | ||
1007 | * c-common.h: Include diagnostic-core.h. Error if already | |
1008 | included. | |
1009 | * c-semantics.c: Do not define GCC_DIAG_STYLE here. | |
1010 | ||
4d451982 MLI |
1011 | 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1012 | ||
1013 | * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef. | |
1014 | Do not include expr.h | |
1015 | (vector_mode_valid_p): Move here. | |
1016 | ||
119fe915 SB |
1017 | 2010-06-21 DJ Delorie <dj@redhat.com> |
1018 | ||
1019 | * c-pragma.c (handle_pragma_diagnostic): Add push/pop, | |
1020 | allow these pragmas anywhere. | |
1021 | ||
1022 | 2010-06-14 Jakub Jelinek <jakub@redhat.com> | |
1023 | ||
1024 | PR bootstrap/44509 | |
1025 | * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. | |
1026 | (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. | |
1027 | (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use | |
1028 | ggc_strdup instead of xstrdup. | |
1029 | ||
1030 | 2010-06-10 Jakub Jelinek <jakub@redhat.com> | |
1031 | ||
1032 | * c-cppbuiltin.c: Include cpp-id-data.h. | |
1033 | (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. | |
1034 | (lazy_hex_fp_value): New function. | |
1035 | (builtin_define_with_hex_fp_value): Provide definitions lazily. | |
1036 | ||
6662d794 MLI |
1037 | 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1038 | ||
1039 | * c-gimplify.c: Do not include tree-flow.h | |
1040 | ||
38f8b050 JR |
1041 | 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com> |
1042 | ||
1043 | PR other/44034 | |
1044 | * c-common.c: Rename targetm member: | |
1045 | targetm.enum_va_list -> targetm.enum_va_list_p | |
1046 | ||
9589f23e AS |
1047 | 2010-06-28 Anatoly Sokolov <aesok@post.ru> |
1048 | ||
1049 | * c-common.c (shorten_compare): Adjust call to force_fit_type_double. | |
1050 | ||
3b06d379 SB |
1051 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
1052 | ||
1053 | * c-cppbuiltin.c: Do not include except.h. | |
1054 | ||
d166d4c3 AK |
1055 | 2010-06-24 Andi Kleen <ak@linux.intel.com> |
1056 | ||
1057 | * c-common.c (warn_for_omitted_condop): New. | |
1058 | * c-common.h (warn_for_omitted_condop): Add prototype. | |
1059 | ||
70cb8be6 JM |
1060 | 2010-06-21 Joseph Myers <joseph@codesourcery.com> |
1061 | ||
1062 | * c.opt (lang-objc): Remove. | |
1063 | * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. | |
1064 | ||
a4c97feb JR |
1065 | 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com> |
1066 | ||
1067 | * c-opts.c: Include "tm_p.h". | |
1068 | ||
6e2f1956 JM |
1069 | 2010-06-20 Joseph Myers <joseph@codesourcery.com> |
1070 | ||
1071 | * c-common.c (parse_optimize_options): Update call to | |
1072 | decode_options. | |
1073 | ||
bc87224e NF |
1074 | 2010-06-18 Nathan Froyd <froydnj@codesourcery.com> |
1075 | ||
1076 | * c-common.c (record_types_used_by_current_var_decl): Adjust for | |
1077 | new type of types_used_by_cur_var_decl. | |
1078 | ||
b49cf425 JR |
1079 | 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com> |
1080 | ||
1081 | PR bootstrap/44512 | |
1082 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast | |
1083 | for C++ standard compliance. | |
1084 | ||
59f9c2ed JM |
1085 | 2010-06-16 Jason Merrill <jason@redhat.com> |
1086 | ||
1087 | * c.opt: Add -Wnoexcept. | |
1088 | ||
33766b66 RG |
1089 | 2010-06-16 Richard Guenther <rguenther@suse.de> |
1090 | ||
1091 | PR c/44555 | |
1092 | * c-common.c (c_common_truthvalue_conversion): Remove | |
1093 | premature and wrong optimization concering ADDR_EXPRs. | |
1094 | ||
eff7e30c AC |
1095 | 2010-06-15 Arnaud Charlet <charlet@adacore.com> |
1096 | ||
1097 | * c-ada-spec.c (dump_sloc): Remove column info. | |
1098 | (is_simple_enum): New function. | |
1099 | (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada | |
1100 | enum types when relevant. | |
1101 | ||
6312e84d MLI |
1102 | 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1103 | ||
1104 | * c-common.c (conversion_warning): Warn at expression | |
1105 | location. | |
1106 | ||
1cb42611 JM |
1107 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
1108 | ||
1109 | * c-opts.c (c_common_handle_option): Don't handle | |
1110 | OPT_fshow_column. | |
1111 | ||
a9429e29 LB |
1112 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
1113 | ||
1114 | * c-pragma.c (push_alignment): Use typed GC allocation. | |
1115 | (handle_pragma_push_options): Likewise. | |
1116 | ||
1117 | * c-common.c (parse_optimize_options): Likewise. | |
1118 | ||
1119 | * c-common.h (struct sorted_fields_type): Add variable_size GTY | |
1120 | option. | |
1121 | ||
5498f011 JM |
1122 | 2010-06-07 Joseph Myers <joseph@codesourcery.com> |
1123 | ||
1124 | * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, | |
1125 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
1126 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
1127 | flag_signed_bitfields, warn_strict_null_sentinel, | |
1128 | flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, | |
1129 | flag_gen_declaration, flag_no_gnu_keywords, | |
1130 | flag_implement_inlines, flag_implicit_templates, | |
1131 | flag_implicit_inline_templates, flag_optional_diags, | |
1132 | flag_elide_constructors, flag_default_inline, flag_rtti, | |
1133 | flag_conserve_space, flag_access_control, flag_check_new, | |
1134 | flag_new_for_scope, flag_weak, flag_working_directory, | |
1135 | flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, | |
1136 | flag_enforce_eh_specs, flag_threadsafe_statics, | |
1137 | flag_pretty_templates): Remove. | |
1138 | * c-common.h (flag_preprocess_only, flag_nil_receivers, | |
1139 | flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, | |
1140 | flag_replace_objc_classes, flag_undef, flag_no_builtin, | |
1141 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
1142 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
1143 | flag_const_strings, flag_signed_bitfields, flag_gen_declaration, | |
1144 | flag_no_gnu_keywords, flag_implement_inlines, | |
1145 | flag_implicit_templates, flag_implicit_inline_templates, | |
1146 | flag_optional_diags, flag_elide_constructors, flag_default_inline, | |
1147 | flag_rtti, flag_conserve_space, flag_access_control, | |
1148 | flag_check_new, flag_new_for_scope, flag_weak, | |
1149 | flag_working_directory, flag_use_cxa_atexit, | |
1150 | flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, | |
1151 | flag_threadsafe_statics, flag_pretty_templates, | |
1152 | warn_strict_null_sentinel): Remove. | |
1153 | * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, | |
1154 | fbuiltin, fcheck-new, fconserve-space, felide-constructors, | |
1155 | fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, | |
1156 | fimplicit-inline-templates, fimplicit-templates, | |
1157 | flax-vector-conversions, fms-extensions, fnil-receivers, | |
1158 | fnonansi-builtins, fpretty-templates, freplace-objc-classes, | |
1159 | frtti, fshort-double, fshort-enums, fshort-wchar, | |
1160 | fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, | |
1161 | funsigned-bitfields, funsigned-char, fuse-cxa-atexit, | |
1162 | fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, | |
1163 | gen-decls, undef): Use Var. | |
1164 | (fdefault-inline, foptional-diags): Document as doing nothing. | |
1165 | * c-opts.c (c_common_handle_option): Remove cases for options now | |
1166 | using Var. Mark ignored options as such. | |
1167 | ||
39dabefd SB |
1168 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
1169 | ||
1170 | * c-common.c: Moved to here from parent directory. | |
1171 | * c-common.def: Likewise. | |
1172 | * c-common.h: Likewise. | |
1173 | * c-cppbuiltin.c: Likewise. | |
1174 | * c-dump.c: Likewise. | |
1175 | * c-format.c: Likewise. | |
1176 | * c-format.h : Likewise. | |
1177 | * c-gimplify.c: Likewise. | |
1178 | * c-lex.c: Likewise. | |
1179 | * c-omp.c: Likewise. | |
1180 | * c.opt: Likewise. | |
1181 | * c-opts.c: Likewise. | |
1182 | * c-pch.c: Likewise. | |
1183 | * c-ppoutput.c: Likewise. | |
1184 | * c-pragma.c: Likewise. | |
1185 | * c-pragma.h: Likewise. | |
1186 | * c-pretty-print.c: Likewise. | |
1187 | * c-pretty-print.h: Likewise. | |
1188 | * c-semantics.c: Likewise. | |
1189 | * stub-objc.c: Likewise. | |
1190 | ||
1191 | * c-common.c: Include gt-c-family-c-common.h. | |
1192 | * c-pragma.c: Include gt-c-family-c-pragma.h. | |
1193 | \f | |
04695783 | 1194 | Copyright (C) 2010, 2011 Free Software Foundation, Inc. |
39dabefd SB |
1195 | |
1196 | Copying and distribution of this file, with or without modification, | |
1197 | are permitted in any medium without royalty provided the copyright | |
1198 | notice and this notice are preserved. |