In gcc/c-family/: 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
[gcc.git] / gcc / c-family / ChangeLog
1 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2
3 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4 Objective-C/Objective-C++ keywords.
5
6 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
7
8 Merge from 'apple/trunk' branch on FSF servers.
9
10 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
11
12 Radar 4281748
13 * c-common.h (objc_check_global_decl): New declaration.
14 * stub-objc.c (objc_check_global_decl): New stub.
15
16 2010-09-29 Joseph Myers <joseph@codesourcery.com>
17
18 * c.opt: Don't use VarExists.
19
20 2010-09-29 Joseph Myers <joseph@codesourcery.com>
21
22 * c-common.c (c_cpp_error): Update names of diagnostic_context
23 members.
24 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
25 cl_optimization members.
26 * c-opts.c (warning_as_error_callback, c_common_handle_option,
27 sanitize_cpp_opts, finish_options): Update names of cpp_options
28 members.
29
30 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
31
32 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
33 (objc_is_reserved_word): Removed.
34 * c-common.c: Updated comments.
35 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
36 objc_is_reserved_word.
37 * stub-objc.c (objc_is_reserved_word): Removed.
38
39 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
40
41 * c-common.h (objc_add_method_declaration): Adjust prototype to
42 include attributes.
43 (objc_start_method_definition): Likewise.
44 (objc_build_keyword_decl): Likewise.
45 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
46 (objc_start_method_definition): Likewise.
47 (objc_build_keyword_decl): Likewise.
48
49 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
50
51 * c-common.h (objc_start_class_interface): Adjust prototype.
52 (objc_start_category_interface): Likewise.
53 (objc_start_protocol): Likewise.
54 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
55 (objc_start_class_interface): Likewise.
56 (objc_start_category_interface): Likewise.
57
58 2010-09-27 Ian Lance Taylor <iant@google.com>
59
60 * c-common.c (c_common_attribute_table): Add no_split_stack.
61 (handle_no_split_stack_attribute): New static function.
62
63 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
64
65 Merge from 'apple/trunk' branch on FSF servers.
66
67 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
68
69 Radar 4229905
70 * c-common.h (objc_have_common_type): New declaration.
71 * stub-objc.c (objc_have_common_type): New stub.
72
73 2005-06-22 Ziemowit Laski <zlaski@apple.com>
74
75 Radar 4154928
76 * c-common.h (objc_common_type): New prototype.
77 * stub-objc.c (objc_common_type): New stub.
78
79 2010-09-24 Jan Hubicka <jh@suse.cz>
80
81 * c-common.c (handle_leaf_attribute): New function.
82 (struct attribute_spec c_common_att): Add leaf.
83
84 2010-09-22 Joseph Myers <joseph@codesourcery.com>
85
86 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
87 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
88 -dump, -dump=, -imacros, -imacros=, -include, -include=,
89 -include-barrier, -include-directory, -include-directory=,
90 -include-directory-after, -include-directory-after=,
91 -include-prefix, -include-prefix=, -include-with-prefix,
92 -include-with-prefix=, -include-with-prefix-after,
93 -include-with-prefix-after=, -include-with-prefix-before,
94 -include-with-prefix-before=, -no-integrated-cpp,
95 -no-line-commands, -no-standard-includes, -no-warnings, -output,
96 -output=, -pedantic, -pedantic-errors, -preprocess,
97 -print-missing-file-dependencies, -trace-includes, -traditional,
98 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
99 -user-dependencies, -verbose, -write-dependencies,
100 -write-user-dependencies, no-integrated-cpp, traditional): New.
101
102 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
103
104 PR objc/23710
105 * c-common.h (objc_start_method_definition): Return bool instead
106 of void.
107 * stub-objc.c (objc_start_method_definition): Return bool instead
108 of void.
109
110 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
111
112 PR objc/25965
113 * c-common.h (objc_get_interface_ivars): New declaration.
114 * stub-objc.c (objc_get_interface_ivars): New stub.
115
116 2010-09-15 Ian Lance Taylor <iant@google.com>
117
118 * c-common.c (parse_optimize_options): Do not capitalize warning
119 messages. Remove period at end of warning message.
120
121 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
122
123 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
124 (handle_alias_attribute): ... here.
125 (handle_ifunc_attribute): New.
126
127 2010-09-06 Mark Mitchell <mark@codesourcery.com>
128
129 * c-common.h (do_warn_double_promotion): Declare.
130 * c-common.c (do_warn_double_promotion): Define.
131
132 2010-09-05 Mark Mitchell <mark@codesourcery.com>
133
134 * c.opt (Wdouble-promotion): New.
135
136 2010-09-02 Joseph Myers <joseph@codesourcery.com>
137
138 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
139 fvtable-thunks, fxref): Mark no longer supported in help text.
140
141 2010-09-02 Joseph Myers <joseph@codesourcery.com>
142
143 * c.opt (Wimport, fall-virtual, falt-external-templates,
144 fdefault-inline, fenum-int-equiv, fexternal-templates,
145 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
146 fname-mangling-version-, fnew-abi, fnonnull-objects,
147 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
148 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
149 applicable.
150 (fhandle-exceptions): Mark with Alias and Warn.
151 * c-opts.c (c_common_handle_option): Don't handle options marked
152 as ignored.
153
154 2010-09-02 Joseph Myers <joseph@codesourcery.com>
155
156 * c.opt (Wcomments, Werror-implicit-function-declaration,
157 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
158 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
159 aliases.
160 * c-common.c (option_codes): Use OPT_Wcomment instead of
161 OPT_Wcomments.
162 * c-opts.c (warning_as_error_callback, c_common_handle_option):
163 Don't handle options marked as aliases.
164
165 2010-08-25 Richard Guenther <rguenther@suse.de>
166
167 * c-common.c (c_common_get_alias_set): Remove special
168 handling for pointers.
169
170 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
171
172 * c-common.c: Use FOR_EACH_VEC_ELT.
173 * c-gimplify.c: Likewise.
174 * c-pragma.c: Likewise.
175
176 2010-08-16 Joseph Myers <joseph@codesourcery.com>
177
178 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
179 RejectDriver.
180 (MMDX): Change back to MMD. Mark NoDriverArg instead of
181 RejectDriver.
182 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
183 instead of OPT_MDX and OPT_MMDX.
184
185 2010-08-16 Joseph Myers <joseph@codesourcery.com>
186
187 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
188
189 2010-08-12 Joseph Myers <joseph@codesourcery.com>
190
191 * c.opt (MD, MMD): Change to MDX and MMDX.
192 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
193
194 2010-08-11 Joseph Myers <joseph@codesourcery.com>
195
196 * c-opts.c (c_common_handle_option): Call handle_generated_option
197 instead of handle_option.
198
199 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
200
201 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
202 (maybe_apply_renaming_pragma): Delete unneeded declarations.
203
204 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
205
206 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
207 (pending_redefine_extname): Change type to a VEC.
208 (add_to_renaming_pragma_list): Update for new type of
209 pending_redefine_extname.
210 (maybe_apply_renaming_pragma): Likewise.
211
212 2010-08-04 Arnaud Charlet <charlet@adacore.com>
213
214 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
215 visited.
216 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
217 decide whether a type has already been declared/seen.
218 Do not go to the original type.
219 (dump_nested_types): New parameter forward.
220 Generate forward declaration if needed and mark type as visited.
221 (print_ada_declaration): Call dump_nested_types if not already done.
222 Mark types as visited.
223
224 2010-08-03 Joseph Myers <joseph@codesourcery.com>
225
226 * c.opt (-print-pch-checksum): Remove option.
227 * c-opts.c (c_common_handle_option): Don't handle
228 OPT_print_pch_checksum.
229
230 2010-07-27 Joseph Myers <joseph@codesourcery.com>
231
232 * c-common.h (c_common_handle_option): Update prototype and return
233 value type.
234 * c-opts.c (c_common_handle_option): Update prototype and return
235 value type. Update calls to handle_option and
236 enable_warning_as_error.
237
238 2010-07-27 Jakub Jelinek <jakub@redhat.com>
239
240 PR c/45079
241 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
242
243 2010-07-27 Joseph Myers <joseph@codesourcery.com>
244
245 * c-common.h (c_common_missing_argument): Remove.
246 * c-opts.c (c_common_missing_argument): Remove.
247 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
248 idirafter, imacros, include, isysroot, isystem, iquote): Add
249 MissingArgError.
250 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
251
252 2010-07-27 Joseph Myers <joseph@codesourcery.com>
253
254 * c-common.h (c_common_option_lang_mask,
255 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
256 New.
257 (c_common_init_options): Update prototype.
258 * c-opts.c (c_common_option_lang_mask): New.
259 (c_common_initialize_diagnostics): Split out of
260 c_common_init_options.
261 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
262 New.
263 (c_common_init_options): Update prototype. Use decoded options in
264 search for -lang-asm.
265
266 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
267
268 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
269 * c-format.c: Likewise.
270
271 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
272
273 * c-common.h: Include diagnostic-core.h. Error if already
274 included.
275 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
276
277 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
278
279 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
280 Do not include expr.h
281 (vector_mode_valid_p): Move here.
282
283 2010-06-21 DJ Delorie <dj@redhat.com>
284
285 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
286 allow these pragmas anywhere.
287
288 2010-06-14 Jakub Jelinek <jakub@redhat.com>
289
290 PR bootstrap/44509
291 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
292 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
293 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
294 ggc_strdup instead of xstrdup.
295
296 2010-06-10 Jakub Jelinek <jakub@redhat.com>
297
298 * c-cppbuiltin.c: Include cpp-id-data.h.
299 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
300 (lazy_hex_fp_value): New function.
301 (builtin_define_with_hex_fp_value): Provide definitions lazily.
302
303 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
304
305 * c-gimplify.c: Do not include tree-flow.h
306
307 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
308
309 PR other/44034
310 * c-common.c: Rename targetm member:
311 targetm.enum_va_list -> targetm.enum_va_list_p
312
313 2010-06-28 Anatoly Sokolov <aesok@post.ru>
314
315 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
316
317 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
318
319 * c-cppbuiltin.c: Do not include except.h.
320
321 2010-06-24 Andi Kleen <ak@linux.intel.com>
322
323 * c-common.c (warn_for_omitted_condop): New.
324 * c-common.h (warn_for_omitted_condop): Add prototype.
325
326 2010-06-21 Joseph Myers <joseph@codesourcery.com>
327
328 * c.opt (lang-objc): Remove.
329 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
330
331 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
332
333 * c-opts.c: Include "tm_p.h".
334
335 2010-06-20 Joseph Myers <joseph@codesourcery.com>
336
337 * c-common.c (parse_optimize_options): Update call to
338 decode_options.
339
340 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
341
342 * c-common.c (record_types_used_by_current_var_decl): Adjust for
343 new type of types_used_by_cur_var_decl.
344
345 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
346
347 PR bootstrap/44512
348 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
349 for C++ standard compliance.
350
351 2010-06-16 Jason Merrill <jason@redhat.com>
352
353 * c.opt: Add -Wnoexcept.
354
355 2010-06-16 Richard Guenther <rguenther@suse.de>
356
357 PR c/44555
358 * c-common.c (c_common_truthvalue_conversion): Remove
359 premature and wrong optimization concering ADDR_EXPRs.
360
361 2010-06-15 Arnaud Charlet <charlet@adacore.com>
362
363 * c-ada-spec.c (dump_sloc): Remove column info.
364 (is_simple_enum): New function.
365 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
366 enum types when relevant.
367
368 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
369
370 * c-common.c (conversion_warning): Warn at expression
371 location.
372
373 2010-06-10 Joseph Myers <joseph@codesourcery.com>
374
375 * c-opts.c (c_common_handle_option): Don't handle
376 OPT_fshow_column.
377
378 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
379
380 * c-pragma.c (push_alignment): Use typed GC allocation.
381 (handle_pragma_push_options): Likewise.
382
383 * c-common.c (parse_optimize_options): Likewise.
384
385 * c-common.h (struct sorted_fields_type): Add variable_size GTY
386 option.
387
388 2010-06-07 Joseph Myers <joseph@codesourcery.com>
389
390 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
391 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
392 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
393 flag_signed_bitfields, warn_strict_null_sentinel,
394 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
395 flag_gen_declaration, flag_no_gnu_keywords,
396 flag_implement_inlines, flag_implicit_templates,
397 flag_implicit_inline_templates, flag_optional_diags,
398 flag_elide_constructors, flag_default_inline, flag_rtti,
399 flag_conserve_space, flag_access_control, flag_check_new,
400 flag_new_for_scope, flag_weak, flag_working_directory,
401 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
402 flag_enforce_eh_specs, flag_threadsafe_statics,
403 flag_pretty_templates): Remove.
404 * c-common.h (flag_preprocess_only, flag_nil_receivers,
405 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
406 flag_replace_objc_classes, flag_undef, flag_no_builtin,
407 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
408 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
409 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
410 flag_no_gnu_keywords, flag_implement_inlines,
411 flag_implicit_templates, flag_implicit_inline_templates,
412 flag_optional_diags, flag_elide_constructors, flag_default_inline,
413 flag_rtti, flag_conserve_space, flag_access_control,
414 flag_check_new, flag_new_for_scope, flag_weak,
415 flag_working_directory, flag_use_cxa_atexit,
416 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
417 flag_threadsafe_statics, flag_pretty_templates,
418 warn_strict_null_sentinel): Remove.
419 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
420 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
421 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
422 fimplicit-inline-templates, fimplicit-templates,
423 flax-vector-conversions, fms-extensions, fnil-receivers,
424 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
425 frtti, fshort-double, fshort-enums, fshort-wchar,
426 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
427 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
428 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
429 gen-decls, undef): Use Var.
430 (fdefault-inline, foptional-diags): Document as doing nothing.
431 * c-opts.c (c_common_handle_option): Remove cases for options now
432 using Var. Mark ignored options as such.
433
434 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
435
436 * c-common.c: Moved to here from parent directory.
437 * c-common.def: Likewise.
438 * c-common.h: Likewise.
439 * c-cppbuiltin.c: Likewise.
440 * c-dump.c: Likewise.
441 * c-format.c: Likewise.
442 * c-format.h : Likewise.
443 * c-gimplify.c: Likewise.
444 * c-lex.c: Likewise.
445 * c-omp.c: Likewise.
446 * c.opt: Likewise.
447 * c-opts.c: Likewise.
448 * c-pch.c: Likewise.
449 * c-ppoutput.c: Likewise.
450 * c-pragma.c: Likewise.
451 * c-pragma.h: Likewise.
452 * c-pretty-print.c: Likewise.
453 * c-pretty-print.h: Likewise.
454 * c-semantics.c: Likewise.
455 * stub-objc.c: Likewise.
456
457 * c-common.c: Include gt-c-family-c-common.h.
458 * c-pragma.c: Include gt-c-family-c-pragma.h.
459 \f
460 Copyright (C) 2010 Free Software Foundation, Inc.
461
462 Copying and distribution of this file, with or without modification,
463 are permitted in any medium without royalty provided the copyright
464 notice and this notice are preserved.