]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
2011-03-18 Richard Guenther <rguenther@suse.de>
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
54cf6eed 12011-03-15 Jason Merrill <jason@redhat.com>
2
3 * c-common.c (max_constexpr_depth): New.
4 * c-common.h: Declare it.
5 * c-opts.c (c_common_handle_option): Set it.
6 * c.opt (fconstexpr-depth): New option.
7
02cb1060 82011-03-11 Jason Merrill <jason@redhat.com>
9
9bf1c74e 10 * c-common.c (attribute_takes_identifier_p): Add missing const.
11
02cb1060 12 PR c++/46803
13 * c-common.c (attribute_takes_identifier_p): Assume that an
14 unknown attribute takes an identifier.
15
ecf2703d 162011-03-07 Nathan Froyd <froydnj@codesourcery.com>
17
18 PR c/47786
19 * c-common.c (c_type_hash): Call list_length instead of iterating
20 through DECL_CHAIN. Rename 'i' to 'n_elements'.
21
2b19dfe4 222011-02-19 Jakub Jelinek <jakub@redhat.com>
23
24 PR c/47809
25 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
26
29cf2335 272011-02-17 Iain Sandoe <iains@gcc.gnu.org>
28
29 * c.opt (fobjc-abi-version=) New.
30 (fobjc-nilcheck): New.
31
fad3f658 322011-02-03 Nathan Froyd <froydnj@codesourcery.com>
33
34 PR c++/46890
35 * c-common.h (keyword_is_decl_specifier): Declare.
36 * c-common.c (keyword_is_decl_specifier): Define.
37 (keyword_is_function_specifier): New function.
38
a12319b3 392011-01-26 Jakub Jelinek <jakub@redhat.com>
40
41 PR c/47473
42 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
43 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
44 REAL_TYPE.
45
5c128dc8 462011-01-26 Arnaud Charlet <charlet@adacore.com>
47
48 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
49
8d67b0c7 502011-01-26 Jakub Jelinek <jakub@redhat.com>
51
52 PR pch/47430
53 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
54 after init_c_lex if pch_file is set.
55
0675168d 562011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
57
e8911163 58 PR c++/43601
0675168d 59 * c.opt (-fkeep-inline-dllexport): New switch.
60
0725e25c 612011-01-12 Richard Guenther <rguenther@suse.de>
62
63 PR middle-end/32511
64 * c-common.c (handle_weak_attribute): Warn instead of error
65 on declaring an inline function weak.
66
fdd84b77 672011-01-05 Tom Tromey <tromey@redhat.com>
68
69 * c-common.h (lvalue_error): Update.
70 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
71 not error.
72
d67e8485 732010-12-29 Nicola Pero <nicola@nicola.brainstorm.co.uk>
74
75 PR objc/47075
76 * c-objc.h (objc_finish_message_expr): Added argument to
77 prototype.
78
a36cf284 792010-12-22 Nathan Froyd <froydnj@codesourcery.com>
80
81 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
82 Use prototype_p.
83
33b3681f 842010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
85
86 * c-objc.h (objc_maybe_warn_exceptions): New.
87 * stub-objc.c (objc_maybe_warn_exceptions): New.
88
a1f90215 892010-12-10 Nathan Froyd <froydnj@codesourcery.com>
90
91 * c-common.h (readonly_error): Declare.
92 * c-common.c (readonly_error): Define.
93
b1bbc8e5 942010-12-09 Nathan Froyd <froydnj@codesourcery.com>
95
96 * c-common.h (invalid_indirection_error): Declare.
97 * c-common.c (invalid_indirection_error): Define.
98
b0d55af9 992010-12-03 Richard Guenther <rguenther@suse.de>
100
101 PR c/46745
102 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
103 (pp_c_unary_expression): Likewise.
104 (pp_c_expression): Likewise.
105
d7489d8d 1062010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
107
108 * c-common.h (objc_finish_function): New.
109 (objc_non_volatilized_type): Removed.
110 (objc_type_quals_match): Removed.
111 * stub-objc.c (objc_finish_function): New.
112 (objc_non_volatilized_type): Removed.
113 (objc_type_quals_match): Removed.
114
92468061 1152010-11-30 Joseph Myers <joseph@codesourcery.com>
116
117 * c-common.h (parse_optimize_options): Declare.
118 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
119 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
120
967958e4 1212010-11-29 Joseph Myers <joseph@codesourcery.com>
122
123 * c-opts.c (check_deps_environment_vars): Use getenv instead of
124 GET_ENVIRONMENT.
125 * c-pch.c (O_BINARY): Don't define here.
126 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
127
b213bf24 1282010-11-25 Joseph Myers <joseph@codesourcery.com>
129
130 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
131 targetm.except_unwind_info.
132
9faf44d6 1332010-11-23 Joseph Myers <joseph@codesourcery.com>
134
135 * c-opts.c (c_common_handle_option): Pass location to
136 set_struct_debug_option.
137
79396169 1382010-11-23 Joseph Myers <joseph@codesourcery.com>
139
140 * c-common.c (visibility_options): Move from ../opts.c.
141 * c-common.h (struct visibility_flags, visibility_options):
142 Declare here.
143 * c-opts.c (finish_options): Rename to c_finish_options.
144 (c_common_init): Update call to finish_options.
145
b4aa4123 1462010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
147
148 PR objc/34033
149 * c-lex.c (lex_string): Check that each string in an Objective-C
150 string concat sequence starts with either one or zero '@', and
151 that there are no spurious '@' signs at the end.
152
3e0e49f2 1532010-11-20 Joseph Myers <joseph@codesourcery.com>
154
155 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
156 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
157 HANDLE_PRAGMA_VISIBILITY.
158 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
159 HANDLE_PRAGMA_VISIBILITY): Don't define.
160 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
161
a9ffdd35 1622010-11-20 Nathan Froyd <froydnj@codesourcery.com>
163
164 PR c++/16189
165 PR c++/36888
166 PR c++/45331
167 * c-common.h (keyword_begins_type_specifier): Declare.
168 (keyword_is_storage_class_specifier): Declare.
169 (keyword_is_type_qualifier): Declare.
170 * c-common.c (keyword_begins_type_specifier): New function.
171 (keyword_is_storage_class_specifier): New function.
172 (keyword_is_type_qualifier): Declare.
173
93be21c0 1742010-11-19 Joseph Myers <joseph@codesourcery.com>
175
176 PR c/46547
177 * c-common.c (in_late_binary_op): Define.
178 (c_common_truthvalue_conversion): Check in_late_binary_op before
179 calling c_save_expr.
180 * c-common.h (in_late_binary_op): Declare.
181
d7175aef 1822010-11-19 Joseph Myers <joseph@codesourcery.com>
183
184 * c-opts.c (c_common_handle_option): Update calls to
185 set_struct_debug_option.
186
c213e196 1872010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
188
189 * c-common.h (objc_declare_protocols): Added additional argument.
190 * stub-objc.c (objc_declare_protocol): Same change.
191
0b5fc5d6 1922010-11-18 Nathan Froyd <froydnj@codesourcery.com>
193
194 PR c/33193
195 * c-common.h (build_real_imag_expr): Declare.
196 * c-semantics.c (build_real_imag_expr): Define.
197
b8ba44e7 1982010-11-17 Joseph Myers <joseph@codesourcery.com>
199
200 * c-opts.c (c_common_parse_file): Take no arguments.
201 * c-common.h (c_common_parse_file): Update prototype.
202
6ef8d12f 2032010-11-16 Jakub Jelinek <jakub@redhat.com>
204
205 PR c++/46401
206 * c-common.c (warning_candidate_p): Don't track non-const calls
207 or STRING_CSTs.
208
929d2a90 2092010-11-15 Ian Lance Taylor <iant@google.com>
210
211 * c-lex.c (init_c_lex): Set macro debug callbacks if
212 flag_dump_go_spec is set.
213
e4a7640a 2142010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
215
216 * c-common.h (objc_build_incr_expr_for_property_ref): New.
217 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
218
597d2d81 2192010-11-15 Nathan Froyd <froydnj@codesourcery.com>
220
221 PR preprocessor/45038
222 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
223 dialects.
224
c123f04d 2252010-11-12 Joseph Myers <joseph@codesourcery.com>
226
227 * c-common.h (c_family_lang_mask): Declare.
228 * c-opts.c (c_family_lang_mask): Make extern.
229 * c-pragma.c (handle_pragma_diagnostic): Use
230 control_warning_option.
231
3c6c0e40 2322010-11-12 Joseph Myers <joseph@codesourcery.com>
233
234 * c-common.c (parse_optimize_options): Update call to
235 decode_options.
236 * c-common.h (c_common_handle_option): Update prototype.
237 * c-opts.c (c_common_handle_option): Take location_t parameter and
238 pass it to other functions.
239
19ec5c9e 2402010-11-11 Joseph Myers <joseph@codesourcery.com>
241
242 * c-opts.c (warning_as_error_callback): Remove.
243 (c_common_initialize_diagnostics): Don't call
244 register_warning_as_error_callback.
245 (c_common_handle_option): Handle -Werror=normalized= here.
246
bf776685 2472010-11-10 Joseph Myers <joseph@codesourcery.com>
248
249 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
250 in diagnostic.
251 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
252 letter.
253 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
254 Remove trailing '.' from diagnostics.
255 * c.opt (Wwrite-strings_: Avoid '`' in help text.
256
6bd9d862 2572010-11-10 Joseph Myers <joseph@codesourcery.com>
258
259 * c-common.c (parse_optimize_options): Pass global_dc to
260 decode_options.
261 * c-opts.c (c_common_handle_option): Pass &global_options to
262 set_Wstrict_aliasing.
263 * c.opt (v): Don't mark Common or document here.
264
1f6616ee 2652010-11-06 Iain Sandoe <iains@gcc.gnu.org>
266
267 PR target/44981
268 * c-format.c (format_type): New type gcc_objc_string_format_type.
269 (valid_stringptr_type_p): New.
270 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
271 (check_format_string): Pass expected type, use
272 valid_stringptr_type_p (), check that the format string types are
273 consistent with the format specification.
274 (decode_format_attr): Warn if NSString is used outside objective-c.
275 (format_types_orig): Add NSString.
276 (format_name): New.
277 (format_flags): New.
278 (check_format_arg): Handle format strings requiring an external parser.
279 first_target_format_type: New variable.
280 (handle_format_attribute): Set up first_target_format_type, pass the
281 expected format arg string type to check_format_string().
282 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
283 * stub-objc.c (objc_string_ref_type_p): New.
284 (objc_check_format_arg): New.
285
b0d0931f 2862010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
287
288 Fixed using the Objective-C 2.0 dot-syntax with class names.
289 * c-common.h (objc_build_class_component_ref): New.
290 * stub-objc.c (objc_build_class_component_ref): New.
291
f26877d5 2922010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
293
294 * c.opt (Wproperty-assign-default): New option.
295
1ef143b6 2962010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
297
298 Implemented -fobjc-std=objc1 flag.
299 * c.opt (fobjc-std=objc1): New option.
300
8c582e4f 3012010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
302
303 Implemented format and noreturn attributes for Objective-C methods.
304 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
305 attribute for Objective-C methods.
306
8637f1db 3072010-10-31 Jason Merrill <jason@redhat.com>
308
309 * c-common.c (conversion_warning, warn_for_collisions_1): Use
310 EXPR_LOC_OR_HERE.
311
9d9f5bb3 3122010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
313
314 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
315 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
316 (objc_add_property_declaration): Removed arguments for copies and
317 ivar.
318 (objc_build_getter_call): Renamed to
319 objc_maybe_build_component_ref.
320 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
321 (objc_is_property_ref): New.
322 * c-common.c (c_common_reswords): Removed copies and ivar.
323 * stub-objc.c (objc_add_property_declaration): Removed arguments
324 for copies and ivar.
325 (objc_build_getter_call): Renamed to
326 objc_maybe_build_component_ref.
327 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
328 (objc_is_property_ref): New.
329
56f907a0 3302010-10-29 Arnaud Charlet <charlet@adacore.com>
331 Matthew Gingell <gingell@adacore.com>
332
333 * c-ada-spec.c (separate_class_package): New function.
334 (pp_ada_tree_identifier): Prefix references to C++ classes with the
335 name of their enclosing package.
336 (print_ada_declaration): Use separate_class_package.
337
b5fa273e 3382010-10-27 Jason Merrill <jason@redhat.com>
339
5290e253 340 * c-common.c (c_common_reswords): Add __is_literal_type.
341 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
342
b5fa273e 343 * c-common.c (check_case_value): Remove special C++ code.
344
7590f0e5 3452010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
346
347 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
348 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
349 and RID_LAST_PATTR.
350 (objc_add_property_declaration): Added additional arguments.
351 (objc_property_attribute_kind): Removed.
352 (objc_set_property_attr): Removed.
353 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
354 copy and nonatomic.
355 * stub-objc.c (objc_add_property_declaration): Added additional
356 arguments.
357 (objc_set_property_attr): Removed.
358
1d894bcf 3592010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
360
361 * c-common.h (objc_add_property_variable): Renamed to
362 objc_add_property_declaration. Added location argument.
363 * stub-objc.c (objc_add_property_variable): Same change.
364
e23bf1fb 3652010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
366
367 * c-common.h (objc_maybe_printable_name): New.
368 * stub-objc.c (objc_maybe_printable_name): New.
369
93426222 3702010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
371 Andrew Pinski <pinskia@gmail.com>
372
373 * c-common.h (c_common_mark_addressable_vec): Declare.
374 * c-common.c (c_common_mark_addressable_vec): New function.
375
45b2b110 3762010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
377
378 * c-common.h (objc_set_method_type): Removed.
379 (objc_add_method_declaration): Added boolean argument.
380 (objc_start_method_definition): Same change.
381 (objc_build_method_signature): Same change.
382 * stub-objc.c (objc_set_method_type): Removed.
383 (objc_add_method_declaration): Added boolean argument.
384 (objc_start_method_definition): Same change.
385 (objc_build_method_signature): Same change.
386
64cd9619 3872010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
388
389 * c-common.h (finish_file): Removed.
390 (objc_write_global_declarations): New.
391 * c-opts.c (c_common_parse_file): Do not call finish_file.
392 * stub-objc.c (objc_write_global_declarations): New.
393
e1f293c0 3942010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
395
396 Implemented parsing @synthesize and @dynamic for
397 Objective-C/Objective-C++.
398 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
399 (objc_add_synthesize_declaration): New.
400 (objc_add_dynamic_declaration): New.
401 * c-common.c (c_common_reswords): Add synthesize and dynamic.
402 * stub-objc.c (objc_add_synthesize_declaration): New.
403 (objc_add_dynamic_declaration): New.
404
ef97a312 4052010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
406
407 PR target/46041
408 * c-cppbuiltin.c (mode_has_fma): Move function here from
409 builtins.c. Don't use the fma optab, instead just use the
410 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
411 using -save-temps.
412
69b07042 4132010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
414
415 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 416
69b07042 417 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
418
419 Radar 4330422
420 * c-common.h (objc_non_volatilized_type): New declaration
421 * stub-objc.c (objc_non_volatilized_type): New stub.
422
f15f2e56 4232010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
424
69b07042 425 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 426
427 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
428
429 Radar 4133425
430 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 431 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 432
4a8875ed 4332010-10-17 Iain Sandoe <iains@gcc.gnu.org>
434
435 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
436 * c-common.h (enum rid): Add RID_AT_PACKAGE.
437 (objc_ivar_visibility_kind): New enum.
438 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 439 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 440 visibility enum.
441
7e0713b1 4422010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
443
444 * c-cppbuiltin.c (builtin_define_float_constants): Emit
445 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
446 has the appropriate fma builtins.
447 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
448
86c110ac 4492010-10-14 Iain Sandoe <iains@gcc.gnu.org>
450
7e0713b1 451 merge from FSF apple 'trunk' branch.
86c110ac 452 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 453
86c110ac 454 Radars 4436866, 4505126, 4506903, 4517826
455 * c-common.c (c_common_resword): Define @property and its attributes.
456 * c-common.h: Define property attribute enum entries.
457 (OBJC_IS_PATTR_KEYWORD): New.
458 (objc_property_attribute_kind): New enum.
459 Declare objc_set_property_attr (), objc_add_property_variable (),
460 objc_build_getter_call () and objc_build_setter_call ().
461 * stub-objc.c (objc_set_property_attr): New stub.
462 (objc_add_property_variable): Likewise.
463 (objc_build_getter_call): Likewise.
464 (objc_build_setter_call) Likewise.
7e0713b1 465
40c8d1dd 4662010-10-13 Iain Sandoe <iains@gcc.gnu.org>
467
7e0713b1 468 merge from FSF apple 'trunk' branch.
40c8d1dd 469 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
470
471 Radar 3803157 (method attributes)
472 * c-common.c (handle_deprecated_attribute): Recognize
473 objc methods as valid declarations.
474 * c-common.h: Declare objc_method_decl ().
7e0713b1 475 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 476
f3f006ad 4772010-10-08 Joseph Myers <joseph@codesourcery.com>
478
479 * c-common.c (parse_optimize_options): Call
480 decode_cmdline_options_to_array_default_mask before
481 decode_options. Update arguments to decode_options.
482 * c-common.h (c_common_init_options_struct): Declare.
483 * c-opts.c (c_common_init_options_struct): New. Split out from
484 c_common_init_options.
485
0a65c3bb 4862010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
487
488 Implemented fast enumeration for Objective-C.
489 * c-common.h (objc_finish_foreach_loop): New.
490 * stub-objc.c (objc_finish_foreach_loop): New.
491
24ca3b4e 4922010-10-05 Joseph Myers <joseph@codesourcery.com>
493
494 * c-common.h (struct diagnostic_context): Don't declare here.
495 (c_common_initialize_diagnostics): Declare using
496 diagnostic_context typedef.
497 * c-opts.c (c_common_handle_option): Pass global_dc to
498 handle_generated_option.
499
f83b64ca 5002010-10-04 Joseph Myers <joseph@codesourcery.com>
501
502 * c-opts.c (c_common_handle_option): Pass &global_options_set to
503 handle_generated_option.
504
2fdec027 5052010-10-03 Ian Lance Taylor <iant@google.com>
506
507 * c.opt (-fplan9-extensions): New option.
508
41acdfa4 5092010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
510
511 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
512 Remove.
513 (c_cpp_builtins): Call functions from cppbuiltin.c instead
514 of duplicating code.
515
069761fb 5162010-09-30 Iain Sandoe <iains@gcc.gnu.org>
517
518 * c-common.c: Add two new entries for @optional
519 and @required keywords.
520
521 merge from FSF 'apple/trunk' branch.
522 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
523
524 Radar 4386773
525 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
526 objective-c keywords.
527 (objc_set_method_opt): New declaration.
528 * stub-objc.c (objc_set_method_opt): New stub.
529
2c5d2e39 5302010-09-30 Joseph Myers <joseph@codesourcery.com>
531
532 * c-common.c (handle_optimize_attribute): Pass &global_options to
533 cl_optimization_save and cl_optimization_restore.
534 * c-opts.c (c_common_handle_option): Pass &global_options to
535 handle_generated_option.
536 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
537 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
538 &global_options to cl_optimization_restore.
539
e5c75ac3 5402010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
541
542 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
543 Objective-C/Objective-C++ keywords.
544
3511333e 5452010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 546
547 Merge from 'apple/trunk' branch on FSF servers.
548
549 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
550
551 Radar 4281748
552 * c-common.h (objc_check_global_decl): New declaration.
553 * stub-objc.c (objc_check_global_decl): New stub.
554
5461e683 5552010-09-29 Joseph Myers <joseph@codesourcery.com>
556
557 * c.opt: Don't use VarExists.
558
5ae82d58 5592010-09-29 Joseph Myers <joseph@codesourcery.com>
560
561 * c-common.c (c_cpp_error): Update names of diagnostic_context
562 members.
563 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
564 cl_optimization members.
565 * c-opts.c (warning_as_error_callback, c_common_handle_option,
566 sanitize_cpp_opts, finish_options): Update names of cpp_options
567 members.
568
b27e241e 5692010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
570
571 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
572 (objc_is_reserved_word): Removed.
573 * c-common.c: Updated comments.
574 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
575 objc_is_reserved_word.
576 * stub-objc.c (objc_is_reserved_word): Removed.
577
03fc2271 5782010-09-28 Iain Sandoe <iains@gcc.gnu.org>
579
580 * c-common.h (objc_add_method_declaration): Adjust prototype to
581 include attributes.
582 (objc_start_method_definition): Likewise.
583 (objc_build_keyword_decl): Likewise.
584 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
585 (objc_start_method_definition): Likewise.
586 (objc_build_keyword_decl): Likewise.
587
a336eb4b 5882010-09-28 Iain Sandoe <iains@gcc.gnu.org>
589
590 * c-common.h (objc_start_class_interface): Adjust prototype.
591 (objc_start_category_interface): Likewise.
592 (objc_start_protocol): Likewise.
593 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
594 (objc_start_class_interface): Likewise.
595 (objc_start_category_interface): Likewise.
596
48b14f50 5972010-09-27 Ian Lance Taylor <iant@google.com>
598
599 * c-common.c (c_common_attribute_table): Add no_split_stack.
600 (handle_no_split_stack_attribute): New static function.
601
4abfc532 6022010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
603
604 Merge from 'apple/trunk' branch on FSF servers.
605
606 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
607
608 Radar 4229905
609 * c-common.h (objc_have_common_type): New declaration.
610 * stub-objc.c (objc_have_common_type): New stub.
611
612 2005-06-22 Ziemowit Laski <zlaski@apple.com>
613
614 Radar 4154928
615 * c-common.h (objc_common_type): New prototype.
616 * stub-objc.c (objc_common_type): New stub.
617
7bd95dfd 6182010-09-24 Jan Hubicka <jh@suse.cz>
619
620 * c-common.c (handle_leaf_attribute): New function.
621 (struct attribute_spec c_common_att): Add leaf.
622
5789e05b 6232010-09-22 Joseph Myers <joseph@codesourcery.com>
624
625 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
626 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
627 -dump, -dump=, -imacros, -imacros=, -include, -include=,
628 -include-barrier, -include-directory, -include-directory=,
629 -include-directory-after, -include-directory-after=,
630 -include-prefix, -include-prefix=, -include-with-prefix,
631 -include-with-prefix=, -include-with-prefix-after,
632 -include-with-prefix-after=, -include-with-prefix-before,
633 -include-with-prefix-before=, -no-integrated-cpp,
634 -no-line-commands, -no-standard-includes, -no-warnings, -output,
635 -output=, -pedantic, -pedantic-errors, -preprocess,
636 -print-missing-file-dependencies, -trace-includes, -traditional,
637 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
638 -user-dependencies, -verbose, -write-dependencies,
639 -write-user-dependencies, no-integrated-cpp, traditional): New.
640
e6fb54ba 6412010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
642
643 PR objc/23710
9b60f3b0 644 * c-common.h (objc_start_method_definition): Return bool instead
645 of void.
646 * stub-objc.c (objc_start_method_definition): Return bool instead
647 of void.
648
6492010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
650
651 PR objc/25965
652 * c-common.h (objc_get_interface_ivars): New declaration.
653 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 654
e44b0a1f 6552010-09-15 Ian Lance Taylor <iant@google.com>
656
657 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 658 messages. Remove period at end of warning message.
e44b0a1f 659
85c0a25c 6602010-09-09 Nathan Sidwell <nathan@codesourcery.com>
661
662 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
663 (handle_alias_attribute): ... here.
664 (handle_ifunc_attribute): New.
665
5ba33bf4 6662010-09-06 Mark Mitchell <mark@codesourcery.com>
667
668 * c-common.h (do_warn_double_promotion): Declare.
669 * c-common.c (do_warn_double_promotion): Define.
670
c920faa3 6712010-09-05 Mark Mitchell <mark@codesourcery.com>
672
673 * c.opt (Wdouble-promotion): New.
674
9604e070 6752010-09-02 Joseph Myers <joseph@codesourcery.com>
676
677 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
678 fvtable-thunks, fxref): Mark no longer supported in help text.
679
3b0273a1 6802010-09-02 Joseph Myers <joseph@codesourcery.com>
681
682 * c.opt (Wimport, fall-virtual, falt-external-templates,
683 fdefault-inline, fenum-int-equiv, fexternal-templates,
684 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
685 fname-mangling-version-, fnew-abi, fnonnull-objects,
686 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
687 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
688 applicable.
689 (fhandle-exceptions): Mark with Alias and Warn.
690 * c-opts.c (c_common_handle_option): Don't handle options marked
691 as ignored.
692
67089c6b 6932010-09-02 Joseph Myers <joseph@codesourcery.com>
694
695 * c.opt (Wcomments, Werror-implicit-function-declaration,
696 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
697 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
698 aliases.
699 * c-common.c (option_codes): Use OPT_Wcomment instead of
700 OPT_Wcomments.
701 * c-opts.c (warning_as_error_callback, c_common_handle_option):
702 Don't handle options marked as aliases.
703
2af087f2 7042010-08-25 Richard Guenther <rguenther@suse.de>
705
706 * c-common.c (c_common_get_alias_set): Remove special
707 handling for pointers.
708
48148244 7092010-08-20 Nathan Froyd <froydnj@codesourcery.com>
710
711 * c-common.c: Use FOR_EACH_VEC_ELT.
712 * c-gimplify.c: Likewise.
713 * c-pragma.c: Likewise.
714
89c69892 7152010-08-16 Joseph Myers <joseph@codesourcery.com>
716
717 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
718 RejectDriver.
719 (MMDX): Change back to MMD. Mark NoDriverArg instead of
720 RejectDriver.
721 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
722 instead of OPT_MDX and OPT_MMDX.
723
e28aa114 7242010-08-16 Joseph Myers <joseph@codesourcery.com>
725
726 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
727
99b66d21 7282010-08-12 Joseph Myers <joseph@codesourcery.com>
729
730 * c.opt (MD, MMD): Change to MDX and MMDX.
731 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
732
666f4bf0 7332010-08-11 Joseph Myers <joseph@codesourcery.com>
734
735 * c-opts.c (c_common_handle_option): Call handle_generated_option
736 instead of handle_option.
737
5ec815f6 7382010-08-08 Nathan Froyd <froydnj@codesourcery.com>
739
740 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
741 (maybe_apply_renaming_pragma): Delete unneeded declarations.
742
d13143cf 7432010-08-08 Nathan Froyd <froydnj@codesourcery.com>
744
745 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
746 (pending_redefine_extname): Change type to a VEC.
747 (add_to_renaming_pragma_list): Update for new type of
748 pending_redefine_extname.
5ec815f6 749 (maybe_apply_renaming_pragma): Likewise.
d13143cf 750
2008c983 7512010-08-04 Arnaud Charlet <charlet@adacore.com>
752
753 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
754 visited.
755 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
756 decide whether a type has already been declared/seen.
757 Do not go to the original type.
758 (dump_nested_types): New parameter forward.
759 Generate forward declaration if needed and mark type as visited.
760 (print_ada_declaration): Call dump_nested_types if not already done.
761 Mark types as visited.
762
9b091a73 7632010-08-03 Joseph Myers <joseph@codesourcery.com>
764
765 * c.opt (-print-pch-checksum): Remove option.
766 * c-opts.c (c_common_handle_option): Don't handle
767 OPT_print_pch_checksum.
768
b78351e5 7692010-07-27 Joseph Myers <joseph@codesourcery.com>
770
771 * c-common.h (c_common_handle_option): Update prototype and return
772 value type.
773 * c-opts.c (c_common_handle_option): Update prototype and return
774 value type. Update calls to handle_option and
775 enable_warning_as_error.
776
34416a90 7772010-07-27 Jakub Jelinek <jakub@redhat.com>
778
779 PR c/45079
780 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
781
fecf9011 7822010-07-27 Joseph Myers <joseph@codesourcery.com>
783
784 * c-common.h (c_common_missing_argument): Remove.
785 * c-opts.c (c_common_missing_argument): Remove.
786 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
787 idirafter, imacros, include, isysroot, isystem, iquote): Add
788 MissingArgError.
789 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
790
e88d34f6 7912010-07-27 Joseph Myers <joseph@codesourcery.com>
792
793 * c-common.h (c_common_option_lang_mask,
794 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
795 New.
796 (c_common_init_options): Update prototype.
797 * c-opts.c (c_common_option_lang_mask): New.
798 (c_common_initialize_diagnostics): Split out of
799 c_common_init_options.
800 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
801 New.
802 (c_common_init_options): Update prototype. Use decoded options in
803 search for -lang-asm.
804
1767a056 8052010-07-15 Nathan Froyd <froydnj@codesourcery.com>
806
807 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
808 * c-format.c: Likewise.
809
0b205f4c 8102010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
811
812 * c-common.h: Include diagnostic-core.h. Error if already
813 included.
814 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
815
1c58e3f1 8162010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
817
818 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
819 Do not include expr.h
820 (vector_mode_valid_p): Move here.
821
33cc157c 8222010-06-21 DJ Delorie <dj@redhat.com>
823
824 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
825 allow these pragmas anywhere.
826
8272010-06-14 Jakub Jelinek <jakub@redhat.com>
828
829 PR bootstrap/44509
830 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
831 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
832 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
833 ggc_strdup instead of xstrdup.
834
8352010-06-10 Jakub Jelinek <jakub@redhat.com>
836
837 * c-cppbuiltin.c: Include cpp-id-data.h.
838 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
839 (lazy_hex_fp_value): New function.
840 (builtin_define_with_hex_fp_value): Provide definitions lazily.
841
9b40bfbf 8422010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
843
844 * c-gimplify.c: Do not include tree-flow.h
845
202d6e5f 8462010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
847
848 PR other/44034
849 * c-common.c: Rename targetm member:
850 targetm.enum_va_list -> targetm.enum_va_list_p
851
d3237426 8522010-06-28 Anatoly Sokolov <aesok@post.ru>
853
854 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
855
596981c8 8562010-06-28 Steven Bosscher <steven@gcc.gnu.org>
857
858 * c-cppbuiltin.c: Do not include except.h.
859
b9bdfa0b 8602010-06-24 Andi Kleen <ak@linux.intel.com>
861
862 * c-common.c (warn_for_omitted_condop): New.
863 * c-common.h (warn_for_omitted_condop): Add prototype.
864
55ad092d 8652010-06-21 Joseph Myers <joseph@codesourcery.com>
866
867 * c.opt (lang-objc): Remove.
868 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
869
9e7c2572 8702010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
871
872 * c-opts.c: Include "tm_p.h".
873
615ef0bb 8742010-06-20 Joseph Myers <joseph@codesourcery.com>
875
876 * c-common.c (parse_optimize_options): Update call to
877 decode_options.
878
aef48c9a 8792010-06-18 Nathan Froyd <froydnj@codesourcery.com>
880
881 * c-common.c (record_types_used_by_current_var_decl): Adjust for
882 new type of types_used_by_cur_var_decl.
883
d74003b4 8842010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
885
886 PR bootstrap/44512
887 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
888 for C++ standard compliance.
889
1194d077 8902010-06-16 Jason Merrill <jason@redhat.com>
891
892 * c.opt: Add -Wnoexcept.
893
d473d901 8942010-06-16 Richard Guenther <rguenther@suse.de>
895
896 PR c/44555
897 * c-common.c (c_common_truthvalue_conversion): Remove
898 premature and wrong optimization concering ADDR_EXPRs.
899
b62dbfd3 9002010-06-15 Arnaud Charlet <charlet@adacore.com>
901
902 * c-ada-spec.c (dump_sloc): Remove column info.
903 (is_simple_enum): New function.
904 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
905 enum types when relevant.
906
200dd99c 9072010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
908
909 * c-common.c (conversion_warning): Warn at expression
910 location.
911
abf6a617 9122010-06-10 Joseph Myers <joseph@codesourcery.com>
913
914 * c-opts.c (c_common_handle_option): Don't handle
915 OPT_fshow_column.
916
ba72912a 9172010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
918
919 * c-pragma.c (push_alignment): Use typed GC allocation.
920 (handle_pragma_push_options): Likewise.
921
922 * c-common.c (parse_optimize_options): Likewise.
923
924 * c-common.h (struct sorted_fields_type): Add variable_size GTY
925 option.
926
4aafe913 9272010-06-07 Joseph Myers <joseph@codesourcery.com>
928
929 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
930 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
931 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
932 flag_signed_bitfields, warn_strict_null_sentinel,
933 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
934 flag_gen_declaration, flag_no_gnu_keywords,
935 flag_implement_inlines, flag_implicit_templates,
936 flag_implicit_inline_templates, flag_optional_diags,
937 flag_elide_constructors, flag_default_inline, flag_rtti,
938 flag_conserve_space, flag_access_control, flag_check_new,
939 flag_new_for_scope, flag_weak, flag_working_directory,
940 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
941 flag_enforce_eh_specs, flag_threadsafe_statics,
942 flag_pretty_templates): Remove.
943 * c-common.h (flag_preprocess_only, flag_nil_receivers,
944 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
945 flag_replace_objc_classes, flag_undef, flag_no_builtin,
946 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
947 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
948 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
949 flag_no_gnu_keywords, flag_implement_inlines,
950 flag_implicit_templates, flag_implicit_inline_templates,
951 flag_optional_diags, flag_elide_constructors, flag_default_inline,
952 flag_rtti, flag_conserve_space, flag_access_control,
953 flag_check_new, flag_new_for_scope, flag_weak,
954 flag_working_directory, flag_use_cxa_atexit,
955 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
956 flag_threadsafe_statics, flag_pretty_templates,
957 warn_strict_null_sentinel): Remove.
958 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
959 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
960 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
961 fimplicit-inline-templates, fimplicit-templates,
962 flax-vector-conversions, fms-extensions, fnil-receivers,
963 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
964 frtti, fshort-double, fshort-enums, fshort-wchar,
965 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
966 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
967 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
968 gen-decls, undef): Use Var.
969 (fdefault-inline, foptional-diags): Document as doing nothing.
970 * c-opts.c (c_common_handle_option): Remove cases for options now
971 using Var. Mark ignored options as such.
972
7bedc3a0 9732010-06-05 Steven Bosscher <steven@gcc.gnu.org>
974
975 * c-common.c: Moved to here from parent directory.
976 * c-common.def: Likewise.
977 * c-common.h: Likewise.
978 * c-cppbuiltin.c: Likewise.
979 * c-dump.c: Likewise.
980 * c-format.c: Likewise.
981 * c-format.h : Likewise.
982 * c-gimplify.c: Likewise.
983 * c-lex.c: Likewise.
984 * c-omp.c: Likewise.
985 * c.opt: Likewise.
986 * c-opts.c: Likewise.
987 * c-pch.c: Likewise.
988 * c-ppoutput.c: Likewise.
989 * c-pragma.c: Likewise.
990 * c-pragma.h: Likewise.
991 * c-pretty-print.c: Likewise.
992 * c-pretty-print.h: Likewise.
993 * c-semantics.c: Likewise.
994 * stub-objc.c: Likewise.
995
996 * c-common.c: Include gt-c-family-c-common.h.
997 * c-pragma.c: Include gt-c-family-c-pragma.h.
998\f
999Copyright (C) 2010 Free Software Foundation, Inc.
1000
1001Copying and distribution of this file, with or without modification,
1002are permitted in any medium without royalty provided the copyright
1003notice and this notice are preserved.