OSDN Git Service

doc: fix deftypefn markup in gccint manual.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2
3         * doc/gimple.texi: Fix quoting of multi-word return values in
4         @deftypefn statements.  Ensure presence of return value.  Wrap
5         overlong @deftypefn lines.
6         (is_gimple_operand, is_gimple_min_invariant_address): Remove
7         descriptions of removed functions.
8         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
9         of multi-word return value in @deftypefn statement.
10
11 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12
13         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14         (Conditional Expressions, Logical Operators)
15         (Statement and operand traversals): Do not indent smallexample
16         code.  Fix duplicate function argument in example.
17
18 2011-01-10  Jeff Law  <law@redhat.com>
19
20         * PR tree-optimization/47141
21         * ipa-split.c (split_function): Handle case where we are
22         returning a value and the return block has a virtual operand phi.
23
24 2011-01-10  Jan Hubicka  <jh@suse.cz>
25
26         PR tree-optimization/47234 
27         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
28         (pass_feedback_split_functions): Declare.
29         * passes.c (init_optimization_passes): Add ipa-split as subpass of
30         tree-profile.
31         * ipa-split.c (gate_split_functions): Update comments; disable
32         split-functions for profile_arc_flag and branch_probabilities.
33         (gate_feedback_split_functions): New function.
34         (execute_feedback_split_functions): New function.
35         (pass_feedback_split_functions): New global var.
36
37 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
38
39         PR lto/46760
40         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
41         calling gimple_call_set_cannot_inline.
42
43 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
44
45         * config/darwin-sections.def: Remove unused section.
46
47 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
48
49         PR c++/47218
50         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
51
52 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
53
54         PR objc/47232
55         * c-parser.c (c_parser_declaration_or_fndef): Improved
56         error message.
57
58 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
59
60         * config/i386/winnt.c (i386_pe_start_function): Make sure
61         to switch back to function's section.
62
63 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
64
65         PR gcc/46902
66         PR testsuite/46912
67         * plugin.c: Move include of dlfcn.h from here...
68         * system.h: ... to here.
69
70 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71
72         * doc/cpp.texi (C++ Named Operators): Fix markup for header
73         file name.
74         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
75         two extra empty pages in PDF output.
76
77 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
78
79         PR objc/47078
80         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
81         for error recovery purposes behave as if it was not specified so
82         that the default type is usd.
83
84 2011-01-07  Jan Hubicka  <jh@suse.cz>
85
86         PR tree-optmization/46469
87         * ipa.c (function_and_variable_visibility): Clear needed flags on
88         nodes with external decls; handle weakrefs merging correctly.
89
90 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
91
92         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
93         not false.
94
95 2011-01-07  Jan Hubicka  <jh@suse.cz>
96
97         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
98         and no longer claim that gold is required for linker plugin.
99         * configure: Regenerate.
100         * gcc.c (PLUGIN_COND): New macro.
101         (LINK_COMMAND_SPEC): Use it.
102         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
103         * config.in (HAVE_LTO_PLUGIN): New.
104         * configure.ac (--with-lto-plugin): New parameter; autodetect
105         HAVE_LTO_PLUGIN.
106
107 2011-01-07  Jan Hubicka  <jh@suse.cz>
108
109         PR tree-optimization/46367
110         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
111         when we can update original.
112         (cgraph_mark_inline_edge): Sanity check.
113         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
114
115 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
116
117         * config/spu/spu.h (ASM_COMMENT_START): Define.
118
119 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
120
121         PR driver/42445
122         * gcc.c (%>S): New.
123         (SWITCH_KEEP_FOR_GCC): Likewise.
124         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
125         (do_spec_1): Handle "%>".
126
127         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
128
129 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
130
131         PR target/47201
132         * config/i386/i386.c (ix86_delegitimize_address): If
133         simplify_gen_subreg fails, return orig_x.
134
135         PR bootstrap/47187
136         * value-prof.c (gimple_stringop_fixed_value): Handle
137         lhs of the call properly.
138
139 2011-01-07  Jan Hubicka  <jh@suse.cz>
140
141         PR lto/45375
142         * lto-opt.c (lto_reissue_options): Set flag_shlib.
143
144 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
145
146         * target.def (function_switched_text_sections): New hook.
147         * doc/tm.texi: Regenerated.
148         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
149         * final.c (default_function_switched_text_sections): New.
150         (final_scan_insn): Call function_switched_text_sections when a
151         mid-function section change occurs.
152         * output.h (default_function_switched_text_sections): Declare.
153         * config/darwin-protos.h (darwin_function_switched_text_sections):
154         Likewise.
155         * config/darwin.c (darwin_function_switched_text_sections): New.
156         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
157
158 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
159
160         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
161         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
162         the secondary code fragment when outputting for DWARF == 2.
163
164 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
165
166         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
167         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
168         Remove.
169         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
170         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
171
172 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
173
174         PR debug/46704
175         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section
176         only when it is not empty.
177
178 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
179
180         Bobcat Enablement
181         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
182         (case ${target}): Add btver1.
183         * config/i386/driver-i386.c (host_detect_local_cpu): Let
184         -march=native recognize btver1 processors.
185         * config/i386/i386-c.c (ix86_target_macros_internal): Add
186         btver1 def_and_undef
187         * config/i386/i386.c (struct processor_costs btver1_cost): New
188         btver1 cost table.
189         (m_BTVER1): New definition.
190         (m_AMD_MULTIPLE): Includes m_BTVER1.
191         (initial_ix86_tune_features): Add btver1 tune.
192         (processor_target_table): Add btver1 entry.
193         (static const char *const cpu_names): Add btver1 entry.
194         (software_prefetching_beneficial_p): Add btver1.
195         (ix86_option_override_internal): Add btver1 instruction sets.
196         (ix86_issue_rate): Add btver1.
197         (ix86_adjust_cost): Add btver1.
198         * config/i386/i386.h (TARGET_BTVER1): New definition.
199         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
200         (enum processor_type): Add PROCESSOR_BTVER1.
201         * config/i386/i386.md (define_attr "cpu"): Add btver1.
202
203 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
204
205         PR target/43309
206         * config/i386/i386.c (legitimize_tls_address)
207         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
208         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
209         (tls_initial_exec_64_sun): New pattern.
210
211 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
212
213         * doc/invoke.texi (Overall Options): Improve wording and markup
214         of the description of -wrapper.
215
216 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
217
218         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
219         rdynamic, threads): New Driver options.
220
221 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
222
223         PR target/38118
224         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
225         if coming from .tdata.
226         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
227
228 2011-01-06  Jan Hubicka  <jh@suse.cz>
229
230         PR lto/47188
231         * collect2.c (main): Do not enable LTOmode when plugin is active.
232
233 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
234
235         PR other/45915
236         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
237         --version output if supported.
238         * configure: Regenerate.
239
240 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
241
242         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
243         Driver options.
244
245 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
246
247         PR c/47150
248         * c-convert.c (convert): When converting a complex expression
249         other than COMPLEX_EXPR to a different complex type, ensure
250         c_save_expr is called instead of save_expr, unless in_late_binary_op.
251         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
252         when converting COMPLEX_TYPE.
253
254 2011-01-06  Ira Rosen  <irar@il.ibm.com>
255
256         PR tree-optimization/47139
257         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
258         only the last reduction value is used outside the loop.  Update
259         documentation.
260
261 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
262
263         * config/rtems.opt: New.
264         * config.gcc (*-*-rtems*): Use rtems.opt.
265
266 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
267
268         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
269         processors do not support 3DNow instructions.
270
271 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
272
273         * config/spu/spu.c (spu_option_override): Set parameter
274         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
275
276 2011-01-05  Jan Hubicka  <jh@suse.cz>
277
278         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
279         at the command line.
280
281 2011-01-05  Martin Jambor  <mjambor@suse.cz>
282
283         PR lto/47162
284         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
285         deltas on streamed outgoing edges.
286         (output_node_opt_summary): Output info for outgoing edges only when
287         the node is in new parameter set.
288         (output_cgraph_opt_summary): New parameter set, passed to the two
289         aforementioned functions.  Update its forward declaration and its
290         callee too.
291
292 2011-01-05  Tom Tromey  <tromey@redhat.com>
293
294         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
295         operator to c_finish_omp_atomic.
296         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
297         (build_unary_op): Update.
298         (build_modify_expr): Update.
299         (build_asm_expr): Update.
300
301 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
302
303         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
304         newly inserted insns.
305         (pad_bb): Likewise.
306         (spu_emit_branch_hint): Likewise.
307         (insert_hbrp_for_ilb_runout): Likewise.
308         (spu_machine_dependent_reorg): Call df_finish_pass after
309         schedule_insns returns.
310
311 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
312
313         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
314
315 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
316
317         PR tree-optimization/47005
318         * tree-sra.c (struct access): Add 'non_addressable' bit.
319         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
320         (decide_one_param_reduction): Return 0 if the parameter is passed by
321         reference and one of the accesses in the group is non_addressable.
322
323 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
324
325         PR tree-optimization/47056
326         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
327         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
328         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
329
330 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
331
332         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
333         initializer.  Skip view conversions from aggregate types.
334
335 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
336
337         PR bootstrap/47055
338         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
339
340 2011-01-04  Philipp Thomas <pth@suse.de>
341
342         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
343         obvious typo.
344
345 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
346
347         * function.c (thread_prologue_and_epilogue_insns): Do not crash
348         on empty epilogue sequences.
349
350 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
351
352         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
353         non-static): New Driver options.
354
355 2011-01-04  Jie Zhang  <jie@codesourcery.com>
356
357         PR driver/47137
358         * gcc.c (default_compilers[]): Set combinable field to 0
359         for all assembly languages.
360
361 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
362
363         * config/mips/loongson3a.md: New file.
364         * config/mips/mips.md: Include loongson3a.md.
365         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
366         TUNE_LOONGSON_3A.
367
368 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
369
370         PR middle-end/47017
371         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
372         instead of convert_memory_address_addr_space on the base expression.
373
374 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
375
376         * config/spu/spu.c (spu_option_override): Update error text
377         for bad -march= / -mtune= values.
378
379 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
380
381         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
382         if branch-hint optimization will be performed.
383
384 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
385
386         PR tree-optimization/47148
387         * ipa-split.c (split_function): Convert arguments to
388         DECL_ARG_TYPE if possible.
389
390         PR tree-optimization/47155
391         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
392         when computing uns.
393
394         PR rtl-optimization/47157
395         * combine.c (try_combine): If undobuf.other_insn becomes
396         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
397         and set *new_direct_jump_p too.
398
399 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
400
401         PR tree-optimization/47021
402         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
403
404 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
405
406         * gcc.c (process_command): Update copyright notice dates.
407         * gcov.c (print_version): Likewise.
408         * gcov-dump.c (print_version): Likewise.
409         * mips-tfile.c (main): Likewise.
410         * mips-tdump.c (main): Likewise.
411
412 2011-01-03  Martin Jambor  <mjambor@suse.cz>
413
414         PR tree-optimization/46801
415         * tree-sra.c (type_internals_preclude_sra_p): Check whether
416         aggregate fields start at byte boundary instead of the bit-field flag.
417
418 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
419
420         PR driver/47137
421         * gcc.c (main): Revert revision 168407.
422
423 2011-01-03  Martin Jambor  <mjambor@suse.cz>
424
425         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
426
427 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
428
429         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
430         vector optab to expand vector/scalar shift, update gimple to vector.
431
432 2011-01-03  Martin Jambor  <mjambor@suse.cz>
433
434         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
435         a thunk.
436
437 2011-01-03  Martin Jambor  <mjambor@suse.cz>
438
439         PR tree-optimization/46984
440         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
441         HOST_WIDE_INT.
442         (cgraph_create_indirect_edge): Fixed line length.
443         (cgraph_indirect_call_info): Declare.
444         (cgraph_make_edge_direct) Update declaration.
445         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
446         (cgraph_create_indirect_edge): Use it.
447         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
448         callees.
449         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
450         the new thunk_delta representation.
451         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
452         HOST_WIDE_INT.
453         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
454         (ipa_read_indirect_edge_info): Likewise.
455         * lto-cgraph.c (output_edge_opt_summary): New function.
456         (output_node_opt_summary): Call it on all outgoing edges.
457         (input_edge_opt_summary): New function.
458         (input_node_opt_summary): Call it on all outgoing edges.
459
460 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
461
462         PR driver/47137
463         * gcc.c (main): Don't check have_o when settting combine_inputs.
464
465 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
466
467         * regrename.c: Add general comment describing the pass.
468         (struct du_head): Remove 'length' field.
469         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
470         (regrename_optimize): Do not sort chains.  Rework comments, add others.
471         Force renaming to the preferred class (if any) in the first pass and do
472         not consider registers that belong to it in the second pass.
473         (create_new_chain): Do not set 'length' field.
474         (scan_rtx_reg): Likewise.
475
476 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
477
478         PR tree-optimization/47140
479         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
480         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
481         to bit_value_binop.
482
483         PR rtl-optimization/47028
484         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
485         parm_birth_insn instead of at the beginning of first bb.
486
487 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
488
489         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
490         Remove the word "see" before "@pxref".
491         * doc/rtl.texi: Remove the word "see" before "@pxref".
492
493 2011-01-01  Jan Hubicka  <jh@suse.cz>
494
495         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
496         memory.
497
498 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
499
500         PR target/38662
501         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
502
503 \f
504 Copyright (C) 2011 Free Software Foundation, Inc.
505
506 Copying and distribution of this file, with or without modification,
507 are permitted in any medium without royalty provided the copyright
508 notice and this notice are preserved.